create-foliokit 0.0.0-stage → 1.0.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.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -2
  3. package/bin/index.js +6 -0
  4. package/package.json +50 -4
  5. package/src/cli.js +111 -0
  6. package/src/generator.js +133 -0
  7. package/src/prompts.js +44 -0
  8. package/src/utils/errors.js +7 -0
  9. package/src/utils/paths.js +12 -0
  10. package/src/utils/progress.js +5 -0
  11. package/src/utils/project-name.js +30 -0
  12. package/templates/default/data.ts +169 -0
  13. package/templates/default/index.html +23 -0
  14. package/templates/default/package-lock.json +1280 -0
  15. package/templates/default/package.json +28 -0
  16. package/templates/default/public/avatar-placeholder.png +0 -0
  17. package/templates/default/public/experience-logo-placeholder.png +0 -0
  18. package/templates/default/public/project-placeholder.png +0 -0
  19. package/templates/default/public/robots.txt +2 -0
  20. package/templates/default/scripts/generate-seo.mjs +34 -0
  21. package/templates/default/src/App.tsx +582 -0
  22. package/templates/default/src/BrandIcon.tsx +36 -0
  23. package/templates/default/src/ProjectMagazineGallery.css +90 -0
  24. package/templates/default/src/ProjectMagazineGallery.tsx +218 -0
  25. package/templates/default/src/main.tsx +28 -0
  26. package/templates/default/src/styles.css +501 -0
  27. package/templates/default/src/utils.ts +2 -0
  28. package/templates/default/src/vite-env.d.ts +1 -0
  29. package/templates/default/tests/portfolio.test.js +96 -0
  30. package/templates/default/tsconfig.app.json +21 -0
  31. package/templates/default/tsconfig.json +7 -0
  32. package/templates/default/tsconfig.node.json +16 -0
  33. package/templates/default/types.ts +73 -0
  34. package/templates/default/vite.config.ts +38 -0
