jsonresume-theme-sidebar 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css ADDED
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Resume Core Design Tokens
3
+ * Framework-agnostic CSS variables for theming
4
+ * Based on 2025 resume best practices and ATS compatibility research
5
+ */
6
+
7
+ :root {
8
+ /* Typography - ATS-friendly fonts */
9
+ --resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
10
+ --resume-font-serif: Cambria, Georgia, "Times New Roman", serif;
11
+ --resume-font-mono: "Courier New", Courier, monospace;
12
+
13
+ /* Font Sizes - Optimal readability */
14
+ --resume-size-name: 36px; /* Large, prominent name */
15
+ --resume-size-heading: 16px; /* Section titles */
16
+ --resume-size-subheading: 14px; /* Job titles, degrees */
17
+ --resume-size-body: 11px; /* Body text, descriptions */
18
+ --resume-size-small: 10px; /* Dates, locations, metadata */
19
+
20
+ /* Font Weights */
21
+ --resume-weight-normal: 400;
22
+ --resume-weight-medium: 500;
23
+ --resume-weight-semibold: 600;
24
+ --resume-weight-bold: 700;
25
+
26
+ /* Line Heights */
27
+ --resume-line-height-tight: 1.2;
28
+ --resume-line-height-normal: 1.5;
29
+ --resume-line-height-relaxed: 1.75;
30
+
31
+ /* Colors - Professional Theme (default) */
32
+ --resume-color-primary: #1a1a1a;
33
+ --resume-color-secondary: #4a4a4a;
34
+ --resume-color-accent: #2563eb;
35
+ --resume-color-background: #ffffff;
36
+ --resume-color-border: #e5e7eb;
37
+
38
+ /* Spacing - Consistent rhythm */
39
+ --resume-space-section: 24px; /* Between major sections */
40
+ --resume-space-item: 16px; /* Between list items */
41
+ --resume-space-tight: 8px; /* Within items */
42
+ --resume-space-margin: 48px; /* Page margins */
43
+
44
+ /* Layout - Optimal line length */
45
+ --resume-max-width: 660px; /* ~80 chars at body size */
46
+ --resume-column-gap: 24px;
47
+
48
+ /* Border Radius */
49
+ --resume-radius-sm: 4px;
50
+ --resume-radius-md: 8px;
51
+ --resume-radius-lg: 12px;
52
+
53
+ /* Shadows - Subtle depth */
54
+ --resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
55
+ --resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
56
+ }
57
+
58
+ /* Modern Theme Variant */
59
+ [data-theme="modern"] {
60
+ --resume-color-primary: #0f172a;
61
+ --resume-color-secondary: #475569;
62
+ --resume-color-accent: #8b5cf6;
63
+ --resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
64
+ }
65
+
66
+ /* Classic Theme Variant */
67
+ [data-theme="classic"] {
68
+ --resume-color-primary: #000000;
69
+ --resume-color-secondary: #333333;
70
+ --resume-color-accent: #0066cc;
71
+ --resume-font-sans: Georgia, "Times New Roman", serif;
72
+ }
73
+
74
+ /* Minimal Theme Variant */
75
+ [data-theme="minimal"] {
76
+ --resume-color-primary: #18181b;
77
+ --resume-color-secondary: #71717a;
78
+ --resume-color-accent: #000000;
79
+ --resume-space-section: 32px;
80
+ --resume-space-item: 20px;
81
+ }
82
+
83
+ /* High Contrast Variant (Accessibility) */
84
+ [data-theme="high-contrast"] {
85
+ --resume-color-primary: #000000;
86
+ --resume-color-secondary: #000000;
87
+ --resume-color-accent: #0000ff;
88
+ --resume-color-background: #ffffff;
89
+ --resume-color-border: #000000;
90
+ }
91
+
92
+ /* Print Styles - ATS-Friendly PDF Export */
93
+ @media print {
94
+ :root {
95
+ /* Optimize for print */
96
+ --resume-space-section: 18px;
97
+ --resume-space-item: 12px;
98
+ }
99
+
100
+ @page {
101
+ size: A4;
102
+ margin: 0.5in;
103
+ }
104
+
105
+ /* Prevent awkward breaks */
106
+ .resume-section {
107
+ page-break-inside: avoid;
108
+ }
109
+
110
+ .resume-item {
111
+ break-inside: avoid;
112
+ }
113
+
114
+ /* Widows and orphans control */
115
+ p, li {
116
+ widows: 3;
117
+ orphans: 3;
118
+ }
119
+
120
+ /* Hyphenation for long words */
121
+ .resume-description {
122
+ hyphens: auto;
123
+ }
124
+
125
+ /* Hide interactive elements */
126
+ .no-print {
127
+ display: none !important;
128
+ }
129
+ }
130
+
131
+ /* RTL Support */
132
+ [dir="rtl"] {
133
+ text-align: right;
134
+ }
135
+
136
+ [dir="rtl"] .resume-item {
137
+ padding-left: 0;
138
+ padding-right: var(--resume-space-tight);
139
+ }
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "jsonresume-theme-sidebar",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Two-column sidebar resume theme with dark sidebar and light main content - ATS-friendly",
5
5
  "type": "module",
