forked from codechefPesuecc/CodeChef-PESUECC-Chapter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildTimeline.tsx
More file actions
39 lines (37 loc) · 1.58 KB
/
Copy pathBuildTimeline.tsx
File metadata and controls
39 lines (37 loc) · 1.58 KB
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
import Reveal from "@/components/Reveal";
import { timeline } from "./data";
import { SectionIntro } from "./Shared";
export function BuildTimeline() {
return (
<section className="mx-auto max-w-6xl px-6 py-16 sm:py-20">
<SectionIntro
eyebrow="Operating model"
title="How an initiative becomes a system"
body="The chapter builds in loops: discover the need, ship the smallest real thing, run it live, and compound the learning."
/>
<div className="relative mt-12 rounded-3xl border border-hairline bg-panel/60 p-8 shadow-sm backdrop-blur-md sm:p-12">
<div
aria-hidden
className="absolute left-12 top-8 h-[calc(100%-4rem)] w-px bg-hairline lg:left-12 lg:top-20 lg:h-px lg:w-[calc(100%-6rem)]"
/>
<div className="grid gap-8 lg:grid-cols-5 lg:gap-5">
{timeline.map((item, i) => (
<Reveal key={item.step} delay={i * 0.06}>
<article className="relative pl-12 lg:pl-0 lg:pt-12">
<span className="absolute left-0 top-0 flex h-8 w-8 items-center justify-center rounded-full border border-bronze/35 bg-panel font-mono text-[10px] font-bold text-bronze shadow-sm">
{item.step}
</span>
<h3 className="font-display text-lg font-bold text-chocolate">
{item.title}
</h3>
<p className="mt-2 text-sm leading-6 text-charcoal/68">
{item.body}
</p>
</article>
</Reveal>
))}
</div>
</div>
</section>
);
}