@@ -0,0 +1,501 @@
1
+ :root {
2
+ font-family: 'Inter', sans-serif;
3
+ color-scheme: dark;
4
+ color: #ffffffde;
5
+ background: #000000;
6
+ font-synthesis: none;
7
+ text-rendering: optimizeLegibility;
8
+ font-optical-sizing: auto;
9
+ scroll-behavior: smooth;
10
+ scroll-padding-top: 58px;
11
+ --obsidian: #000000;
12
+ --surface: #030303;
13
+ --card: #050505;
14
+ --graphite: #070707;
15
+ --elevated: #090909;
16
+ --secondary: #0b0b0b;
17
+ --lime: #e5cf9c;
18
+ --social-hover: #00e676;
19
+ --pink: #ec4899;
20
+ --violet: #a78bfa;
21
+ --warm-white: #ffffffde;
22
+ --muted: #99a1af;
23
+ --text-muted: #707a8b;
24
+ --border: #282828;
25
+ --stitch: #1c1c1c;
26
+ --frame-dot: #242424;
27
+ --frame-dot-hover: #3a352b;
28
+ --content-width: 880px;
29
+ --page-gutter: 16px;
30
+ --grid-size: 40px;
31
+ --grid-line: rgba(255, 255, 255, .18);
32
+ --section-space: 20px;
33
+ --section-space-end: 22px;
34
+ --panel-inset: 12px;
35
+ --text-2xs: 9px;
36
+ --text-xs: 10px;
37
+ --text-sm: 11px;
38
+ --text-base: 12px;
39
+ --heading-sm: 20px;
40
+ --heading-md: 24px;
41
+ --interaction-duration: 220ms;
42
+ --interaction-ease: cubic-bezier(.2, .7, .2, 1);
43
+ --heading-font: 'Space Grotesk', sans-serif;
44
+ --body-font: 'Inter', sans-serif;
45
+ --mono-font: 'JetBrains Mono', monospace;
46
+ }
47
+
48
+ * { box-sizing: border-box; }
49
+ html, body { overflow-x: clip; }
50
+ body { position: relative; min-width: 320px; margin: 0; color: var(--warm-white); background: #000000; isolation: isolate; }
51
+ body::before {
52
+ position: absolute;
53
+ z-index: -1;
54
+ inset: 0;
55
+ pointer-events: none;
56
+ background-color: var(--obsidian);
57
+ background-image:
58
+ linear-gradient(var(--grid-line) 1px, transparent 1px),
59
+ linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
60
+ background-position: center center, center center;
61
+ background-size: var(--grid-size) var(--grid-size);
62
+ background-repeat: repeat;
63
+ content: '';
64
+ }
65
+ a { color: inherit; text-decoration: none; transition: color var(--interaction-duration) var(--interaction-ease); }
66
+ a:hover, a:focus-visible { color: var(--lime); }
67
+ button, a { -webkit-tap-highlight-color: transparent; }
68
+ button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
69
+ h1, h2, h3, p { margin-top: 0; }
70
+ h1, h2, h3 { font-family: var(--heading-font); }
71
+ .mono { font-family: var(--mono-font); }
72
+ .section-wrap { width: min(var(--content-width), calc(100% - var(--page-gutter) - var(--page-gutter))); margin-inline: auto; background: var(--obsidian); }
73
+ .dotted-frame { position: relative; }
74
+ .dotted-frame::before { position: absolute; z-index: 0; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, var(--frame-dot) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, var(--frame-dot) 0 1px, transparent 1px 5px), repeating-linear-gradient(0deg, var(--frame-dot) 0 1px, transparent 1px 5px), repeating-linear-gradient(0deg, var(--frame-dot) 0 1px, transparent 1px 5px); background-repeat: no-repeat; background-position: center top, center bottom, left center, right center; background-size: calc(100% - 16px) 1px, calc(100% - 16px) 1px, 1px calc(100% - 16px), 1px calc(100% - 16px); content: ''; transition: background-image .18s ease; }
75
+ .dotted-frame > * { position: relative; z-index: 1; }
76
+
77
+
78
+ .site-header {
79
+ position: sticky;
80
+ top: 0;
81
+ z-index: 10;
82
+ display: flex;
83
+ min-height: 48px;
84
+ align-items: center;
85
+ justify-content: space-between;
86
+ padding-inline: max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
87
+ border-bottom: 1px dotted var(--frame-dot);
88
+ background: color-mix(in srgb, var(--obsidian) 94%, transparent);
89
+ backdrop-filter: blur(12px);
90
+ }
91
+ @supports (animation-timeline: scroll()) {
92
+ .site-header {
93
+ animation: header-scroll-transparency linear both;
94
+ animation-timeline: scroll(root block);
95
+ animation-range: 0px 120px;
96
+ }
97
+ }
98
+ @keyframes header-scroll-transparency {
99
+ from { background-color: color-mix(in srgb, var(--obsidian) 94%, transparent); }
100
+ to { background-color: color-mix(in srgb, var(--obsidian) 48%, transparent); }
101
+ }
102
+ .wordmark { color: var(--warm-white); font: 700 14px/1 var(--heading-font); letter-spacing: -.035em; transition: color var(--interaction-duration) var(--interaction-ease); }
103
+ .wordmark:hover, .wordmark:focus-visible { color: var(--lime); }
104
+ .wordmark-dot { color: var(--lime); }
105
+ .main-nav { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: var(--text-sm); }
106
+ .main-nav a { padding: 4px 1px; }
107
+ .text-interaction { position: relative; display: inline-block; transition: color var(--interaction-duration) var(--interaction-ease); }
108
+ a.text-interaction:hover, a.text-interaction:focus-visible,
109
+ a:hover .text-interaction, a:focus-visible .text-interaction,
110
+ .project-card:hover .text-interaction, .project-card:focus-within .text-interaction,
111
+ .contact-submit:hover .text-interaction, .contact-submit:focus-visible .text-interaction { color: var(--lime); }
112
+ .main-nav .nav-link.is-active { color: var(--lime); }
113
+ .main-nav .nav-link { transition: color var(--interaction-duration) var(--interaction-ease); }
114
+ .main-nav .nav-link:hover, .main-nav .nav-link:focus-visible { color: inherit; }
115
+ .main-nav .nav-link.is-active:hover, .main-nav .nav-link.is-active:focus-visible { color: var(--lime); }
116
+ .nav-label-swap { position: relative; display: block; height: 1lh; overflow: hidden; }
117
+ .nav-label-swap::after {
118
+ position: absolute;
119
+ inset: 0;
120
+ font: inherit;
121
+ line-height: 1lh;
122
+ white-space: nowrap;
123
+ color: transparent;
124
+ background-image:
125
+ linear-gradient(105deg, transparent 34%, rgba(255, 240, 204, .08) 43%, rgba(255, 240, 204, .42) 48%, rgba(255, 240, 204, .78) 50%, rgba(255, 240, 204, .42) 52%, rgba(255, 240, 204, .08) 57%, transparent 66%),
126
+ linear-gradient(105deg, transparent 47%, rgba(255, 240, 204, .9) 50%, transparent 53%);
127
+ background-size: 240% 100%, 240% 100%;
128
+ background-position: 100% 50%, 100% 50%;
129
+ background-clip: text;
130
+ -webkit-background-clip: text;
131
+ -webkit-text-fill-color: transparent;
132
+ content: attr(data-label);
133
+ opacity: 0;
134
+ pointer-events: none;
135
+ }
136
+ .main-nav .nav-link:hover .nav-label-swap::after,
137
+ .main-nav .nav-link:focus-visible .nav-label-swap::after { animation: nav-label-shimmer 1.05s cubic-bezier(.2, .7, .2, 1) 2 both; }
138
+ @keyframes nav-label-shimmer {
139
+ 0%, 100% { background-position: 100% 50%, 100% 50%; opacity: 0; }
140
+ 12%, 72% { opacity: 1; }
141
+ 88% { background-position: 0% 50%, 0% 50%; opacity: .8; }
142
+ }
143
+ @media (prefers-reduced-motion: reduce) {
144
+ .main-nav .nav-link:hover .nav-label-swap::after,
145
+ .main-nav .nav-link:focus-visible .nav-label-swap::after { animation: none; }
146
+ }
147
+ .nav-label-primary, .nav-label-copy {
148
+ display: block;
149
+ height: 1lh;
150
+ line-height: 1lh;
151
+ white-space: nowrap;
152
+ transition: transform 400ms cubic-bezier(.22, .75, .25, 1);
153
+ }
154
+ .nav-label-primary { color: inherit; }
155
+ .nav-label-copy {
156
+ position: absolute;
157
+ top: 100%;
158
+ left: 0;
159
+ color: color-mix(in srgb, var(--lime) 72%, var(--warm-white));
160
+ }
161
+ .main-nav .nav-link:hover .nav-label-primary,
162
+ .main-nav .nav-link:focus-visible .nav-label-primary,
163
+ .main-nav .nav-link:hover .nav-label-copy,
164
+ .main-nav .nav-link:focus-visible .nav-label-copy { transform: translateY(-100%); }
165
+ a > svg, a > img, button > svg, button > img { transition: transform var(--interaction-duration) var(--interaction-ease), color var(--interaction-duration) var(--interaction-ease), filter var(--interaction-duration) var(--interaction-ease); }
166
+ a:not(.social-link):not(.contact-social-link):hover > svg, a:not(.social-link):not(.contact-social-link):focus-visible > svg, button:hover > svg, button:focus-visible > svg { transform: scale(1.06); color: var(--lime); }
167
+ a:not(.social-link):not(.contact-social-link):hover > img, a:not(.social-link):not(.contact-social-link):focus-visible > img, button:not(.skill-tile):hover > img, button:not(.skill-tile):focus-visible > img { transform: scale(1.06); filter: brightness(0) saturate(100%) invert(86%) sepia(17%) saturate(560%) hue-rotate(356deg) brightness(96%) contrast(90%); }
168
+ .menu-toggle { display: none; color: var(--warm-white); border: 0; background: transparent; transition: color var(--interaction-duration) var(--interaction-ease); }
169
+ .menu-toggle:hover, .menu-toggle:focus-visible { color: var(--lime); }
170
+
171
+ .hero {
172
+ position: relative;
173
+ display: block;
174
+ padding: 18px 0 16px;
175
+ border-left: 1px dashed var(--frame-dot);
176
+ padding-left: 12px;
177
+ padding-right: 12px;
178
+ text-align: left;
179
+ }
180
+ .hero::before { display: none; }
181
+ .hero > * { position: relative; z-index: 1; }
182
+ .hero::after {
183
+ position: absolute;
184
+ right: 0;
185
+ bottom: 0;
186
+ left: 0;
187
+ height: 1px;
188
+ background: repeating-linear-gradient(90deg, var(--stitch) 0 4px, transparent 4px 8px);
189
+ content: '';
190
+ }
191
+ .profile-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 1px 0 15px; }
192
+ .profile-identity { display: flex; min-width: 0; align-items: center; gap: 15px; }
193
+ .profile-copy { min-width: 0; }
194
+ .profile-photo-stage { position: relative; width: 100px; height: 96px; flex: 0 0 100px; }
195
+ .profile-photo { position: absolute; top: 6px; left: 8px; z-index: 2; display: block; width: 84px; height: 84px; border: 1px solid color-mix(in srgb, var(--warm-white) 26%, transparent); border-radius: 50%; object-fit: cover; object-position: center; }
196
+ .hero h1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 7px; margin: 0; color: var(--warm-white); font: 600 25px/1.15 var(--heading-font); letter-spacing: -.05em; }
197
+ .verified-mark { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-self: center; align-items: center; justify-content: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
198
+ .verified-mark svg { display: block; width: 100%; height: 100%; }
199
+ .skill-name, .site-tooltip { padding: 6px 9px; border: 1px dotted var(--frame-dot-hover); border-radius: 4px; color: var(--warm-white); background: var(--elevated); font: 10px/1.3 var(--body-font); font-weight: 400; letter-spacing: 0; text-align: center; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
200
+ .site-tooltip { position: fixed; z-index: 100; max-width: min(220px, calc(100vw - 24px)); overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transform: translate(-50%, -100%) scale(.98); animation: tooltip-enter .16s ease both; }
201
+ .site-tooltip.is-below { transform: translate(-50%, 0) scale(.98); }
202
+ @keyframes tooltip-enter { from { opacity: 0; transform: translate(-50%, -100%) scale(.97); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
203
+ .site-tooltip.is-below { animation-name: tooltip-enter-below; }
204
+ @keyframes tooltip-enter-below { from { opacity: 0; transform: translate(-50%, 0) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
205
+ .profile-intro { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px; margin: 6px 0 0; color: var(--muted); font: 14px/1.4 var(--body-font); }
206
+ .waving-hand { display: inline-block; margin-right: 2px; transform-origin: 70% 70%; animation: wave-hand 2.4s ease-in-out infinite; }
207
+ .profile-intro .profile-role { margin: 0; color: #D6B77A; font: 500 15px/1.4 var(--body-font); text-shadow: none; }
208
+ @supports ((background-clip: text) or (-webkit-background-clip: text)) {
209
+ .profile-intro .profile-role {
210
+ background-image:
211
+ linear-gradient(105deg, #A88A52 0%, #D6B77A 25%, #FFF0CC 50%, #D6B77A 75%, #A88A52 100%),
212
+ linear-gradient(100deg, transparent 0%, rgba(255, 240, 204, 0) 42%, rgba(255, 240, 204, .6) 47%, rgba(255, 255, 239, 1) 50%, rgba(255, 240, 204, .6) 53%, rgba(255, 240, 204, 0) 58%, transparent 100%);
213
+ background-size: 100% 100%, 240% 100%;
214
+ background-position: 0 0, 100% 50%;
215
+ background-clip: text;
216
+ -webkit-background-clip: text;
217
+ -webkit-text-fill-color: transparent;
218
+ animation: role-metallic-shimmer 2.8s linear infinite;
219
+ }
220
+ }
221
+ .profile-metadata { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px; margin: 0; color: var(--muted); font: 12px/1.4 var(--mono-font); }
222
+ .profile-metadata-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
223
+ .profile-metadata-item svg { flex: 0 0 auto; color: var(--text-muted); }
224
+ .profile-time-item::before { display: none; }
225
+ .profile-divider { height: 2px; background: repeating-linear-gradient(135deg, var(--stitch) 0 3px, transparent 3px 7px); }
226
+ .profile-bio { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 13px 0 0; color: var(--muted); font: 13px/1.65 var(--body-font); text-align: left; }
227
+ .profile-bio p { min-width: 0; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
228
+ .profile-bio-content { width: 100%; max-width: 100%; min-width: 0; }
229
+ .profile-bio-copy { display: grid; min-width: 0; gap: 10px; }
230
+ .about-social-icons { margin-top: 14px; }
231
+ .profile-photo-placeholder { display: grid; place-items: center; border: 1px solid var(--border); background: radial-gradient(circle at 35% 25%, #242424, #050505 72%); color: var(--lime); font: 600 30px/1 var(--heading-font); letter-spacing: -.04em; }
232
+ .portfolio-content-section { margin-top: var(--section-space); }
233
+ .portfolio-content-panel { padding: 16px; }
234
+ .portfolio-content-panel > header { margin-bottom: 12px; }
235
+ .portfolio-content-panel h2 { margin-bottom: 5px; font-size: var(--heading-md); }
236
+ .portfolio-content-panel h2 span { color: var(--lime); }
237
+ .portfolio-content-panel > header > p, .portfolio-content-card > p { color: var(--muted); }
238
+ .portfolio-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
239
+ .portfolio-content-card { min-width: 0; padding: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--warm-white); }
240
+ .portfolio-content-card h3 { margin-bottom: 5px; font: 600 14px/1.3 var(--heading-font); }
241
+ .portfolio-content-card p { margin-bottom: 7px; font-size: var(--text-sm); line-height: 1.55; }
242
+ .portfolio-content-card .portfolio-content-organization, .portfolio-content-card .portfolio-content-date { color: var(--text-muted); }
243
+ .portfolio-content-card img { display: block; width: 100%; max-height: 180px; margin-bottom: 10px; border-radius: 3px; object-fit: cover; }
244
+ .testimonial-card blockquote { margin: 0 0 14px; color: var(--warm-white); font: italic 13px/1.6 var(--body-font); }
245
+ .testimonial-card img { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; }
246
+ .testimonial-avatar-fallback { display: grid; width: 48px; height: 48px; margin-bottom: 10px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--lime); background: var(--card); font: 600 14px/1 var(--heading-font); }
247
+ .testimonial-card .portfolio-content-organization { margin-bottom: 0; }
248
+ [hidden] { display: none !important; }
249
+ .portfolio-content-card a { display: inline-block; margin: 2px 10px 2px 0; color: var(--lime); font-size: var(--text-sm); }
250
+ .portfolio-history-panel { overflow: hidden; margin: 4px 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
251
+ .portfolio-history-panel > header { margin: 0; padding: 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, var(--graphite)); }
252
+ .portfolio-history-panel > header h2 { margin: 0; }
253
+ .portfolio-history-list { display: grid; gap: 7px; padding: 12px; }
254
+ .portfolio-history-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(100px, 22%); align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px dashed var(--frame-dot); border-radius: 4px; background: transparent; transition: border-color var(--interaction-duration) var(--interaction-ease); }
255
+ .portfolio-history-row.is-education-row { grid-template-columns: minmax(0, 1fr) minmax(100px, 22%); }
256
+ .portfolio-history-row:hover, .portfolio-history-row:focus-within { border-color: color-mix(in srgb, var(--lime) 58%, var(--frame-dot)); }
257
+ .portfolio-history-logo { width: 56px; height: 56px; margin: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--card); object-fit: contain; }
258
+ .portfolio-history-main { min-width: 0; }
259
+ .portfolio-history-main h3, .portfolio-content-organization { overflow-wrap: anywhere; }
260
+ .portfolio-history-main h3 { margin: 0 0 4px; color: var(--warm-white); font: 600 var(--text-md)/1.35 var(--heading-font); }
261
+ .portfolio-history-row .portfolio-content-organization, .portfolio-history-date, .portfolio-history-description { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; }
262
+ .portfolio-history-meta { display: grid; min-width: 0; max-width: 100%; justify-items: end; align-content: center; gap: 6px; }
263
+ .portfolio-history-date { justify-self: end; width: fit-content; min-width: 0; max-width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--card); color: var(--muted); text-align: right; white-space: normal; overflow-wrap: anywhere; }
264
+ .portfolio-history-location { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.3; text-align: right; }
265
+ .portfolio-history-location { min-width: 0; max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
266
+ .portfolio-history-location svg { flex: 0 0 auto; }
267
+ .portfolio-organization-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: underline dotted var(--frame-dot); text-underline-offset: 3px; transition: color var(--interaction-duration) var(--interaction-ease), text-decoration-color var(--interaction-duration) var(--interaction-ease); }
268
+ .portfolio-organization-link:hover, .portfolio-organization-link:focus-visible { color: var(--lime); text-decoration-color: var(--lime); }
269
+ .portfolio-history-link { display: inline-flex; margin-left: 8px; color: var(--text-muted); font-size: 1.15em; text-decoration: none; transition: color .2s ease, transform .2s ease; }
270
+ .portfolio-history-link:hover, .portfolio-history-link:focus-visible { color: var(--lime); transform: translate(2px, -2px); }
271
+ .portfolio-history-description { margin-top: 5px; }
272
+ @media (max-width: 600px) {
273
+ .portfolio-history-panel > header { padding: 14px 12px; }
274
+ .portfolio-history-row { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
275
+ .portfolio-history-row.is-education-row { grid-template-columns: minmax(0, 1fr); }
276
+ .portfolio-history-logo { width: 46px; height: 46px; border-radius: 10px; }
277
+ .portfolio-history-meta { grid-column: 2; justify-items: start; }
278
+ .portfolio-history-date, .portfolio-history-location { justify-self: start; text-align: left; }
279
+ .portfolio-history-row.is-education-row .portfolio-history-meta { grid-column: 1; }
280
+ }
281
+ .metallic-shimmer-text { color: #D6B77A; }
282
+ @supports ((background-clip: text) or (-webkit-background-clip: text)) {
283
+ .metallic-shimmer-text {
284
+ background-image:
285
+ linear-gradient(105deg, #A88A52 0%, #D6B77A 25%, #FFF0CC 50%, #D6B77A 75%, #A88A52 100%),
286
+ linear-gradient(100deg, transparent 0%, rgba(255, 240, 204, 0) 43%, rgba(255, 240, 204, .55) 48%, rgba(255, 255, 239, 1) 50%, rgba(255, 240, 204, .55) 52%, rgba(255, 240, 204, 0) 57%, transparent 100%);
287
+ background-size: 100% 100%, 230% 100%;
288
+ background-position: 0 0, 100% 50%;
289
+ background-clip: text;
290
+ -webkit-background-clip: text;
291
+ -webkit-text-fill-color: transparent;
292
+ animation: bio-role-metallic-shimmer 2.8s linear infinite;
293
+ }
294
+ }
295
+ @keyframes bio-role-metallic-shimmer {
296
+ from { background-position: 0 0, 100% 50%; }
297
+ to { background-position: 0 0, 0% 50%; }
298
+ }
299
+ .social-links { display: flex; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 7px; margin-top: 14px; }
300
+ .social-link { display: inline-flex; width: auto; min-width: 0; height: 35px; flex: 0 0 auto; align-items: center; justify-content: flex-start; gap: 7px; padding: 6px 9px; border: 1px dotted var(--frame-dot); border-radius: 5px; color: var(--muted); background: var(--surface); font: 10px/1.2 var(--body-font); transition: transform var(--interaction-duration) var(--interaction-ease), color var(--interaction-duration) var(--interaction-ease), border-color var(--interaction-duration) var(--interaction-ease), background var(--interaction-duration) var(--interaction-ease), opacity var(--interaction-duration) var(--interaction-ease); }
301
+ .social-link:hover, .social-link:focus-visible,
302
+ .contact-social-link:hover, .contact-social-link:focus-visible { color: var(--social-hover); border-color: var(--frame-dot); }
303
+ .social-link:hover .social-icon, .social-link:focus-visible .social-icon, .contact-social-link:hover > svg, .contact-social-link:focus-visible > svg, .contact-social-link:hover > img, .contact-social-link:focus-visible > img { opacity: 1; }
304
+ .social-link:hover .social-icon, .social-link:focus-visible .social-icon, .contact-social-link:hover > img, .contact-social-link:focus-visible > img { filter: brightness(0) saturate(100%) invert(72%) sepia(99%) saturate(1037%) hue-rotate(82deg) brightness(102%) contrast(104%); }
305
+ .contact-social-link:hover > svg, .contact-social-link:focus-visible > svg { color: var(--social-hover); }
306
+ .social-link.is-unavailable { cursor: default; }
307
+ .social-icon { display: block; width: 16px; height: 16px; object-fit: contain; opacity: .82; transition: opacity var(--interaction-duration) var(--interaction-ease), transform var(--interaction-duration) var(--interaction-ease), filter var(--interaction-duration) var(--interaction-ease); }
308
+ .brand-icon-fallback { display: inline-grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--frame-dot); border-radius: 3px; color: var(--muted); background: color-mix(in srgb, var(--surface) 82%, transparent); font: 700 6px/1 var(--mono-font); letter-spacing: -.04em; }
309
+ .resume-icon { color: var(--muted); }
310
+
311
+ .section-rule { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; letter-spacing: .09em; }
312
+ .rule-dots { height: 1px; flex: 1; background: repeating-linear-gradient(90deg, var(--stitch) 0 4px, transparent 4px 8px); }
313
+ .eyebrow { display: inline-block; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
314
+ .projects { position: relative; padding: var(--section-space) 0 var(--section-space-end) 14px; border-left: 1px solid var(--frame-dot); text-align: left; }
315
+ .projects::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--stitch) 0 4px, transparent 4px 8px); content: ''; }
316
+ .projects-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 5px 0 10px; }
317
+ .projects-intro h2 { margin: 0; font-size: clamp(22px, 2.5vw, 25px); line-height: 1.12; font-weight: 600; }
318
+ .projects-period { color: var(--lime); }
319
+ .project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; text-align: left; }
320
+ .project-card { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 22px; padding: 15px; border: 1px dashed var(--frame-dot); border-radius: 4px; background: color-mix(in srgb, var(--card) 72%, transparent); }
321
+ .project-thumbnail { display: block; width: 100%; min-width: 0; aspect-ratio: 16 / 9; border: 1px solid rgba(164, 165, 168, .12); border-radius: 4px; object-fit: cover; }
322
+ .project-thumbnail-placeholder { display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #242424, #050505 72%); color: var(--lime); font: 600 26px/1 var(--heading-font); }
323
+ .project-thumbnail.is-desaturated { aspect-ratio: 1.9 / 1; background: #f3f6fa; filter: grayscale(1); object-fit: contain; transition: filter 450ms ease; }
324
+ .project-card:hover .project-thumbnail.is-desaturated, .project-card:focus-within .project-thumbnail.is-desaturated { filter: grayscale(0); }
325
+ .project-info { display: flex; min-width: 0; flex-direction: column; gap: 9px; padding: 1px 0; }
326
+ .project-heading-row { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
327
+ .project-info > h3 { margin: 0; color: var(--warm-white); font: 600 15px/1.25 var(--heading-font); letter-spacing: -.025em; }
328
+ .project-info > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
329
+ .project-stack { display: flex; flex-direction: column; gap: 5px; }
330
+ .project-stack h4 { margin: 0; color: var(--warm-white); font: 600 12px/1.25 var(--heading-font); }
331
+ .project-tech-list, .project-actions { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
332
+ .project-tech-pill { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; color: var(--warm-white); background: var(--surface); font-size: 10px; line-height: 1.2; white-space: nowrap; }
333
+ .project-actions a, .project-actions .project-action-placeholder { display: inline-flex; min-height: 26px; align-items: center; justify-content: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: 10px; line-height: 1.25; text-align: left; transition: color var(--interaction-duration) var(--interaction-ease), border-color var(--interaction-duration) var(--interaction-ease), background var(--interaction-duration) var(--interaction-ease); }
334
+ .project-actions .project-action-placeholder { max-width: 190px; color: var(--text-muted); font-family: var(--body-font); cursor: pointer; }
335
+ .project-actions a:hover, .project-actions a:focus-visible, .project-actions .project-action-placeholder:hover { color: var(--lime); }
336
+ .project-actions a > svg, .project-actions a > img, .project-actions .project-action-placeholder > svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; object-fit: contain; transition: transform var(--interaction-duration) var(--interaction-ease), filter var(--interaction-duration) var(--interaction-ease), color var(--interaction-duration) var(--interaction-ease); }
337
+ .project-actions a:focus-visible, .project-actions .project-action-placeholder:focus-visible { outline: 1px solid var(--frame-dot-hover); outline-offset: 1px; }
338
+
339
+ .skills, .contact-section { position: relative; padding: var(--section-space) 0 var(--section-space-end); }
340
+ .contact-section::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--stitch) 0 4px, transparent 4px 8px); content: ''; }
341
+ .hero { margin-bottom: 4px; }
342
+ .skills-panel { padding: 11px 14px 13px; border: 1px dashed var(--frame-dot); background: var(--surface); }
343
+ .skills-panel::before { display: none; }
344
+ .skills-panel > h2 { position: relative; z-index: 1; margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px dotted var(--frame-dot); color: var(--warm-white); font: 600 20px/1.1 var(--heading-font); letter-spacing: -.045em; text-transform: lowercase; }
345
+ .skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
346
+ .skill-tile { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 4px; color: var(--warm-white); background: transparent; }
347
+ .skill-tile:hover { z-index: 2; }
348
+ .skill-logo { width: 32px; height: 32px; object-fit: contain; }
349
+ .skill-logo-fallback { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--frame-dot); border-radius: 4px; color: var(--muted); font: 700 8px/1 var(--mono-font); letter-spacing: -.02em; }
350
+ .skill-logo-fallback[hidden] { display: none; }
351
+ .skill-name { position: absolute; top: calc(100% + 7px); left: 50%; z-index: 8; min-width: max-content; opacity: 0; pointer-events: none; transform: translate(-50%, -3px) scale(.97); transition: opacity var(--interaction-duration) var(--interaction-ease), transform var(--interaction-duration) var(--interaction-ease); }
352
+ .skill-tile:hover .skill-name { opacity: 1; transform: translate(-50%, 0) scale(1); }
353
+ .contact-panel { padding: 12px; background: var(--surface); }
354
+ .contact-heading { padding: 1px 1px 9px; border-bottom: 1px dotted var(--frame-dot); }
355
+ .contact-heading h2 { margin: 0; color: var(--warm-white); font: 600 21px/1.15 var(--heading-font); letter-spacing: -.04em; }
356
+ .contact-heading h2 span { color: var(--lime); }
357
+ .contact-heading > p, .contact-subheading > p { margin: 5px 0 0; color: var(--muted); font: 11px/1.5 var(--body-font); }
358
+ .contact-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
359
+ .contact-form { min-width: 0; padding: 10px 14px 0 1px; }
360
+ .contact-subheading h3 { margin: 0; color: var(--warm-white); font: 500 14px/1.25 var(--heading-font); }
361
+ .contact-subheading > p { margin-top: 3px; }
362
+ .contact-field { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px dotted var(--frame-dot); color: var(--text-muted); transition: color var(--interaction-duration) var(--interaction-ease), border-color var(--interaction-duration) var(--interaction-ease); }
363
+ .contact-field:focus-within { border-color: var(--lime); color: var(--lime); }
364
+ .contact-field > svg { flex: 0 0 auto; }
365
+ .contact-field input, .contact-field textarea { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--warm-white); background: transparent; font: 12px/1.45 var(--body-font); }
366
+ .contact-field textarea { min-height: 52px; resize: none; }
367
+ .contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--text-muted); opacity: 1; }
368
+ .contact-message-field { align-items: flex-start; }
369
+ .contact-message-field > svg { margin-top: 2px; }
370
+ .contact-submit { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: center; gap: 7px; margin-top: 9px; border: 1px dotted var(--frame-dot); border-radius: 3px; color: var(--warm-white); background: transparent; font: 500 11px/1 var(--body-font); cursor: pointer; transition: color var(--interaction-duration) var(--interaction-ease); }
371
+ .contact-submit:hover, .contact-submit:focus-visible { color: var(--lime); }
372
+ .contact-submit:hover > svg, .contact-submit:focus-visible > svg { transform: scale(1.06); color: var(--lime); }
373
+ .contact-submit:active > svg { transform: scale(.94); }
374
+ .contact-submit:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
375
+ .contact-social-panel { min-width: 0; padding: 10px 1px 0 14px; border-left: 1px dotted var(--frame-dot); }
376
+ .contact-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
377
+ .contact-social-link { display: flex; min-width: 0; min-height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 6px 8px; border: 1px dotted var(--frame-dot); border-radius: 3px; color: var(--muted); background: transparent; font: 10px/1.25 var(--body-font); transition: color var(--interaction-duration) var(--interaction-ease), border-color var(--interaction-duration) var(--interaction-ease); }
378
+ .contact-social-link:hover, .contact-social-link:focus-visible { color: var(--social-hover); }
379
+ .social-link:focus-visible, .contact-social-link:focus-visible, .skill-tile:focus-visible { outline-color: var(--frame-dot-hover); }
380
+ .contact-social-link > svg, .contact-social-link > img, .contact-brand-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; }
381
+ .contact-social-link > svg { color: var(--muted); }
382
+ .contact-social-link > svg, .contact-social-link > img { opacity: .82; transition: transform var(--interaction-duration) var(--interaction-ease), opacity var(--interaction-duration) var(--interaction-ease), filter var(--interaction-duration) var(--interaction-ease), color var(--interaction-duration) var(--interaction-ease); }
383
+ .contact-brand-icon { fill: currentColor; }
384
+ .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
385
+ .site-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 17px var(--page-gutter) 20px; border-top: 1px dotted var(--frame-dot); color: var(--muted); text-align: center; }
386
+ .footer-social-links { justify-content: center; margin-top: 4px; }
387
+ .footer-copyright, .footer-credit, .footer-quote { margin: 0; font-family: var(--body-font); }
388
+ .footer-copyright { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
389
+ .footer-credit { color: var(--muted); font-size: 10px; line-height: 1.45; }
390
+ .footer-quote { width: min(100%, var(--content-width)); margin-top: 5px; padding-top: 9px; border-top: 1px dotted color-mix(in srgb, var(--frame-dot) 72%, transparent); color: var(--text-muted); font-size: 10px; font-style: italic; line-height: 1.45; letter-spacing: .01em; }
391
+
392
+ @keyframes wave-hand {
393
+ 0%, 62%, 100% { transform: rotate(0); }
394
+ 8% { transform: rotate(13deg); }
395
+ 16% { transform: rotate(-8deg); }
396
+ 24% { transform: rotate(11deg); }
397
+ 32% { transform: rotate(-6deg); }
398
+ 40% { transform: rotate(7deg); }
399
+ 48% { transform: rotate(-3deg); }
400
+ 56% { transform: rotate(3deg); }
401
+ }
402
+ @keyframes role-glow {
403
+ from { text-shadow: 0 0 3px rgba(229, 207, 156, .2); }
404
+ to { text-shadow: 0 0 5px rgba(229, 207, 156, .32); }
405
+ }
406
+ @keyframes role-metallic-shimmer {
407
+ from { background-position: 0 0, 100% 50%; }
408
+ to { background-position: 0 0, 0% 50%; }
409
+ }
410
+
411
+ @media (prefers-reduced-motion: reduce) {
412
+ .profile-intro .profile-role, .metallic-shimmer-text { animation: none; }
413
+ }
414
+
415
+ @media (max-width: 760px) {
416
+ :root { --page-gutter: 14px; }
417
+ .main-nav { gap: 12px; }
418
+ .project-grid { gap: 8px; }
419
+ }
420
+ @media (max-width: 600px) {
421
+ :root { --page-gutter: 12px; --section-space: 16px; --section-space-end: 18px; --panel-inset: 10px; }
422
+ .site-header { min-height: 44px; }
423
+ .wordmark { font-size: 13px; }
424
+ .menu-toggle { display: grid; width: 36px; height: 36px; min-width: 44px; min-height: 44px; place-items: center; }
425
+ .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 6px var(--page-gutter) 9px; border-bottom: 1px dotted var(--frame-dot); background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
426
+ .main-nav.is-open { display: flex; flex-direction: column; }
427
+ .main-nav > a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; border-bottom: 1px dotted var(--frame-dot); font-size: 13px; }
428
+ .hero { padding: 14px 12px 11px; }
429
+ .hero::before { display: none; }
430
+ .profile-header { flex-wrap: wrap; gap: 12px 14px; }
431
+ .profile-identity { flex: 1 1 230px; gap: 11px; }
432
+ .profile-photo-stage { width: 78px; height: 76px; flex-basis: 78px; }
433
+ .profile-photo { top: 6px; left: 7px; width: 64px; height: 64px; border-radius: 50%; }
434
+ .hero h1 { margin-top: 7px; font-size: 22px; }
435
+ .profile-intro { font-size: 13px; }
436
+ .profile-intro .profile-role { font-size: 14px; }
437
+ .profile-metadata { min-width: 0; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; font-size: 10px; }
438
+ .profile-bio { max-width: 100%; font-size: 12px; line-height: 1.55; }
439
+ .social-links { gap: 6px; margin-top: 12px; }
440
+ .social-link { min-height: 44px; padding: 7px 10px; }
441
+ .projects { padding: var(--section-space) 0 var(--section-space-end) 12px; }
442
+ .projects-intro { gap: 4px; padding: 5px 0 9px; }
443
+ .projects-intro h2 { font-size: 22px; }
444
+ .project-grid { gap: 7px; }
445
+ .project-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 9px; }
446
+ .project-thumbnail { width: 100%; aspect-ratio: 16 / 9; }
447
+ .project-info { gap: 7px; }
448
+ .project-info > h3 { font-size: 14px; }
449
+ .project-info > p { font-size: 10px; }
450
+ .project-actions a { min-height: 44px; padding: 5px 10px; font-size: 11px; }
451
+ .skills-panel { padding: 9px 10px 11px; }
452
+ .skills-panel > h2 { margin-bottom: 7px; padding-bottom: 6px; font-size: 18px; }
453
+ .skills-grid { gap: 4px; }
454
+ .skill-tile { width: 38px; height: 38px; flex-basis: 38px; }
455
+ .skill-logo { width: 29px; height: 29px; }
456
+ .contact-panel { padding: 10px; }
457
+ .contact-panel::after { left: 10px; }
458
+ .contact-content { grid-template-columns: minmax(0, 1fr); }
459
+ .contact-form { padding: 9px 0 10px; }
460
+ .contact-social-panel { padding: 9px 0 0; border-top: 1px dotted var(--frame-dot); border-left: 0; }
461
+ .contact-submit, .contact-social-link { min-height: 44px; }
462
+ .site-footer { padding: 16px var(--page-gutter) 18px; }
463
+ }
464
+ @media (max-width: 380px) {
465
+ :root { --page-gutter: 10px; }
466
+ .profile-metadata { gap: 4px; font-size: 9px; }
467
+ .social-links { gap: 4px; }
468
+ .project-card { gap: 8px; padding: 8px; }
469
+ .contact-social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
470
+ }
471
+ main > section.section-wrap {
472
+ padding-inline: var(--panel-inset);
473
+ margin-bottom: var(--section-space);
474
+ border: 1px dashed var(--frame-dot);
475
+ border-radius: 0;
476
+ }
477
+ main > section.section-wrap::before,
478
+ main > section.section-wrap::after { display: none; }
479
+ .dotted-frame::before { display: none; }
480
+ .skills-panel, .contact-panel { border: 0; border-radius: 0; }
481
+ .project-card { border: 1px dashed var(--frame-dot); border-radius: 0; }
482
+ .project-card {
483
+ transition: border-color var(--interaction-duration) var(--interaction-ease);
484
+ }
485
+ .project-card:hover, .project-card:focus-within {
486
+ border-color: color-mix(in srgb, var(--lime) 58%, var(--frame-dot));
487
+ }
488
+ @media (prefers-reduced-motion: reduce) {
489
+ *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
490
+ }
491
+ .skills-panel > h2,
492
+ .projects-intro h2,
493
+ .contact-heading h2 {
494
+ color: var(--warm-white);
495
+ font: 600 20px/1.15 var(--heading-font);
496
+ letter-spacing: -.04em;
497
+ text-transform: none;
498
+ }
499
+ .skills-panel > h2 span,
500
+ .projects-intro h2 span,
501
+ .contact-heading h2 span { color: inherit; }
@@ -0,0 +1,2 @@
1
+ export const projectCardId = (name: string) =>
2
+ `project-${name.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -0,0 +1,96 @@
1
+ import assert from 'node:assert/strict'
2
+ import { access, readFile } from 'node:fs/promises'
3
+ import { createElement } from 'react'
4
+ import { dirname, resolve } from 'node:path'
5
+ import { fileURLToPath } from 'node:url'
6
+ import { renderToStaticMarkup } from 'react-dom/server'
7
+ import { createServer } from 'vite'
8
+ import test from 'node:test'
9
+
10
+ test('portfolio content, optional sections, section ordering and custom sections follow data.ts', async () => {
11
+ const templateRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..')
12
+ const server = await createServer({ root: templateRoot, configFile: resolve(templateRoot, 'vite.config.ts'), server: { middlewareMode: true }, appType: 'custom' })
13
+ try {
14
+ const [{ default: App }, { portfolioConfig: config }] = await Promise.all([
15
+ server.ssrLoadModule('/src/App.tsx'),
16
+ server.ssrLoadModule('/data.ts'),
17
+ ])
18
+ const original = structuredClone(config)
19
+ const render = () => renderToStaticMarkup(createElement(App))
20
+
21
+ try {
22
+ let html = render()
23
+ const readableHtml = () => html.replaceAll('&#x27;', "'")
24
+ assert.match(html, /Your Name/)
25
+ assert.match(html, /Delhi, India/)
26
+ assert.equal(config.projects.length, 3)
27
+ assert.equal(config.testimonials.length, 3)
28
+ const projectCards = html.match(/<article class="project-card[^]*?<\/article>/g) ?? []
29
+ assert.equal(projectCards.length, 3)
30
+ assert.ok(projectCards.every((card) => !/<a\b/.test(card)), 'projects without URLs have no clickable action links')
31
+ const aboutSection = html.match(/<section class="profile-bio[^]*?<\/section>/)?.[0]
32
+ assert.ok(aboutSection)
33
+ assert.equal([...aboutSection.matchAll(/<p>/g)].length, 3, 'bio content renders as three paragraphs')
34
+ await access(resolve(templateRoot, 'public', config.profile.profileImage.slice(1)))
35
+ assert.ok(config.projects.every(({ image }) => image === '/project-placeholder.png'))
36
+ await access(resolve(templateRoot, 'public', 'project-placeholder.png'))
37
+ const styles = await readFile(resolve(templateRoot, 'src/styles.css'), 'utf8')
38
+ assert.match(styles, /\.profile-photo\s*\{[^}]*border-radius:\s*50%/)
39
+ assert.deepEqual(config.skills.map(({ name }) => name), [
40
+ 'HTML', 'CSS', 'JavaScript', 'React', 'TypeScript', 'Tailwind CSS', 'Vite', 'Redux', 'Markdown',
41
+ 'Node.js', 'Express.js', 'MongoDB', 'MySQL', 'PostgreSQL', 'C', 'Python', 'Java', 'Postman',
42
+ 'VS Code', 'Git', 'GitHub', 'npm', 'GitHub Actions',
43
+ ])
44
+ assert.equal(config.socialIcons.length, 4)
45
+ assert.deepEqual(config.socialIcons.map(({ url }) => url), [
46
+ 'https://github.com/your-username',
47
+ 'https://linkedin.com/in/your-username',
48
+ 'https://instagram.com/your-username',
49
+ 'https://x.com/your-username',
50
+ ])
51
+ assert.match(html, /aria-label="Social profiles and resume"/)
52
+ assert.match(html, /Follow &amp; connect\./)
53
+ assert.match(html, /Find me across these platforms\./)
54
+ assert.match(html, /data-tooltip="GitHub"/)
55
+ assert.match(html, /data-tooltip="LinkedIn"/)
56
+ assert.match(html, /data-tooltip="Instagram"/)
57
+ assert.match(html, /data-tooltip="X"/)
58
+ assert.ok(config.socialIcons.every(({ url }) => html.includes(`href="${url}"`)))
59
+ assert.match(html, /target="_blank" rel="noopener noreferrer"/)
60
+ assert.doesNotMatch(html, /href="(?:undefined|javascript:)/)
61
+ assert.match(readableHtml(), /Hey, there! I'm a developer who loves building products that people actually use\. Write a couple of sentences here about who you are, what you do, and what you're currently working on\./)
62
+ assert.match(readableHtml(), /Use this space to talk about your experience, the kinds of problems you enjoy solving, and the technologies you reach for most often\./)
63
+ assert.match(readableHtml(), /Wrap up with what you're excited about right now — side projects, open source, or whatever you're learning next/)
64
+
65
+ config.testimonials = []
66
+ assert.doesNotMatch(render(), /id="testimonials"/, 'empty testimonials are omitted')
67
+ config.testimonials = original.testimonials
68
+
69
+ config.experience = []
70
+ assert.doesNotMatch(render(), /id="experience"/, 'empty experience is omitted')
71
+ config.experience = original.experience
72
+
73
+ config.socialIcons[0].url = 'https://github.com/example'
74
+ html = render()
75
+ assert.match(html, /href="https:\/\/github\.com\/example"/)
76
+ config.socialIcons[0].url = 'javascript:alert(1)'
77
+ assert.doesNotMatch(render(), /href="javascript:alert\(1\)"/)
78
+ config.socialIcons[0].url = undefined
79
+
80
+ config.projects.push({ name: 'Data Driven Project', description: 'A project added through data.ts.', technologies: [] })
81
+ html = render()
82
+ assert.match(html, /Data Driven Project/)
83
+
84
+ config.profile.name = 'Casey Example'
85
+ html = render()
86
+ assert.match(html, /Casey Example/)
87
+ assert.match(html, /aria-label="Casey Example, home"/)
88
+ assert.match(html, /footer-copyright">© .*Casey Example/)
89
+ assert.doesNotMatch(html, /Your Name/)
90
+ } finally {
91
+ Object.assign(config, original)
92
+ }
93
+ } finally {
94
+ await server.close()
95
+ }
96
+ })
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "skipLibCheck": true,
9
+ "moduleResolution": "Bundler",
10
+ "allowImportingTsExtensions": true,
11
+ "verbatimModuleSyntax": true,
12
+ "moduleDetection": "force",
13
+ "noEmit": true,
14
+ "jsx": "react-jsx",
15
+ "strict": true,
16
+ "noUnusedLocals": true,
17
+ "noUnusedParameters": true,
18
+ "noFallthroughCasesInSwitch": true
19
+ },
20
+ "include": ["src"]
21
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }