diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index d9d8b46..5b08a21 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -11,6 +11,8 @@ export default function Seo(props: { description: string; /** Use the title as given, rather than appending the brand suffix. */ full?: boolean; + /** Short nav label for the home → page trail. Off for the landing page. */ + breadcrumb?: string; /** Extra schema.org nodes describing what the page lists. */ schema?: object[]; }) { @@ -49,6 +51,7 @@ export default function Seo(props: { title: title(), description: props.description, t, + breadcrumb: props.breadcrumb, extra: props.schema, })} /> diff --git a/src/components/how/Pipeline.tsx b/src/components/how/Pipeline.tsx new file mode 100644 index 0000000..cca5902 --- /dev/null +++ b/src/components/how/Pipeline.tsx @@ -0,0 +1,182 @@ +import { For } from "solid-js"; +import Reveal from "../Reveal"; +import { PixelCheck } from "../icons/pixel"; +import { t } from "~/i18n"; + +/** + * The animated pipeline: four stages, connected, with the loop back to + * analysis drawn underneath. + * + * The motion carries meaning rather than decoration — a dot travelling a + * connector is a record moving between stages, and the little drawing inside + * each stage animates the thing that stage does: marks landing, bars rising, + * an approval tick, cells filling. Everything is CSS keyframes on `hz-flow-*` + * classes, so `prefers-reduced-motion` switches the whole thing off in one + * rule and the page still reads as a diagram. + */ +export default function Pipeline() { + return ( +
+ + {(stage, i) => ( + +
+
+ {stage.num} +

{stage.title}

+

{stage.subtitle}

+
+ + + +

{stage.description}

+ +
    + + {bullet => ( +
  • +
  • + )} +
    +
+
+ + {/* The connector belongs to the stage on its left, so the last + stage simply does not draw one. */} + +
+ )} +
+ + {/* The feedback loop: usage becomes data again. */} + +
+ ); +} + +/** The small drawing inside a stage card: one per stage, in order. */ +function StageArt(props: { index: number }) { + const grid = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; + + return ( + + {/* 01 — collection: answers landing on the sheet, option by option */} + {props.index === 0 && ( + + + + {row => ( + + + + {col => ( + + )} + + + )} + + + )} + + {/* 02 — analysis: topic mastery rising out of that sheet */} + {props.index === 1 && ( + + + + {(height, i) => ( + = 4 ? "var(--brand)" : "var(--brand-deep, #5dc9e2)"} + opacity={i() >= 4 ? 1 : 0.55} + style={{ "animation-delay": `${i() * 0.12}s` }} + /> + )} + + + )} + + {/* 03 — the plan, and the tick that lets it out */} + {props.index === 2 && ( + + + + {row => ( + + + + + )} + + + + + + + )} + + {/* 04 — four screens, each showing its own slice */} + {props.index === 3 && ( + + + {(_, i) => { + const col = i() % 4; + const row = Math.floor(i() / 4); + // Only the lit cells animate: the keyframe ends on `opacity: 1`, + // so running it on a recessive cell would darken it to solid. + const lit = (col + row) % 3 === 0; + return ( + + ); + }} + + + )} + + ); +} diff --git a/src/lib/schema.ts b/src/lib/schema.ts index 5fc8b51..423011d 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -1,4 +1,4 @@ -import { anchors, site } from "~/config"; +import { anchors, routes, site } from "~/config"; import type { Dictionary } from "~/i18n"; /** @@ -27,6 +27,8 @@ type PageInput = { title: string; description: string; t: Dictionary; + /** The page's short nav label, for the home → page trail. */ + breadcrumb?: string; /** Nodes describing what the page lists, from the builders below. */ extra?: object[]; }; @@ -86,9 +88,59 @@ export function pageGraph(input: PageInput) { page, ]; + if (input.breadcrumb) { + page.breadcrumb = { "@id": `${input.url}#breadcrumb` }; + nodes.push({ + "@type": "BreadcrumbList", + "@id": `${input.url}#breadcrumb`, + itemListElement: [ + { "@type": "ListItem", position: 1, name: input.t.nav.home, item: `${site.url}${routes.home}` }, + { "@type": "ListItem", position: 2, name: input.breadcrumb, item: input.url }, + ], + }); + } + return { "@context": "https://schema.org", "@graph": [...nodes, ...(input.extra ?? [])] }; } +/** `/nasil-calisir`: the chain, as a crawler can read it. */ +export function howToNode(t: Dictionary, url: string) { + return { + "@type": "HowTo", + "@id": `${url}#howto`, + name: t.how.title, + description: t.how.lead, + step: t.how.stages.map((stage, index) => ({ + "@type": "HowToStep", + position: index + 1, + name: stage.title, + text: stage.description, + url: `${url}#${stage.id}`, + })), + }; +} + +/** `/iletisim`: the page a demo request is made on. */ +export function contactPageNode(t: Dictionary, url: string) { + return { + "@type": "ContactPage", + "@id": `${url}#contact`, + name: t.contact.title, + description: t.contact.lead, + mainEntity: { + "@type": "Organization", + "@id": ORGANIZATION, + contactPoint: { + "@type": "ContactPoint", + contactType: "sales", + email: site.email, + areaServed: "TR", + availableLanguage: "Turkish", + }, + }, + }; +} + /** * The four products, as the page lists them. No `Offer`: the licence is * quoted per kurum after a conversation, and publishing a number here that diff --git a/src/routes/nasil-calisir.tsx b/src/routes/nasil-calisir.tsx new file mode 100644 index 0000000..dfad3c4 --- /dev/null +++ b/src/routes/nasil-calisir.tsx @@ -0,0 +1,188 @@ +import { A } from "@solidjs/router"; +import { For } from "solid-js"; +import Seo from "~/components/Seo"; +import Pipeline from "~/components/how/Pipeline"; +import Reveal from "~/components/Reveal"; +import SectionHeader from "~/components/SectionHeader"; +import { + PixelArrowRight, + PixelBookOpen, + PixelCheck, + PixelClock, + PixelFileText, + PixelLayout, + PixelLock, + PixelServer, +} from "~/components/icons/pixel"; +import { anchors, routes, site } from "~/config"; +import { t } from "~/i18n"; +import { howToNode } from "~/lib/schema"; + +/** + * The diagram behind the landing page's second button: the whole chain, drawn + * and annotated, plus the three rules that make it work, the four gates that + * stop it, where each product sits in it, and what a pilot measures. + */ +export default function How() { + const url = () => `${site.url}${routes.how}`; + + const contractIcons: Record = { + etiket: PixelFileText, + madde: PixelLayout, + zaman: PixelClock, + }; + + const gateIcons: Record = { + onay: PixelCheck, + yetki: PixelLock, + kaynak: PixelBookOpen, + kalite: PixelServer, + }; + + return ( + <> + + +
+
+ {t.how.label} +

{t.how.title}

+

{t.how.lead}

+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + {(item, i) => { + const Icon = contractIcons[item.id] ?? PixelFileText; + return ( + +
+ + +

{item.title}

+

{item.description}

+
+
+ ); + }} +
+
+
+
+ +
+
+ +
+ + {(item, i) => { + const Icon = gateIcons[item.id] ?? PixelCheck; + return ( + +
+ + +

{item.title}

+

{item.description}

+
+
+ ); + }} +
+
+
+
+ +
+
+ +
+ + {(item, i) => ( + +
+ {item.stage} +

{item.name}

+

{item.description}

+
+
+ )} +
+
+
+
+ +
+
+ + +
    + + {item => ( +
  • +
  • + )} +
    +
+
+ + +
+

{t.cta.panelTitle}

+ +
+
+
+
+ + ); +}