Skip to content

Commit 8033711

Browse files
committed
feat: Add PDF constants for styling and layout in CV generation
1 parent 54f6a04 commit 8033711

File tree

2 files changed

+453
-364
lines changed

2 files changed

+453
-364
lines changed

backend/src/constants.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
11
export const DB_NAME = 'nextstepsdbcsvbuilder';
22

3+
export const PDF_CONSTANTS = {
4+
COLORS: {
5+
primary: '#2C3E50',
6+
secondary: '#34495E',
7+
accent: '#3498DB',
8+
text: '#2C3E50',
9+
lightGray: '#ECF0F1',
10+
darkGray: '#7F8C8D'
11+
},
12+
13+
FONTS: {
14+
bold: 'Helvetica-Bold',
15+
regular: 'Helvetica',
16+
italic: 'Helvetica-Oblique'
17+
},
18+
19+
SIZES: {
20+
heading: 24,
21+
section: 14,
22+
body: 10,
23+
footer: 8,
24+
lineHeight: 15
25+
},
26+
27+
MARGINS: {
28+
top: 50,
29+
bottom: 50,
30+
left: 50,
31+
right: 50,
32+
indent: 70
33+
},
34+
35+
PAGE_LIMITS: {
36+
pageBreakY: 700,
37+
photoX: 480,
38+
photoSize: 80,
39+
lineEndX: 545,
40+
contentWidth: 495,
41+
indentWidth: 475
42+
}
43+
};

0 commit comments

Comments
 (0)