forge
Explore
Log in

Don't you dare go Hollow

Add animated pipeline page behind the second cta

Browse files at this commit

4e89cf00b0a13f8f6a28d4891fef8be58f1841f6Burak BoduroğluParent: 4663e36
  • feat
    • add animated pipeline page behind the second cta
Show full message
feat(how): add animated pipeline page behind the second cta

«Nasıl çalıştığını gör» dört aşamalı şemaya gidiyor: toplama, analiz, plan ve onay, kullanım; ardından veri sözleşmesinin üç kuralı, sistemi durduran dört kapı, ürünlerin şemadaki yeri ve pilotta ölçülenler.

Hareket bilgi taşıyor: bağlayıcıda ilerleyen nokta aşamalar arasında hareket eden kaydı, her karttaki çizim o aşamanın yaptığı işi canlandırır. Tümü CSS keyframe'i; prefers-reduced-motion hepsini kapatır.

Sayfalar HowTo ve ContactPage düğümleri ile breadcrumb yayıyor.
src/components/Seo.tsxmodified+3 -0
@@ -11,6 +11,8 @@ export default function Seo(props: {
1111 description: string;
1212 /** Use the title as given, rather than appending the brand suffix. */
1313 full?: boolean;
14+ /** Short nav label for the home → page trail. Off for the landing page. */
15+ breadcrumb?: string;
1416 /** Extra schema.org nodes describing what the page lists. */
1517 schema?: object[];
1618 }) {
@@ -49,6 +51,7 @@ export default function Seo(props: {
4951 title: title(),
5052 description: props.description,
5153 t,
54+ breadcrumb: props.breadcrumb,
5255 extra: props.schema,
5356 })}
5457 />
src/components/how/Pipeline.tsxadded+182 -0
@@ -0,0 +1,182 @@
1+import { For } from "solid-js";
2+import Reveal from "../Reveal";
3+import { PixelCheck } from "../icons/pixel";
4+import { t } from "~/i18n";
5+
6+/**
7+ * The animated pipeline: four stages, connected, with the loop back to
8+ * analysis drawn underneath.
9+ *
10+ * The motion carries meaning rather than decoration — a dot travelling a
11+ * connector is a record moving between stages, and the little drawing inside
12+ * each stage animates the thing that stage does: marks landing, bars rising,
13+ * an approval tick, cells filling. Everything is CSS keyframes on `hz-flow-*`
14+ * classes, so `prefers-reduced-motion` switches the whole thing off in one
15+ * rule and the page still reads as a diagram.
16+ */
17+export default function Pipeline() {
18+ return (
19+ <div class="hz-flow" aria-label={t.how.flowLabel}>
20+ <For each={t.how.stages}>
21+ {(stage, i) => (
22+ <Reveal index={i()} class="hz-flow-item">
23+ <article class="hz-flow-card">
24+ <header>
25+ <span class="hz-step-num">{stage.num}</span>
26+ <h3 class="hz-h3">{stage.title}</h3>
27+ <p class="hz-flow-sub">{stage.subtitle}</p>
28+ </header>
29+
30+ <div class="hz-flow-art" aria-hidden="true">
31+ <StageArt index={i()} />
32+ </div>
33+
34+ <p class="hz-small">{stage.description}</p>
35+
36+ <ul class="hz-checks">
37+ <For each={stage.bullets}>
38+ {bullet => (
39+ <li>
40+ <PixelCheck aria-hidden="true" />
41+ {bullet}
42+ </li>
43+ )}
44+ </For>
45+ </ul>
46+ </article>
47+
48+ {/* The connector belongs to the stage on its left, so the last
49+ stage simply does not draw one. */}
50+ <span class="hz-flow-link" aria-hidden="true" classList={{ "is-last": i() === 3 }}>
51+ <i class="hz-flow-dot" />
52+ <i class="hz-flow-dot hz-flow-dot-b" />
53+ </span>
54+ </Reveal>
55+ )}
56+ </For>
57+
58+ {/* The feedback loop: usage becomes data again. */}
59+ <div class="hz-flow-loop" aria-hidden="true">
60+ <span class="hz-flow-loop-line" />
61+ <span class="hz-flow-loop-label">{t.how.flowNote}</span>
62+ </div>
63+ </div>
64+ );
65+}
66+
67+/** The small drawing inside a stage card: one per stage, in order. */
68+function StageArt(props: { index: number }) {
69+ const grid = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
70+
71+ return (
72+ <svg viewBox="0 0 220 120" fill="none" shape-rendering="crispEdges" class="hz-illustration">
73+ {/* 01 — collection: answers landing on the sheet, option by option */}
74+ {props.index === 0 && (
75+ <g>
76+ <rect x={16} y={12} width={188} height={96} stroke="currentColor" stroke-width="2" />
77+ <For each={[0, 1, 2, 3]}>
78+ {row => (
79+ <g>
80+ <rect x={30} y={28 + row * 20} width={44} height={8} fill="currentColor" opacity="0.22" />
81+ <For each={[0, 1, 2, 3]}>
82+ {col => (
83+ <rect
84+ x={88 + col * 28}
85+ y={26 + row * 20}
86+ width={18}
87+ height={12}
88+ class={col === (row + 2) % 4 ? "hz-flow-mark" : undefined}
89+ fill={col === (row + 2) % 4 ? "var(--brand)" : "currentColor"}
90+ opacity={col === (row + 2) % 4 ? 1 : 0.14}
91+ style={{ "animation-delay": `${row * 0.22}s` }}
92+ />
93+ )}
94+ </For>
95+ </g>
96+ )}
97+ </For>
98+ </g>
99+ )}
100+
101+ {/* 02 — analysis: topic mastery rising out of that sheet */}
102+ {props.index === 1 && (
103+ <g>
104+ <rect x={16} y={100} width={188} height={2} fill="currentColor" opacity="0.4" />
105+ <For each={[34, 56, 44, 72, 60, 88]}>
106+ {(height, i) => (
107+ <rect
108+ x={24 + i() * 31}
109+ y={100 - height}
110+ width={20}
111+ height={height}
112+ class="hz-flow-bar"
113+ fill={i() >= 4 ? "var(--brand)" : "var(--brand-deep, #5dc9e2)"}
114+ opacity={i() >= 4 ? 1 : 0.55}
115+ style={{ "animation-delay": `${i() * 0.12}s` }}
116+ />
117+ )}
118+ </For>
119+ </g>
120+ )}
121+
122+ {/* 03 — the plan, and the tick that lets it out */}
123+ {props.index === 2 && (
124+ <g>
125+ <rect x={16} y={12} width={132} height={96} stroke="currentColor" stroke-width="2" />
126+ <For each={[0, 1, 2, 3]}>
127+ {row => (
128+ <g>
129+ <rect x={30} y={26 + row * 20} width={60} height={9} fill="currentColor" opacity="0.18" />
130+ <rect
131+ x={98}
132+ y={26 + row * 20}
133+ width={36}
134+ height={9}
135+ fill="var(--brand-deep, #5dc9e2)"
136+ opacity="0.55"
137+ />
138+ </g>
139+ )}
140+ </For>
141+ <g class="hz-flow-stamp">
142+ <rect x={158} y={44} width={44} height={34} fill="var(--brand)" />
143+ <path
144+ d="M167 61 l6 7 l12 -14"
145+ stroke="#fff"
146+ stroke-width="4"
147+ fill="none"
148+ shape-rendering="geometricPrecision"
149+ />
150+ </g>
151+ </g>
152+ )}
153+
154+ {/* 04 — four screens, each showing its own slice */}
155+ {props.index === 3 && (
156+ <g>
157+ <For each={grid}>
158+ {(_, i) => {
159+ const col = i() % 4;
160+ const row = Math.floor(i() / 4);
161+ // Only the lit cells animate: the keyframe ends on `opacity: 1`,
162+ // so running it on a recessive cell would darken it to solid.
163+ const lit = (col + row) % 3 === 0;
164+ return (
165+ <rect
166+ x={20 + col * 48}
167+ y={18 + row * 34}
168+ width={40}
169+ height={26}
170+ class={lit ? "hz-flow-cell" : undefined}
171+ fill={lit ? "var(--brand)" : "currentColor"}
172+ opacity={lit ? 1 : 0.14}
173+ style={lit ? { "animation-delay": `${i() * 0.06}s` } : undefined}
174+ />
175+ );
176+ }}
177+ </For>
178+ </g>
179+ )}
180+ </svg>
181+ );
182+}
src/lib/schema.tsmodified+53 -1
@@ -1,4 +1,4 @@
1-import { anchors, site } from "~/config";
1+import { anchors, routes, site } from "~/config";
22 import type { Dictionary } from "~/i18n";
33
44 /**
@@ -27,6 +27,8 @@ type PageInput = {
2727 title: string;
2828 description: string;
2929 t: Dictionary;
30+ /** The page's short nav label, for the home → page trail. */
31+ breadcrumb?: string;
3032 /** Nodes describing what the page lists, from the builders below. */
3133 extra?: object[];
3234 };
@@ -86,9 +88,59 @@ export function pageGraph(input: PageInput) {
8688 page,
8789 ];
8890
91+ if (input.breadcrumb) {
92+ page.breadcrumb = { "@id": `${input.url}#breadcrumb` };
93+ nodes.push({
94+ "@type": "BreadcrumbList",
95+ "@id": `${input.url}#breadcrumb`,
96+ itemListElement: [
97+ { "@type": "ListItem", position: 1, name: input.t.nav.home, item: `${site.url}${routes.home}` },
98+ { "@type": "ListItem", position: 2, name: input.breadcrumb, item: input.url },
99+ ],
100+ });
101+ }
102+
89103 return { "@context": "https://schema.org", "@graph": [...nodes, ...(input.extra ?? [])] };
90104 }
91105
106+/** `/nasil-calisir`: the chain, as a crawler can read it. */
107+export function howToNode(t: Dictionary, url: string) {
108+ return {
109+ "@type": "HowTo",
110+ "@id": `${url}#howto`,
111+ name: t.how.title,
112+ description: t.how.lead,
113+ step: t.how.stages.map((stage, index) => ({
114+ "@type": "HowToStep",
115+ position: index + 1,
116+ name: stage.title,
117+ text: stage.description,
118+ url: `${url}#${stage.id}`,
119+ })),
120+ };
121+}
122+
123+/** `/iletisim`: the page a demo request is made on. */
124+export function contactPageNode(t: Dictionary, url: string) {
125+ return {
126+ "@type": "ContactPage",
127+ "@id": `${url}#contact`,
128+ name: t.contact.title,
129+ description: t.contact.lead,
130+ mainEntity: {
131+ "@type": "Organization",
132+ "@id": ORGANIZATION,
133+ contactPoint: {
134+ "@type": "ContactPoint",
135+ contactType: "sales",
136+ email: site.email,
137+ areaServed: "TR",
138+ availableLanguage: "Turkish",
139+ },
140+ },
141+ };
142+}
143+
92144 /**
93145 * The four products, as the page lists them. No `Offer`: the licence is
94146 * quoted per kurum after a conversation, and publishing a number here that
src/routes/nasil-calisir.tsxadded+188 -0
@@ -0,0 +1,188 @@
1+import { A } from "@solidjs/router";
2+import { For } from "solid-js";
3+import Seo from "~/components/Seo";
4+import Pipeline from "~/components/how/Pipeline";
5+import Reveal from "~/components/Reveal";
6+import SectionHeader from "~/components/SectionHeader";
7+import {
8+ PixelArrowRight,
9+ PixelBookOpen,
10+ PixelCheck,
11+ PixelClock,
12+ PixelFileText,
13+ PixelLayout,
14+ PixelLock,
15+ PixelServer,
16+} from "~/components/icons/pixel";
17+import { anchors, routes, site } from "~/config";
18+import { t } from "~/i18n";
19+import { howToNode } from "~/lib/schema";
20+
21+/**
22+ * The diagram behind the landing page's second button: the whole chain, drawn
23+ * and annotated, plus the three rules that make it work, the four gates that
24+ * stop it, where each product sits in it, and what a pilot measures.
25+ */
26+export default function How() {
27+ const url = () => `${site.url}${routes.how}`;
28+
29+ const contractIcons: Record<string, typeof PixelFileText> = {
30+ etiket: PixelFileText,
31+ madde: PixelLayout,
32+ zaman: PixelClock,
33+ };
34+
35+ const gateIcons: Record<string, typeof PixelCheck> = {
36+ onay: PixelCheck,
37+ yetki: PixelLock,
38+ kaynak: PixelBookOpen,
39+ kalite: PixelServer,
40+ };
41+
42+ return (
43+ <>
44+ <Seo
45+ title={t.how.metaTitle}
46+ description={t.how.metaDescription}
47+ full
48+ breadcrumb={t.nav.theory}
49+ schema={[howToNode(t, url())]}
50+ />
51+
52+ <section class="hz-pagehead">
53+ <div class="hz-wrap">
54+ <span class="hz-label">{t.how.label}</span>
55+ <h1 class="hz-display">{t.how.title}</h1>
56+ <p class="hz-lead">{t.how.lead}</p>
57+ <div class="hz-hero-actions hz-pagehead-actions">
58+ <A href={routes.contact} class="hz-btn hz-btn-primary">
59+ {t.how.ctaPrimary}
60+ </A>
61+ <A href={anchors.products} class="hz-btn hz-btn-ghost">
62+ {t.how.ctaSecondary}
63+ <PixelArrowRight aria-hidden="true" />
64+ </A>
65+ </div>
66+ </div>
67+ </section>
68+
69+ <section class="hz-band">
70+ <div class="hz-wrap">
71+ <Pipeline />
72+ </div>
73+ </section>
74+
75+ <section class="hz-band hz-band-alt">
76+ <div class="hz-wrap">
77+ <SectionHeader
78+ label={t.how.contract.label}
79+ title={t.how.contract.title}
80+ description={t.how.contract.description}
81+ />
82+ <div class="hz-grid hz-grid-3">
83+ <For each={t.how.contract.items}>
84+ {(item, i) => {
85+ const Icon = contractIcons[item.id] ?? PixelFileText;
86+ return (
87+ <Reveal index={i()}>
88+ <article class="hz-card">
89+ <span class="hz-card-icon">
90+ <Icon aria-hidden="true" />
91+ </span>
92+ <h3>{item.title}</h3>
93+ <p>{item.description}</p>
94+ </article>
95+ </Reveal>
96+ );
97+ }}
98+ </For>
99+ </div>
100+ </div>
101+ </section>
102+
103+ <section class="hz-band">
104+ <div class="hz-wrap">
105+ <SectionHeader
106+ label={t.how.gates.label}
107+ title={t.how.gates.title}
108+ description={t.how.gates.description}
109+ />
110+ <div class="hz-grid">
111+ <For each={t.how.gates.items}>
112+ {(item, i) => {
113+ const Icon = gateIcons[item.id] ?? PixelCheck;
114+ return (
115+ <Reveal index={i()}>
116+ <article class="hz-card">
117+ <span class="hz-card-icon">
118+ <Icon aria-hidden="true" />
119+ </span>
120+ <h3>{item.title}</h3>
121+ <p>{item.description}</p>
122+ </article>
123+ </Reveal>
124+ );
125+ }}
126+ </For>
127+ </div>
128+ </div>
129+ </section>
130+
131+ <section class="hz-band hz-band-alt">
132+ <div class="hz-wrap">
133+ <SectionHeader
134+ label={t.how.map.label}
135+ title={t.how.map.title}
136+ description={t.how.map.description}
137+ />
138+ <div class="hz-rows">
139+ <For each={t.how.map.items}>
140+ {(item, i) => (
141+ <Reveal index={i()}>
142+ <div class="hz-row">
143+ <span class="hz-step-num">{item.stage}</span>
144+ <h3 class="hz-h3">{item.name}</h3>
145+ <p class="hz-small">{item.description}</p>
146+ </div>
147+ </Reveal>
148+ )}
149+ </For>
150+ </div>
151+ </div>
152+ </section>
153+
154+ <section class="hz-band">
155+ <div class="hz-wrap">
156+ <SectionHeader
157+ label={t.how.measures.label}
158+ title={t.how.measures.title}
159+ description={t.how.measures.description}
160+ />
161+ <Reveal>
162+ <ul class="hz-checks hz-checks-2">
163+ <For each={t.how.measures.items}>
164+ {item => (
165+ <li>
166+ <PixelCheck aria-hidden="true" />
167+ {item}
168+ </li>
169+ )}
170+ </For>
171+ </ul>
172+ </Reveal>
173+
174+ <Reveal class="mt-12">
175+ <div class="hz-cta">
176+ <h2 class="hz-h2">{t.cta.panelTitle}</h2>
177+ <div class="hz-hero-actions">
178+ <A href={routes.contact} class="hz-btn hz-btn-primary hz-btn-lg">
179+ {t.how.ctaPrimary}
180+ </A>
181+ </div>
182+ </div>
183+ </Reveal>
184+ </div>
185+ </section>
186+ </>
187+ );
188+}