Commit 1892d1d
sample: redesign + upgrade to Next 16, React 19, Tailwind 4
A real refresh of the demo app — both stack and design.
Stack upgrades (security + currency):
- youtube-caption-extractor ^1.8.1 → ^1.10.0
- next 14.2.5 → 16.2.6 (Turbopack dev, 220ms cold start)
- react / react-dom ^18 → ^19.2.6
- typescript ^5 → ^6.0.3
- tailwindcss 3.4.1 → 4.3.0 (with @tailwindcss/postcss)
- @types/* bumped to current
- @vercel/analytics added for traffic tracking
- tsconfig.json auto-migrated by Next 16 codemod (jsx: preserve → react-jsx)
- tailwind.config.ts removed; v4 auto-detects content
- globals.css migrated to v4 conventions (@import "tailwindcss")
- next.config.mjs gets turbopack.root to silence multi-lockfile warning
- next-env.d.ts updated for v16 types
- Vulnerability count: 7 (1 critical, 3 high, 3 moderate) → 0 actionable
(1 remaining is an npm-audit false positive on a transitive postcss
nested inside next; npm's suggested "fix" would downgrade next to 9.x)
Visual redesign:
- Replaced the dark-glassmorphism template with an editorial, reading-
focused aesthetic: warm light paper background, Fraunces serif headline,
Inter body, JetBrains Mono accents. No cards, no gradients, no shadows —
separation via hairlines and whitespace only.
- Single underlined input replaces the boxy input + select + button trio.
Arrow icon at the right of the input replaces the explicit submit button.
Language picker becomes inline metadata with a dotted underline; "or try"
sample IDs sit on the same baseline as the language label.
- Headline gets a per-line highlighter-pen effect (linear-gradient with
box-decoration-break: clone) so the yellow ink wraps just the text on
each line rather than spanning the line box like a selection rectangle.
- Roman type within an italic phrase for "YouTube" — the upright + slightly
bolder weight against italic surrounds creates emphasis without changing
the typeface (classical editorial typography move).
- Functional additions: ⌘K to focus search, regex match highlight, full
YouTube URL parsing (any of /watch, /shorts, /embed, youtu.be, raw ID),
per-segment timestamp links that open the video at that second,
.txt and .srt download, copy-to-clipboard, click-to-fetch sample chips.
- Proper sticky-footer layout so the footer pins to viewport bottom on
empty state and follows content naturally when transcript is present.
- suppressHydrationWarning on <body> to silence benign Grammarly /
password-manager DOM mutations that previously triggered React's
hydration mismatch warning.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7352849 commit 1892d1d
10 files changed
Lines changed: 1881 additions & 1631 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
17 | 46 | | |
18 | 47 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 48 | + | |
| 49 | + | |
27 | 50 | | |
28 | 51 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
33 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
6 | 21 | | |
7 | 22 | | |
8 | | - | |
9 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
10 | 26 | | |
11 | 27 | | |
12 | 28 | | |
13 | 29 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 30 | + | |
17 | 31 | | |
18 | | - | |
19 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
20 | 43 | | |
21 | 44 | | |
22 | 45 | | |
0 commit comments