Skip to content

Commit

Permalink
Feat/third template (#80)
Browse files Browse the repository at this point in the history
* initial new design

* revised pages for vaccination and recovery

* added testmanufacturer to test certificate

* rotation for the third page and fourth page recovery

* added font arial

* first and second page with the new template

* two pages with rotation

* recovery finished

* rotation for vaccination and recovery

* issuer country code is read from pfd-settings.json

* country code eudgc

* remove warnings

Co-authored-by: fOppenheimer <[email protected]>
Co-authored-by: Gordon Grund <[email protected]>
  • Loading branch information
3 people authored May 28, 2021
1 parent 68f0c80 commit d709ee3
Show file tree
Hide file tree
Showing 14 changed files with 827 additions and 260 deletions.
7 changes: 7 additions & 0 deletions src/assets/SCSS/fonts/arial-bold.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/assets/SCSS/fonts/arial-bolditalic.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/assets/SCSS/fonts/arial-italic.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/assets/SCSS/fonts/arial-normal.js

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions src/assets/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@
"pdfSurname": "Surname(s) and forename(s)",
"pdfDateOfBirth": "Date of birth",
"pdfCi":"Unique certificate identifier",
"pdfGreenCertificate" : "DIGITAL GREEN CERTIFICATE",
"pdfMemberPlaceholder" : "MEMBER STATE PLACEHOLDER",
"pdfGreenCertificate" : "EU Digital COVID Certificate",
"pdfMemberPlaceholder" : "Member State Placeholder",
"pdfMemberPlaceholderInfo" : "(information on issuing entity, national COVID-19 information etc. – no additional personal data).",
"pdfInfoText" : "This certificate is not a travel document. The scientific evidence on COVID-19 vaccination, testing and recovery continues to evolve, also in view of new variants of concern of the virus. Before traveling, please check the applicable public health measures and related restrictions applied at the point of destination.",
"pdfRelevantInformation" : "Relevant information can be found here:",
"pdfInfoURL" : "https://reopen.europa.eu/en",
"pdfHeaderVaccination" : "VACCINATION CERTIFICATE",
"pdfFoldingInstruction" : "Folding instructions",
"pdfHeaderVaccination" : "Vaccination certificate",
"pdfDisease" : "Disease or agent targeted",
"pdfVaccineProphylaxis" : "Vaccine/prophylaxis",
"pdfVaccineMedicalProduct" : "Vaccine medicinal product",
Expand All @@ -130,7 +131,7 @@
"pdfDateOfVaccination" : "Date of vaccination",
"pdfMemberStateOfVaccination" : "Member State of vaccination",
"pdfCertificateIssuer" : "Certificate issuer",
"pdfHeaderTest" : "TEST CERTIFICATE",
"pdfHeaderTest" : "Test Certificate",
"pdfTypeOfTest" : "Type of test",
"pdfTestName" : "Test name (optional for NAAT)",
"pdfTestManufacturer" : "Test manufacturer (optional for NAAT)",
Expand All @@ -139,7 +140,7 @@
"pdfTestResult" : "Result of the test",
"pdfTestingCentre" : "Testing centre or facility",
"pdfStateOfVaccination" : "Member State of vaccination",
"pdfHeaderRecovery" : "CERTIFICATE OF RECOVERY",
"pdfHeaderRecovery" : "Certificate of Recovery",
"pdfDatePositiveTestResult" : "Date of first positive test result",
"pdfStateOfTest" : "Member State of test",
"pdfValidFrom" : "Certificate valid from",
Expand Down
8 changes: 4 additions & 4 deletions src/assets/i18n/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"pdfSurname": "Nom(s) de famille et prénom(s)",
"pdfDateOfBirth": "Date de naissance",
"pdfCi": "Identifiant unique du certificat",
"pdfGreenCertificate": "CERTIFICAT VERT NUMÉRIQUE",
"pdfHeaderVaccination": "CERTIFICAT DE VACCINATION",
"pdfGreenCertificate": "Certificat numérique européen COVID",
"pdfHeaderVaccination": "Certificat de vaccination",
"pdfDisease": "Maladie ou agent ciblé",
"pdfVaccineProphylaxis": "Vaccin/prophylaxie",
"pdfVaccineMedicalProduct": "Médicament vaccinal",
Expand All @@ -12,7 +12,7 @@
"pdfDateOfVaccination": "Date of vaccination",
"pdfMemberStateOfVaccination" : "État membre de vaccination",
"pdfCertificateIssuer" : "Émetteur du certificat",
"pdfHeaderTest" : "CERTIFICAT DE TEST",
"pdfHeaderTest" : "Certificat de test",
"pdfTypeOfTest" : "Type de test",
"pdfTestName" : "Nom du test (facultatif pour TAAN)",
"pdfTestManufacturer" : "Fabricant du test (facultatif pour un test TAAN)",
Expand All @@ -21,7 +21,7 @@
"pdfTestResult" : "Résultat du test",
"pdfTestingCentre" : "Centre ou installation de test",
"pdfStateOfVaccination" : "État membre de vaccination",
"pdfHeaderRecovery" : "CERTIFICATE DE RÉTABLISSEMENT",
"pdfHeaderRecovery" : "Certificat de rétablissement",
"pdfDatePositiveTestResult" : "Date du premier résultat de test posifif",
"pdfStateOfTest" : "État membre du test",
"pdfValidFrom" : "Certificat valable à partir du",
Expand Down
Binary file added src/assets/images/certificate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/eu_flag_neu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/flag_seperator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/folding-instruction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/yellow_seperator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/components/modules/form-group.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ export const FormGroupISOCountrySelect = (props: any) => {

React.useEffect(() => {
const options: JSX.Element[] = [];
const codes: string[] = iso3311a2.getCodes().sort();
// const codes: string[] = iso3311a2.getCodes().sort();
const eu_country_codes: string[] = ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR",
"DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL",
"PT", "RO", "SK", "SI", "ES", "SE"].sort();

for (const code of codes) {
for (const code of eu_country_codes) {
options.push(<option key={code} value={code}>{code + " : " + iso3311a2.getCountry(code)}</option>)
}

Expand Down
Loading

0 comments on commit d709ee3

Please sign in to comment.