summaryrefslogtreecommitdiffstats
path: root/docs/superpowers/plans/2026-03-27-visual-refactor.md
blob: 7b76c9ae37f22b537e08b50c7b5ab5eff3062392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# Visual Refactor — Corporate Hacker Implementation Plan

> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.

**Goal:** Refactor danix.me's graphic layer toward "corporate hacker" — better typography, glass cards with glow, button fix — while keeping all colors and animations intact.

**Architecture:** Pure CSS + targeted HTML changes. No new dependencies, no JS changes. Three font roles (Oxanium headings, IBM Plex Sans body, JetBrains Mono mono). Glass card style replaces solid `--bg2` cards across all four sections.

**Tech Stack:** Hugo templates (`.html` partials), CSS custom properties, Google Fonts, YAML data files.

---

## Task 1: Typography Foundation

**Files:**
- Modify: `themes/danixme/layouts/partials/head.html` (line 71)
- Modify: `themes/danixme/assets/css/main.css` (`:root` block, prose selectors)

- [ ] **Step 1: Add IBM Plex Sans to Google Fonts import**

In `themes/danixme/layouts/partials/head.html`, replace line 71:

```html
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Oxanium:wght@700;800&display=swap" rel="stylesheet" />
```

With:

```html
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Oxanium:wght@700;800&display=swap" rel="stylesheet" />
```

- [ ] **Step 2: Add `--font-body` CSS variable**

In `themes/danixme/assets/css/main.css`, replace:

```css
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-head:   'Oxanium', sans-serif;
```

With:

```css
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-head:   'Oxanium', sans-serif;
  --font-body:   'IBM Plex Sans', system-ui, sans-serif;
```

- [ ] **Step 3: Apply IBM Plex Sans to hero prose elements**

In `main.css`, replace:

```css
/* ── Tagline ── */
.hero-tagline {
  font-size: 0.93rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 2.5rem;
```

With:

```css
/* ── Tagline ── */
.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 2.5rem;
```

Also add `font-family: var(--font-body);` to `.scroll-indicator`. Find the block:

```css
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
```

And replace with:

```css
.scroll-indicator {
  font-family: var(--font-body);
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
```

- [ ] **Step 4: Apply IBM Plex Sans to About, Education, and form elements**

In `main.css`, replace:

```css
.about-bio p {
  color: var(--text-dim);
  font-size: 0.95rem;
```

With:

```css
.about-bio p {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 0.95rem;
```

Replace:

```css
.edu-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
```

With:

```css
.edu-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
```

Replace:

```css
.cf-field label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
```

With:

```css
.cf-field label {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
```

Replace:

```css
.cf-field input,
.cf-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
```

With:

```css
.cf-field input,
.cf-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
```

- [ ] **Step 5: Verify typography**

Start the dev server:
```bash
cd /home/danix/Programming/AI/claude/danixme && hugo server --disableFastRender
```

Open http://localhost:1313. Check:
- Hero tagline and scroll label render in a proportional sans-serif (not monospace)
- About bio paragraphs render in IBM Plex Sans
- Education descriptions render in IBM Plex Sans
- Contact form labels and input text use IBM Plex Sans
- All terminal windows, navigation, section eyebrows, card titles still use their original mono/Oxanium fonts

- [ ] **Step 6: Commit**

```bash
git add themes/danixme/layouts/partials/head.html themes/danixme/assets/css/main.css
git commit -m "feat: add IBM Plex Sans body font, apply to prose elements"
```

---

## Task 2: Button Hover Fix

**Files:**
- Modify: `themes/danixme/assets/css/main.css` (`.btn-primary:hover` block)

- [ ] **Step 1: Fix `.btn-primary:hover` background**

In `main.css`, replace:

```css
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 24px rgba(168,85,247,0.45);
```

With:

```css
.btn-primary:hover {
  background: #c084fc;
  box-shadow: 0 0 24px rgba(168,85,247,0.45);
```

- [ ] **Step 2: Verify**

With `hugo server` running, hover over the "Contact" (primary) button in the hero. It should shift to a lighter purple — not white.

- [ ] **Step 3: Commit**

```bash
git add themes/danixme/assets/css/main.css
git commit -m "fix: btn-primary hover color purple instead of white"
```

---

## Task 3: Skills Data — Level Labels

**Files:**
- Modify: `data/skills.yaml`

- [ ] **Step 1: Replace decimal levels with string labels**

Replace the full contents of `data/skills.yaml` with:

