Skip to content

Commit 9e99432

Browse files
committed
Docs section: 3-column cards with labels, descriptions, explore links
1 parent 1603849 commit 9e99432

File tree

2 files changed

+59
-42
lines changed

2 files changed

+59
-42
lines changed

src/pages/index.module.css

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -326,69 +326,79 @@
326326
/* ── DOCS ────────────────────────────────────────────────────── */
327327

328328
.docs {
329-
padding: 2rem 2rem 4rem;
329+
padding: 6rem 2rem 8rem;
330330
background: #000;
331331
}
332332

333333
.docsInner {
334-
max-width: 700px;
334+
max-width: 1100px;
335335
margin: 0 auto;
336336
}
337337

338+
.docsGrid {
339+
display: grid;
340+
grid-template-columns: repeat(3, 1fr);
341+
gap: 1.2rem;
342+
margin-top: 3rem;
343+
}
344+
338345
.dCard {
339346
display: flex;
340-
align-items: center;
341-
gap: 1.5rem;
342-
padding: 1.2rem 1.5rem;
343-
margin-bottom: 0.5rem;
347+
flex-direction: column;
348+
padding: 2rem;
344349
border: 1px solid rgba(255, 255, 255, 0.06);
345-
border-radius: 12px;
350+
border-radius: 16px;
346351
text-decoration: none;
347352
color: #fff;
348-
transition: all 0.2s;
353+
transition: all 0.25s;
349354
background: rgba(255, 255, 255, 0.02);
350355
}
351356

352357
.dCard:hover {
353358
text-decoration: none;
354359
color: #fff;
355-
background: rgba(77, 139, 255, 0.05);
356-
border-color: rgba(77, 139, 255, 0.2);
360+
background: rgba(255, 255, 255, 0.04);
361+
border-color: rgba(255, 255, 255, 0.12);
362+
transform: translateY(-2px);
357363
}
358364

359-
.dNum {
360-
font-size: 0.75rem;
365+
.dLabel {
366+
font-size: 0.65rem;
361367
font-weight: 700;
362-
color: rgba(255, 255, 255, 0.15);
363-
min-width: 1.5rem;
364-
font-variant-numeric: tabular-nums;
368+
letter-spacing: 0.1em;
369+
color: rgba(255, 255, 255, 0.2);
370+
margin-bottom: 1.5rem;
365371
}
366372

367373
.dCard h3 {
368-
font-size: 0.95rem;
374+
font-size: 1.15rem;
369375
font-weight: 700;
370-
margin: 0 0 0.15rem;
376+
margin: 0 0 0.6rem;
377+
letter-spacing: -0.01em;
371378
}
372379

373380
.dCard p {
374-
font-size: 0.8rem;
375-
color: rgba(255, 255, 255, 0.35);
381+
font-size: 0.88rem;
382+
color: rgba(255, 255, 255, 0.4);
376383
margin: 0;
377-
}
378-
379-
.dCard > div {
384+
line-height: 1.6;
380385
flex: 1;
381386
}
382387

383-
.dArrow {
384-
color: rgba(255, 255, 255, 0.1);
385-
flex-shrink: 0;
388+
.dLink {
389+
display: inline-flex;
390+
align-items: center;
391+
gap: 0.4rem;
392+
margin-top: 1.5rem;
393+
font-size: 0.82rem;
394+
font-weight: 600;
395+
color: rgba(255, 255, 255, 0.3);
386396
transition: all 0.2s;
387397
}
388398

389-
.dCard:hover .dArrow {
399+
.dCard:hover .dLink {
390400
color: #4d8bff;
391-
transform: translateX(4px);
401+
gap: 0.6rem;
392402
}
393403

394404
/* ── FOOTER ──────────────────────────────────────────────────── */
@@ -488,4 +498,5 @@
488498
.ctas { flex-direction: column; align-items: center; }
489499
.btnWhite, .btnGhost { width: 100%; max-width: 280px; justify-content: center; }
490500
.footInner { grid-template-columns: 1fr; gap: 2rem; }
501+
.docsGrid { grid-template-columns: 1fr; }
491502
}

src/pages/index.tsx

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,27 @@ function Docs() {
119119
return (
120120
<section className={styles.docs}>
121121
<div className={styles.docsInner}>
122-
<Link className={styles.dCard} to={useBaseUrl('/docs/cardano/research')}>
123-
<span className={styles.dNum}>I</span>
124-
<div><h3>Cardano Protocol</h3><p>Research papers, eras, Haskell node</p></div>
125-
<ArrowRight size={20} className={styles.dArrow} />
126-
</Link>
127-
<Link className={styles.dCard} to={useBaseUrl('/docs/spec/notation')}>
128-
<span className={styles.dNum}>II</span>
129-
<div><h3>Formal Specification</h3><p>Every type, rule, and transition</p></div>
130-
<ArrowRight size={20} className={styles.dArrow} />
131-
</Link>
132-
<Link className={styles.dCard} to={useBaseUrl('/docs/architecture/overview')}>
133-
<span className={styles.dNum}>III</span>
134-
<div><h3>Architecture</h3><p>Call flows, modules, storage</p></div>
135-
<ArrowRight size={20} className={styles.dArrow} />
136-
</Link>
122+
<p className={styles.tag}>DOCUMENTATION</p>
123+
<div className={styles.docsGrid}>
124+
<Link className={styles.dCard} to={useBaseUrl('/docs/cardano/research')}>
125+
<span className={styles.dLabel}>01</span>
126+
<h3>Cardano Protocol</h3>
127+
<p>Ouroboros papers, hard fork history, Haskell node internals, networking protocols</p>
128+
<span className={styles.dLink}>Explore <ArrowRight size={14} /></span>
129+
</Link>
130+
<Link className={styles.dCard} to={useBaseUrl('/docs/spec/notation')}>
131+
<span className={styles.dLabel}>02</span>
132+
<h3>Formal Specification</h3>
133+
<p>14 chapters defining every data type, validation rule, and state transition</p>
134+
<span className={styles.dLink}>Explore <ArrowRight size={14} /></span>
135+
</Link>
136+
<Link className={styles.dCard} to={useBaseUrl('/docs/architecture/overview')}>
137+
<span className={styles.dLabel}>03</span>
138+
<h3>Architecture</h3>
139+
<p>Function-by-function call flows, module map, storage tiers, sync pipeline</p>
140+
<span className={styles.dLink}>Explore <ArrowRight size={14} /></span>
141+
</Link>
142+
</div>
137143
</div>
138144
</section>
139145
);

0 commit comments

Comments
 (0)