6
- "main": "./src/index.js",
6
+ "main": "./dist/index.js",
7
7
  "exports": {
8
- ".": "./src/index.js"
8
+ ".": {
9
+ "import": "./src/index.jsx",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./dist": {
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
9
16
  },
10
17
  "keywords": [
11
18
  "jsonresume",
@@ -21,10 +28,12 @@
21
28
  "react": "^19.2.0",
22
29
  "react-dom": "^19.2.0",
23
30
  "styled-components": "^6.1.19",
24
- "@resume/core": "0.1.0"
31
+ "@jsonresume/core": "0.2.0"
25
32
  },
26
33
  "devDependencies": {
27
- "vitest": "^1.6.0"
34
+ "vitest": "^1.6.0",
35
+ "@vitejs/plugin-react": "^4.3.4",
36
+ "vite": "^5.4.21"
28
37
  },
29
38
  "peerDependencies": {
30
39
  "react": "^18.0.0 || ^19.0.0",
@@ -32,6 +41,7 @@
32
41
  },
33
42
  "scripts": {
34
43
  "test": "vitest run",
35
- "test:watch": "vitest"
44
+ "test:watch": "vitest",
45
+ "build": "vite build"
36
46
  }
37
47
  }
package/src/Resume.jsx CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  BadgeList,
8
8
  safeUrl,
9
9
  getLinkRel,
10
- } from '@resume/core';
10
+ } from '@jsonresume/core';
11
11
 
12
12
  /**
13
13
  * Sidebar Resume Theme
@@ -315,6 +315,9 @@ function Resume({ resume }) {
315
315
  references = [],
316
316
  projects = [],
317
317
  awards = [],
318
+ certificates = [],
319
+ publications = [],
320
+ volunteer = [],
318
321
  interests = [],
319
322
  } = resume;
320
323
 
@@ -543,6 +546,45 @@ function Resume({ resume }) {
543
546
  </MainSection>
544
547
  )}
545
548
 
549
+ {/* Volunteer Section */}
550
+ {volunteer.length > 0 && (
551
+ <MainSection>
552
+ <MainSectionTitle>VOLUNTEER</MainSectionTitle>
553
+ {volunteer.map((vol, index) => (
554
+ <WorkItem key={index}>
555
+ <WorkHeader>
556
+ <div>
557
+ <WorkTitle>{vol.organization}</WorkTitle>
558
+ <WorkCompany>{vol.position}</WorkCompany>
559
+ </div>
560
+ <WorkDate>
561
+ {vol.startDate && (
562
+ <>
563
+ {new Date(vol.startDate).getFullYear()} -{' '}
564
+ {vol.endDate
565
+ ? new Date(vol.endDate).getFullYear()
566
+ : 'PRESENT'}
567
+ </>
568
+ )}
569
+ </WorkDate>
570
+ </WorkHeader>
571
+ {vol.summary && (
572
+ <p style={{ marginBottom: '10px', color: '#4a4a4a' }}>
573
+ {vol.summary}
574
+ </p>
575
+ )}
576
+ {vol.highlights && vol.highlights.length > 0 && (
577
+ <WorkDescription>
578
+ {vol.highlights.map((highlight, idx) => (
579
+ <li key={idx}>{highlight}</li>
580
+ ))}
581
+ </WorkDescription>
582
+ )}
583
+ </WorkItem>
584
+ ))}
585
+ </MainSection>
586
+ )}
587
+
546
588
  {/* Awards Section */}