```yaml
- icon: "fa-solid fa-crosshairs"
  name_en: "Penetration Testing"
  name_it: "Penetration Testing"
  level: "Intermediate"
  tags: [Metasploit, "Burp Suite", nmap, SQLMap]

- icon: "fa-solid fa-network-wired"
  name_en: "Network Security"
  name_it: "Sicurezza di Rete"
  level: "Foundational"
  tags: [Wireshark, "TCP/IP", Firewalls, VPN]

- icon: "fa-brands fa-linux"
  name_en: "Linux / Kali"
  name_it: "Linux / Kali"
  level: "Advanced"
  tags: ["Kali Linux", Bash, "Priv. Esc.", "File System"]

- icon: "fa-solid fa-user-secret"
  name_en: "OSINT"
  name_it: "OSINT"
  level: "Foundational"
  tags: [Maltego, Shodan, Recon-ng]

- icon: "fa-solid fa-terminal"
  name_en: "Scripting"
  name_it: "Scripting"
  level: "Intermediate"
  tags: [Python, Bash, PowerShell]

- icon: "fa-solid fa-shield-halved"
  name_en: "Web Security"
  name_it: "Sicurezza Web"
  level: "Intermediate"
  tags: ["OWASP Top 10", XSS, SQLi, IDOR]
```

- [ ] **Step 2: Commit**

```bash
git add data/skills.yaml
git commit -m "refactor: skills level from decimal to string label"
```

---

## Task 4: Card CSS — Glass Hybrid Style

**Files:**
- Modify: `themes/danixme/assets/css/main.css`

Replaces background/border/hover on all four card types. Adds `.skill-level` badge and `.card--green` modifier. Removes progress bar CSS. Restyling `.service-subtitle` and `.project-subtitle` as card-tags. Adds IBM Plex Sans to card descriptions.

- [ ] **Step 1: Replace `.service-card` CSS**

Replace:

```css
.service-card {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.2s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.service-card:hover {
  border-color: rgba(168,85,247,0.28);
  background: var(--surface);
}
```

With:

```css
.service-card {
  background: rgba(16,30,45,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(168,85,247,0.12);
  border-left: 2px solid var(--muted);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-left-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.service-card::before { display: none; }
.service-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 0 22px rgba(168,85,247,0.10);
  background: rgba(16,30,45,0.75);
}
```

- [ ] **Step 2: Restyle `.service-subtitle` as card-tag and apply IBM Plex Sans to `.service-desc`**

Replace:

```css
.service-subtitle {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.85;
```

With:

```css
.service-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}
.service-card:hover .service-subtitle { color: var(--text-dim); }
.service-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.85;
```

- [ ] **Step 3: Replace `.skill-card` CSS and remove progress bar CSS**

Replace:

```css
.skill-card {
  background: var(--bg2);
  padding: 1.5rem;
  transition: background 0.2s;
}
.skill-card:hover { background: var(--surface); }
```

With:

```css
.skill-card {
  background: rgba(16,30,45,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(168,85,247,0.12);
  border-left: 2px solid var(--muted);
  padding: 1.5rem;
  transition: border-left-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.skill-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 0 22px rgba(168,85,247,0.10);
  background: rgba(16,30,45,0.75);
}
.skill-card.card--green:hover {
  border-left-color: var(--accent2);
  box-shadow: 0 0 22px rgba(0,255,136,0.07);
}
```

Then remove the progress bar CSS entirely. Replace:

```css
.skill-track {
  height: 2px;
  background: var(--border);
  margin-top: 0.75rem;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.skill-fill.go { transform: scaleX(var(--w, 1)); }
```

With:

```css
.skill-level {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  padding: 0.15rem 0.45rem;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}
.skill-card.card--green .skill-level {
  color: var(--accent2);
  border-color: var(--accent2);
}
```

- [ ] **Step 4: Replace `.cert-card` CSS**

Replace:

```css
.cert-card {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
```

With:

```css
.cert-card {
  background: rgba(16,30,45,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(168,85,247,0.12);
  border-left: 2px solid var(--muted);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-left-color 0.25s, box-shadow 0.25s, background 0.25s;
}
```

Replace:

```css
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.cert-card:hover {
  border-color: rgba(168,85,247,0.28);
  box-shadow: 0 0 40px rgba(168,85,247,0.04);
}
```

With:

```css
.cert-card::before { display: none; }
.cert-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 0 22px rgba(168,85,247,0.10);
  background: rgba(16,30,45,0.75);
}
```

Also add IBM Plex Sans to cert description. Replace:

```css
.cert-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.85;
```

With:

```css
.cert-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.85;
```

- [ ] **Step 5: Replace `.project-card` CSS and restyle `.project-subtitle`**

Replace:

