Skip to content

Commit 1262448

Browse files
phucbmclaude
andcommitted
Add unique id to every section for easy code navigation
#nav #hero #ticker #mockup #features #how-it-works #faq #cta #footer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b4a2470 commit 1262448

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

website/src/App.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const TICKER_ITEMS = [
5555
function Ticker() {
5656
const items = [...TICKER_ITEMS, ...TICKER_ITEMS]
5757
return (
58-
<div style={{ borderTop: `2px solid ${INK}`, borderBottom: `2px solid ${INK}`, background: INK, overflow: 'hidden', padding: '10px 0' }}>
58+
<div id="ticker" style={{ borderTop: `2px solid ${INK}`, borderBottom: `2px solid ${INK}`, background: INK, overflow: 'hidden', padding: '10px 0' }}>
5959
<div className="ticker-track">
6060
{items.map((item, i) => (
6161
<span key={i} style={{ color: PAPER, fontFamily: MONO, fontSize: 11, fontWeight: 700, letterSpacing: '0.12em', textTransform: 'uppercase', padding: '0 28px' }}>
@@ -100,7 +100,7 @@ function Nav() {
100100

101101
return (
102102
<>
103-
<nav style={{ borderBottom: `2px solid ${INK}`, position: 'sticky', top: 0, background: PAPER, zIndex: 100 }}>
103+
<nav id="nav" style={{ borderBottom: `2px solid ${INK}`, position: 'sticky', top: 0, background: PAPER, zIndex: 100 }}>
104104
<div style={{ maxWidth: 1200, margin: '0 auto', padding: '0 24px', display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: 56 }}>
105105
<a href="#" style={{ display: 'flex', alignItems: 'center', gap: 10, textDecoration: 'none', color: INK }}>
106106
<Logo size={26} />
@@ -146,7 +146,7 @@ function Nav() {
146146
// ─── Hero ────────────────────────────────────────────────────────────────────
147147
function Hero() {
148148
return (
149-
<section style={{ borderBottom: `2px solid ${INK}` }}>
149+
<section id="hero" style={{ borderBottom: `2px solid ${INK}` }}>
150150
<div style={{ maxWidth: 1200, margin: '0 auto', padding: '0 24px' }}>
151151
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '14px 0', borderBottom: `1px solid rgba(10,10,10,0.18)`, fontFamily: MONO, fontSize: 11, letterSpacing: '0.1em', textTransform: 'uppercase', color: MUTED }}>
152152
<span>[ REV 1.0 ]</span>
@@ -193,7 +193,7 @@ function AppMockup() {
193193
const randomize = () => { setS(+(Math.random() * 0.88 + 0.06).toFixed(2)); setW(+(Math.random() * 0.88 + 0.06).toFixed(2)) }
194194

195195
return (
196-
<section style={{ borderBottom: `2px solid ${INK}`, padding: '72px 24px' }}>
196+
<section id="mockup" style={{ borderBottom: `2px solid ${INK}`, padding: '72px 24px' }}>
197197
<div style={{ maxWidth: 1200, margin: '0 auto' }}>
198198
<div className="grid-2col" style={{ border: `2px solid ${INK}` }}>
199199
<div className="mockup-left" style={{ borderRight: `2px solid ${INK}`, padding: '48px', display: 'flex', flexDirection: 'column', justifyContent: 'space-between' }}>
@@ -284,7 +284,7 @@ function HowItWorks() {
284284
{ n: '03', title: 'WATCH THE RINGS', body: 'Rings update automatically. Outer fills with weekly usage, inner fills with session. Reset countdowns shown below each account.' },
285285
]
286286
return (
287-
<section style={{ borderBottom: `2px solid ${INK}`, padding: '72px 24px', background: INK }}>
287+
<section id="how-it-works" style={{ borderBottom: `2px solid ${INK}`, padding: '72px 24px', background: INK }}>
288288
<div style={{ maxWidth: 1200, margin: '0 auto' }}>
289289
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', marginBottom: 36, borderBottom: '1px solid rgba(242,240,235,0.12)', paddingBottom: 14 }}>
290290
<h2 style={{ fontFamily: DISPLAY, fontSize: 'clamp(26px, 4vw, 44px)', letterSpacing: '-0.03em', textTransform: 'uppercase', color: PAPER }}>HOW IT WORKS</h2>
@@ -331,7 +331,7 @@ function FAQ() {
331331
// ─── CTA Banner ───────────────────────────────────────────────────────────────
332332
function CTABanner() {
333333
return (
334-
<section style={{ borderBottom: `2px solid ${INK}`, padding: '80px 24px', background: PRIMARY }}>
334+
<section id="cta" style={{ borderBottom: `2px solid ${INK}`, padding: '80px 24px', background: PRIMARY }}>
335335
<div className="cta-inner" style={{ maxWidth: 1200, margin: '0 auto', display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 32 }}>
336336
<div>
337337
<h2 style={{ fontFamily: DISPLAY, fontSize: 'clamp(40px, 6vw, 80px)', lineHeight: 0.88, letterSpacing: '-0.04em', textTransform: 'uppercase', color: PAPER, marginBottom: 16 }}>
@@ -361,7 +361,7 @@ function CTABanner() {
361361
// ─── Footer ───────────────────────────────────────────────────────────────────
362362
function Footer() {
363363
return (
364-
<footer style={{ borderTop: `1px solid rgba(10,10,10,0.15)` }}>
364+
<footer id="footer" style={{ borderTop: `1px solid rgba(10,10,10,0.15)` }}>
365365
<div className="footer-inner" style={{ maxWidth: 1200, margin: '0 auto', padding: '22px 24px', display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 12 }}>
366366
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
367367
<Logo size={18} />

0 commit comments

Comments
 (0)