Skip to content

Commit

Permalink
Refactor pdf (#75)
Browse files Browse the repository at this point in the history
* refactor pdf generation; add eu icon

* fix text and space

Co-authored-by: Gordon Grund <[email protected]>
  • Loading branch information
ggrund-tsi and ggrund-tsi authored May 21, 2021
1 parent 18a861d commit 6620270
Show file tree
Hide file tree
Showing 13 changed files with 503 additions and 477 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"json-schema-to-typescript": "^10.1.4",
"jsonschema": "^1.4.0",
"jspdf": "^2.3.1",
"jspdf-customfonts": "^0.0.4-rc.4",
"keycloak-js": "^10.0.1",
"lint-staged": "^10.5.4",
"moment": "^2.29.1",
Expand All @@ -51,8 +50,12 @@
"web-vitals": "^1.0.1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": ["eslint --fix"],
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write"]
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write"
]
},
"proxy": "http://localhost:8080",
"scripts": {
Expand Down
5 changes: 0 additions & 5 deletions src/assets/SCSS/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@ hr {
display: none;
}

.eu-logo {
margin-left: 1rem;
margin: 13px 0px 13px 16px;
}

.header-title {
font-size: 18px;
margin-left: 16px;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/SCSS/fonts/calibri-bold.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/SCSS/fonts/calibri-bolditalic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/SCSS/fonts/calibri-italic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/SCSS/fonts/calibri-normal.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/assets/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"patientdata-exclude": "Include patient data in QR-Code",
"patient-data-correction": "Correct patient data",
"process-finish": "Finish process",
"generate-pdf": "Generate PDF",
"generate-pdf": "Generate PDF",
"show-pdf": "Show PDF",
"qr-code": "QR Code",
"your-certificate": "Your Certificate",
"personal-data": "Personal Details",
Expand Down
Binary file added src/assets/images/Flag+EU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/header.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import '../i18n';
import { useTranslation } from 'react-i18next';

import useNavigation from '../misc/navigation';
import EULogo from '../assets/images/EU_logo@3x.png'
import EULogo from '../assets/images/Flag+EU.png'

const Header = (props: any) => {

Expand All @@ -44,7 +44,7 @@ const Header = (props: any) => {
<>
<Container className='bg-white px-0 position-relative'>
{/* simple header with logo */}
<Image src={EULogo} className='eu-logo' />
<Image src={EULogo} className='m-3' />
</Container>
<Container className='d-flex bg-gray-1 px-0 position-relative'>
<span className='header-title'>{t('translation:title')}</span>
Expand Down
Loading

0 comments on commit 6620270

Please sign in to comment.