```css
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
```

With:

```css
.project-card {
  background: rgba(16,30,45,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(168,85,247,0.12);
  border-left: 2px solid var(--muted);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-left-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.25s;
}

.project-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 0 22px rgba(168,85,247,0.10);
  background: rgba(16,30,45,0.75);
  transform: translateY(-3px);
}
```

Restyle `.project-subtitle` as card-tag. Replace:

```css
.project-subtitle {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
```

With:

```css
.project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.25s;
}
.project-card:hover .project-subtitle { color: var(--text-dim); }
```

Also add IBM Plex Sans to project description. Replace:

```css
.project-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
```

With:

```css
.project-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
```

- [ ] **Step 6: Verify cards**

With `hugo server` running, check each section:
- Services: cards have glass background, purple left border that lights up on hover, subtitle appears as small muted mono tag, description in IBM Plex Sans
- Skills: cards have glass style, no progress bar visible, `.skill-level` badge area is ready (will be populated in Task 5)
- Certs: glass style, no top gradient stripe, purple left border glow on hover
- Projects: glass style with lift (`translateY`) on hover, subtitle appears as small muted mono tag, description in IBM Plex Sans
- Collab card (dashed placeholder): still renders with dashed border, distinct from regular project cards

- [ ] **Step 7: Commit**

```bash
git add themes/danixme/assets/css/main.css
git commit -m "feat: glass hybrid card style across all sections"
```

---

## Task 5: Skills HTML — Remove Progress Bar, Add Level Badge

**Files:**
- Modify: `themes/danixme/layouts/partials/skills.html`

- [ ] **Step 1: Update skills.html**

Replace the full contents of `themes/danixme/layouts/partials/skills.html` with:

```html
<section id="skills">
  <div class="container">
    <div class="section-eyebrow reveal">{{ i18n "section_skills" }}</div>
    <h2 class="section-title reveal">{{ i18n "skills_title" }}</h2>

    <div class="skills-grid reveal" id="skillsGrid">
      {{ $lang := .Site.Language.Lang }}
      {{ range hugo.Data.skills }}
      <div class="skill-card{{ if eq .level "Advanced" }} card--green{{ end }}">
        <div class="skill-head">
          <div class="skill-icon"><i class="{{ .icon }}"></i></div>
          <div class="skill-name">
            {{ if eq $lang "it" }}{{ .name_it }}{{ else }}{{ .name_en }}{{ end }}
          </div>
        </div>
        <span class="skill-level">{{ .level }}</span>
        <div class="skill-tags">
          {{ range .tags }}<span class="tag">{{ . }}</span>{{ end }}
        </div>
      </div>
      {{ end }}
    </div>
  </div>
</section>
```

Key changes from original:
- Removed `<div class="skill-track"><div class="skill-fill" style="--w:{{ .level }}"></div></div>`
- Added `<span class="skill-level">{{ .level }}</span>` (renders the string label, e.g. "Advanced")
- Added conditional `card--green` class on the card when `level == "Advanced"`

- [ ] **Step 2: Verify skills section**

With `hugo server` running, open http://localhost:1313 and scroll to Skills:
- Each skill card shows a small bordered badge with the level label ("Advanced", "Intermediate", "Foundational") below the skill name
- The Linux / Kali card (Advanced) has a green left border glow on hover and a green-accented level badge
- No progress bars anywhere in the section
- Tech tags (Metasploit, Burp Suite, etc.) still render below the level badge

- [ ] **Step 3: Commit**

```bash
git add themes/danixme/layouts/partials/skills.html
git commit -m "feat: replace skill progress bars with level tag badges"
```

---

## Self-Review Notes

**Spec coverage check:**
- ✅ Typography: IBM Plex Sans added, applied to all prose elements
- ✅ Hero: typography-only change (tagline + scroll label), all effects untouched
- ✅ Button hover: `#c084fc` fix applied
- ✅ Skills data: decimal → string labels
- ✅ Card glass style: all 4 card types covered
- ✅ Card-tag pattern: service-subtitle and project-subtitle restyled as mono tags
- ✅ Skill level badge: replaces progress bar
- `card--green` modifier: Advanced skills get green glow
- Services/Projects/Certs sections: no HTML changes needed (existing subtitle fields repurposed via CSS)

**No placeholders:** All steps contain exact code.

**Type/name consistency:** `card--green` CSS class matches `card--green` used in Task 5 template. `skill-level` CSS class matches `skill-level` HTML element in Task 5. `--font-body` var defined in Task 1 Step 2, used in Task 1 Steps 3–4 and Task 4 Steps 2–5.