Add configuration for footers consent content (#161)

This commit is contained in:
Szymon Kin 2023-01-18 20:56:23 +01:00 committed by GitHub
parent 4b96b84c31
commit cf2c83c0f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 4 deletions

View file

@ -1,6 +1,7 @@
import type { EducationSection } from '@/types/education-section';
import type { ExperienceSection } from '@/types/experience-section';
import type { FavoritesSection } from '@/types/favorites-section';
import type { Pdf } from '@/types/pdf';
import type { I18n } from '@/types/i18n';
import type { MainSection } from '@/types/main-section';
import type { PortfolioSection } from '@/types/portfolio-section';
@ -19,6 +20,7 @@ import testimonialsData from './sections/testimonials';
export interface Data {
i18n: I18n;
seo: Seo;
pdf: Pdf;
main: MainSection;
skills?: SkillsSection;
experience?: ExperienceSection;
@ -40,6 +42,10 @@ const data: Data = {
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sodales ac dui at vestibulum. In condimentum metus id dui tincidunt, in blandit mi vehicula.',
},
pdf: {
footer:
'I hereby give consent for my personal data included in my application to be processed for the purposes of the recruitment process.',
},
main: mainData,
skills: skillsData,
experience: experienceData,

View file

@ -24,6 +24,6 @@ const { i18n } = data;
{data.experience && <ExperienceSection i18n={i18n} {...data.experience} />}
{data.portfolio && <PortfolioSection i18n={i18n} {...data.portfolio} />}
{data.education && <EducationSection i18n={i18n} {...data.education} />}
<Footer />
<Footer footer={data.pdf.footer} />
</body>
</html>

View file

@ -1,6 +1,18 @@
<div id="footer" class="mt-4 w-full rounded border border-gray-100 bg-gray-50 px-2 py-1 text-center text-[11px]">
I hereby give consent for my personal data included in my application to be processed for the purposes of the
recruitment process.
---
import type { Pdf } from '@/types/pdf';
export interface Props {
footer: Pdf['footer'];
}
const { footer } = Astro.props;
---
<div
id="footer"
class="mt-4 flex w-full justify-center rounded border border-gray-100 bg-gray-50 px-2 py-1 text-justify text-[11px]"
>
{footer}
</div>
<script>
const footer = document.getElementById('footer')!;

3
src/types/pdf.ts Normal file
View file

@ -0,0 +1,3 @@
export interface Pdf {
footer: string;
}