Add configuration for footers consent content (#161)
This commit is contained in:
parent
4b96b84c31
commit
cf2c83c0f1
4 changed files with 25 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import type { EducationSection } from '@/types/education-section';
|
import type { EducationSection } from '@/types/education-section';
|
||||||
import type { ExperienceSection } from '@/types/experience-section';
|
import type { ExperienceSection } from '@/types/experience-section';
|
||||||
import type { FavoritesSection } from '@/types/favorites-section';
|
import type { FavoritesSection } from '@/types/favorites-section';
|
||||||
|
import type { Pdf } from '@/types/pdf';
|
||||||
import type { I18n } from '@/types/i18n';
|
import type { I18n } from '@/types/i18n';
|
||||||
import type { MainSection } from '@/types/main-section';
|
import type { MainSection } from '@/types/main-section';
|
||||||
import type { PortfolioSection } from '@/types/portfolio-section';
|
import type { PortfolioSection } from '@/types/portfolio-section';
|
||||||
|
|
@ -19,6 +20,7 @@ import testimonialsData from './sections/testimonials';
|
||||||
export interface Data {
|
export interface Data {
|
||||||
i18n: I18n;
|
i18n: I18n;
|
||||||
seo: Seo;
|
seo: Seo;
|
||||||
|
pdf: Pdf;
|
||||||
main: MainSection;
|
main: MainSection;
|
||||||
skills?: SkillsSection;
|
skills?: SkillsSection;
|
||||||
experience?: ExperienceSection;
|
experience?: ExperienceSection;
|
||||||
|
|
@ -40,6 +42,10 @@ const data: Data = {
|
||||||
description:
|
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.',
|
'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,
|
main: mainData,
|
||||||
skills: skillsData,
|
skills: skillsData,
|
||||||
experience: experienceData,
|
experience: experienceData,
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,6 @@ const { i18n } = data;
|
||||||
{data.experience && <ExperienceSection i18n={i18n} {...data.experience} />}
|
{data.experience && <ExperienceSection i18n={i18n} {...data.experience} />}
|
||||||
{data.portfolio && <PortfolioSection i18n={i18n} {...data.portfolio} />}
|
{data.portfolio && <PortfolioSection i18n={i18n} {...data.portfolio} />}
|
||||||
{data.education && <EducationSection i18n={i18n} {...data.education} />}
|
{data.education && <EducationSection i18n={i18n} {...data.education} />}
|
||||||
<Footer />
|
<Footer footer={data.pdf.footer} />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -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
|
import type { Pdf } from '@/types/pdf';
|
||||||
recruitment process.
|
|
||||||
|
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>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
const footer = document.getElementById('footer')!;
|
const footer = document.getElementById('footer')!;
|
||||||
|
|
|
||||||
3
src/types/pdf.ts
Normal file
3
src/types/pdf.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
export interface Pdf {
|
||||||
|
footer: string;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue