From cf2c83c0f182ad2f9ef538136d0ee77d37cb30b0 Mon Sep 17 00:00:00 2001
From: Szymon Kin <68154191+hoolek77@users.noreply.github.com>
Date: Wed, 18 Jan 2023 20:56:23 +0100
Subject: [PATCH] Add configuration for footers consent content (#161)
---
src/data/index.ts | 6 ++++++
src/pages/pdf.astro | 2 +-
src/pdf/footer.astro | 18 +++++++++++++++---
src/types/pdf.ts | 3 +++
4 files changed, 25 insertions(+), 4 deletions(-)
create mode 100644 src/types/pdf.ts
diff --git a/src/data/index.ts b/src/data/index.ts
index 88aec02..2cb21b7 100644
--- a/src/data/index.ts
+++ b/src/data/index.ts
@@ -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,
diff --git a/src/pages/pdf.astro b/src/pages/pdf.astro
index 0a9c28a..5f3d98d 100644
--- a/src/pages/pdf.astro
+++ b/src/pages/pdf.astro
@@ -24,6 +24,6 @@ const { i18n } = data;
{data.experience && }
{data.portfolio && }
{data.education && }
-
+