547
589
  {awards.length > 0 && (
548
590
  <MainSection>
@@ -568,6 +610,77 @@ function Resume({ resume }) {
568
610
  </MainSection>
569
611
  )}
570
612
 
613
+ {/* Certificates Section */}
614
+ {certificates.length > 0 && (
615
+ <MainSection>
616
+ <MainSectionTitle>CERTIFICATES</MainSectionTitle>
617
+ {certificates.map((cert, index) => (
618
+ <div
619
+ key={index}
620
+ style={{ marginBottom: '20px', paddingLeft: '25px' }}
621
+ >
622
+ <WorkTitle>
623
+ {cert.url ? (
624
+ <a
625
+ href={safeUrl(cert.url)}
626
+ target="_blank"
627
+ rel={getLinkRel(cert.url, true)}
628
+ style={{ color: '#1e3a52' }}
629
+ >
630
+ {cert.name}
631
+ </a>
632
+ ) : (
633
+ cert.name
634
+ )}
635
+ </WorkTitle>
636
+ <WorkCompany>
637
+ {cert.issuer}
638
+ {cert.date &&
639
+ ` - ${new Date(cert.date).toLocaleDateString()}`}
640
+ </WorkCompany>
641
+ </div>
642
+ ))}
643
+ </MainSection>
644
+ )}
645
+
646
+ {/* Publications Section */}
647
+ {publications.length > 0 && (
648
+ <MainSection>
649
+ <MainSectionTitle>PUBLICATIONS</MainSectionTitle>
650
+ {publications.map((pub, index) => (
651
+ <div
652
+ key={index}
653
+ style={{ marginBottom: '20px', paddingLeft: '25px' }}
654
+ >
655
+ <WorkTitle>
656
+ {pub.url ? (
657
+ <a
658
+ href={safeUrl(pub.url)}
659
+ target="_blank"
660
+ rel={getLinkRel(pub.url, true)}
661
+ style={{ color: '#1e3a52' }}
662
+ >
663
+ {pub.name}
664
+ </a>
665
+ ) : (
666
+ pub.name
667
+ )}
668
+ </WorkTitle>
669
+ <WorkCompany>
670
+ {pub.publisher}
671
+ {pub.releaseDate &&
672
+ ` - ${new Date(pub.releaseDate).toLocaleDateString()}`}
673
+ </WorkCompany>
674
+ {pub.summary && (
675
+ <p style={{ marginTop: '8px', color: '#4a4a4a' }}>
676
+ {pub.summary}
677
+ </p>
678
+ )}
679
+ </div>
680
+ ))}
681
+ </MainSection>
682
+ )}
683
+
571
684
  {/* References Section */}
572
685
  {references.length > 0 && (
573
686
  <MainSection>
package/vite.config.js ADDED
@@ -0,0 +1,33 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ build: {
7
+ ssr: true,
8
+ target: 'node18',
9
+ outDir: './dist',
10
+ emptyOutDir: true,
11
+ minify: false,
12
+ lib: {
13
+ entry: './src/index.jsx',
14
+ formats: ['es'],
15
+ fileName: 'index',
16
+ },
17
+ rollupOptions: {
18
+ external: ['react', 'react-dom', 'react-dom/server', 'react/jsx-runtime'],
19
+ output: {
20
+ exports: 'named',
21
+ },
22
+ },
23
+ },
24
+ ssr: {
25
+ // Force bundle these packages instead of externalizing
26
+ noExternal: [
27
+ 'styled-components',
28
+ '@emotion/is-prop-valid',
29
+ 'stylis',
30
+ 'shallowequal',
31
+ ],
32
+ },
33
+ });
File without changes