diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..05150af --- /dev/null +++ b/src/app.css @@ -0,0 +1,949 @@ +@import "tailwindcss"; + +/* ========================================================================= + Hezarfen — light design system + + A white page with one accent: gopher blue, #00ADD8. The surfaces are + Notion's: white paper, a warm off-white for every second band, hairline + rules instead of shadows, small radii, and type that is allowed to be + large because nothing else on the page is loud. + + Everything is prefixed `hz-`. There is no dark contract and no `dark:` + variant to qualify — these tokens *are* the theme. + ========================================================================= */ + +:root { + color-scheme: light; + + /* Surfaces */ + --paper: #ffffff; + --band: #f7f7f5; /* every second section, and card interiors on white */ + --sunken: #f1f0ee; /* inputs, inner wells, illustration grounds */ + + /* Ink */ + --ink: #1b1a17; /* headings */ + --body: #37352f; /* body copy */ + --muted: #787774; /* captions, labels, secondary rows */ + --faint: #9b9a96; /* the quietest text that still has to be read */ + + /* Rules */ + --line: #e9e9e7; + --line-strong: #dcdad5; + + /* Accent: Go's cyan. Reserved for action, data and links. */ + --brand: #00add8; + --brand-hover: #0097bd; + --brand-ink: #046b86; /* accent text on white, where #00add8 is too light */ + --brand-wash: #eaf8fc; /* the tinted panel and hover fills */ + + --radius-sm: 4px; + --radius: 6px; + --radius-lg: 10px; + --radius-xl: 14px; + + --shadow-sm: 0 1px 2px rgb(15 15 15 / 0.06); + --shadow: 0 1px 2px rgb(15 15 15 / 0.06), 0 6px 20px rgb(15 15 15 / 0.05); + --shadow-lg: 0 1px 2px rgb(15 15 15 / 0.06), 0 18px 48px rgb(15 15 15 / 0.08); + + --measure: 1120px; + --gutter: 24px; + --section-y: 96px; + --header-h: 60px; + + --ease: cubic-bezier(0.16, 1, 0.3, 1); + --quick: 160ms; +} + +@theme inline { + --color-paper: var(--paper); + --color-band: var(--band); + --color-ink: var(--ink); + --color-body: var(--body); + --color-muted: var(--muted); + --color-line: var(--line); + --color-brand: var(--brand); + --font-sans: "Inter Variable", Inter, -apple-system, "Segoe UI", Helvetica, sans-serif; + --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, monospace; +} + +@layer base { + * { + border-color: var(--line); + } + + html { + scroll-behavior: smooth; + } + + body { + background: var(--paper); + color: var(--body); + font-family: var(--font-sans); + font-size: 17px; + line-height: 1.6; + -webkit-font-smoothing: antialiased; + font-synthesis-weight: none; + } + + /* Copy never runs the full width of the viewport: that is most of why the + page reads like a document rather than a poster. */ + p, + li, + dd { + max-width: 68ch; + } + + h1, + h2, + h3, + h4 { + color: var(--ink); + line-height: 1.15; + letter-spacing: -0.02em; + text-wrap: balance; + } + + a { + color: inherit; + text-decoration: none; + } + + ::selection { + background: color-mix(in srgb, var(--brand) 22%, transparent); + } + + :focus-visible { + outline: 2px solid var(--brand); + outline-offset: 2px; + border-radius: var(--radius-sm); + } + + @media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + } +} + +/* ---- Layout ---------------------------------------------------------------- */ +.hz-band { + padding-block: var(--section-y); + padding-inline: var(--gutter); + background: var(--paper); +} +/* Every second band takes the off-white, so a section boundary is a change of + ground rather than a rule someone has to notice. */ +.hz-band-alt { + background: var(--band); + border-block: 1px solid var(--line); +} +.hz-wrap { + max-width: var(--measure); + margin-inline: auto; +} +.hz-narrow { + max-width: 760px; + margin-inline: auto; +} +.hz-anchor { + scroll-margin-top: calc(var(--header-h) + 12px); +} + +/* ---- Type ------------------------------------------------------------------ */ +.hz-display { + font-size: clamp(2.25rem, 4.6vw, 3.75rem); + font-weight: 700; + letter-spacing: -0.035em; + line-height: 1.08; + color: var(--ink); + max-width: 22ch; +} +.hz-h2 { + font-size: clamp(1.75rem, 3vw, 2.5rem); + font-weight: 700; + letter-spacing: -0.03em; + max-width: 26ch; +} +.hz-h3 { + font-size: 1.0625rem; + font-weight: 600; + letter-spacing: -0.01em; +} +.hz-lead { + font-size: 1.1875rem; + line-height: 1.65; + color: var(--muted); + max-width: 62ch; +} +.hz-label { + display: inline-block; + font-size: 0.8125rem; + font-weight: 600; + letter-spacing: 0.01em; + color: var(--brand-ink); +} +.hz-small { + font-size: 0.9375rem; + line-height: 1.6; + color: var(--muted); +} + +/* ---- Buttons --------------------------------------------------------------- */ +.hz-btn { + display: inline-flex; + align-items: center; + gap: 8px; + height: 42px; + padding-inline: 18px; + border: 1px solid transparent; + border-radius: var(--radius); + font-size: 0.9375rem; + font-weight: 500; + white-space: nowrap; + cursor: pointer; + transition: + background var(--quick) var(--ease), + border-color var(--quick), + color var(--quick), + box-shadow var(--quick); +} +.hz-btn-lg { + height: 48px; + padding-inline: 22px; + font-size: 1rem; +} +.hz-btn-primary { + background: var(--brand); + color: #fff; + box-shadow: var(--shadow-sm); +} +.hz-btn-primary:hover { + background: var(--brand-hover); +} +.hz-btn-ghost { + background: var(--paper); + border-color: var(--line-strong); + color: var(--ink); +} +.hz-btn-ghost:hover { + background: var(--band); +} +.hz-btn-quiet { + background: transparent; + color: var(--brand-ink); + padding-inline: 0; +} +.hz-btn-quiet:hover { + color: var(--brand-hover); +} +/* The arrow leans forward on hover — the one motion a button gets. */ +.hz-btn svg { + width: 16px; + height: 16px; + transition: transform 200ms var(--ease); +} +.hz-btn:hover svg { + transform: translateX(2px); +} + +/* ---- Header ---------------------------------------------------------------- */ +.hz-header { + position: sticky; + top: 0; + z-index: 50; + background: color-mix(in srgb, var(--paper) 88%, transparent); + backdrop-filter: saturate(180%) blur(12px); + border-bottom: 1px solid var(--line); +} +.hz-header-inner { + position: relative; + display: flex; + align-items: center; + gap: 20px; + height: var(--header-h); + max-width: var(--measure); + margin-inline: auto; + padding-inline: var(--gutter); +} +.hz-logo { + display: inline-flex; + align-items: center; + gap: 9px; + font-size: 1.0625rem; + font-weight: 600; + letter-spacing: -0.02em; + color: var(--ink); +} +/* The bar's own breakpoints live here rather than as utility classes on the + markup: this stylesheet is unlayered, so it would win over Tailwind's + `lg:hidden` and leave the menu button showing on desktop. */ +/* Centred on the bar itself rather than in the space left over between the + logo and the button: `auto` margins would push it off-centre by half the + difference between those two, which is exactly what you notice. */ +.hz-nav { + position: absolute; + left: 50%; + transform: translateX(-50%); + display: flex; + align-items: center; + gap: 2px; +} +.hz-menu-btn, +.hz-sheet { + display: none; +} +@media (max-width: 1024px) { + .hz-nav { + display: none; + } + .hz-menu-btn { + display: grid; + } + .hz-sheet { + display: block; + } +} +@media (max-width: 420px) { + .hz-header .hz-btn-primary { + display: none; + } +} +.hz-nav a { + padding: 7px 12px; + border-radius: var(--radius); + font-size: 0.9375rem; + color: var(--body); + transition: background var(--quick), color var(--quick); +} +.hz-nav a:hover { + background: var(--band); + color: var(--ink); +} +.hz-nav a.is-current { + color: var(--brand-ink); + font-weight: 500; +} +.hz-header-actions { + display: flex; + align-items: center; + gap: 10px; +} +.hz-menu-btn { + place-items: center; + width: 38px; + height: 38px; + border: 1px solid var(--line-strong); + border-radius: var(--radius); + background: var(--paper); + color: var(--ink); + cursor: pointer; +} +.hz-sheet { + border-bottom: 1px solid var(--line); + background: var(--paper); + padding: 12px var(--gutter) 20px; +} +.hz-header-actions { + margin-left: auto; +} +.hz-sheet a { + display: block; + padding: 11px 12px; + border-radius: var(--radius); + font-size: 0.9375rem; + color: var(--body); +} +.hz-sheet a:hover { + background: var(--band); +} +.hz-sheet .hz-btn { + width: 100%; + justify-content: center; + margin-top: 10px; +} + +/* ---- Hero ------------------------------------------------------------------ */ +.hz-hero { + position: relative; + padding: clamp(56px, 8vw, 104px) var(--gutter) 0; + text-align: center; + overflow: hidden; +} +/* One wash behind the first screen, fading out well before the next band, so + the page opens on something other than flat white. */ +.hz-hero::before { + content: ""; + position: absolute; + inset: -40% 0 auto; + height: 680px; + background: radial-gradient(60% 60% at 50% 42%, var(--brand-wash), transparent 70%); + z-index: -1; +} +.hz-hero-copy { + max-width: 880px; + margin-inline: auto; + display: grid; + justify-items: center; + gap: 22px; +} +.hz-hero-copy .hz-display { + max-width: 20ch; + font-size: clamp(2.5rem, 5.6vw, 4.25rem); +} +.hz-hero-copy .hz-lead { + max-width: 56ch; + font-size: 1.25rem; +} +.hz-hero-actions { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 12px; + margin-top: 4px; +} +.hz-hero-note { + font-size: 0.875rem; + color: var(--faint); +} +/* The product's drawing, on a card that reads as a frame without pretending + to be a screenshot. It is the largest thing on the page on purpose: the + first screen has one job, and it is showing what this is. */ +.hz-art-card { + margin: clamp(40px, 6vw, 72px) auto 0; + max-width: 1080px; + padding: clamp(14px, 2vw, 22px); + border: 1px solid var(--line); + border-radius: var(--radius-xl); + background: var(--paper); + box-shadow: var(--shadow-lg); +} +.hz-illustration { + display: block; + width: 100%; + height: auto; + /* The drawing's structure: a shade darker than a hairline, so the line work + reads on white without competing with the type. */ + color: #c4c2bb; +} +.hz-roles { + margin-top: clamp(40px, 6vw, 72px); + border-top: 1px solid var(--line); + display: grid; + grid-template-columns: repeat(4, 1fr); + max-width: var(--measure); + margin-inline: auto; +} +.hz-roles span { + display: flex; + align-items: center; + justify-content: center; + gap: 9px; + padding: 20px 12px; + font-size: 0.875rem; + color: var(--muted); +} +.hz-roles span + span { + border-left: 1px solid var(--line); +} +.hz-roles i { + width: 6px; + height: 6px; + border-radius: 999px; + background: var(--brand); +} + +/* ---- Section header -------------------------------------------------------- */ +.hz-sechead { + display: grid; + gap: 14px; + max-width: 780px; +} +.hz-sechead-center { + margin-inline: auto; + justify-items: center; + text-align: center; +} +.hz-sechead-center :is(p, h2) { + margin-inline: auto; +} + +/* ---- Cards ----------------------------------------------------------------- */ +.hz-grid { + margin-top: 44px; + display: grid; + gap: 16px; + grid-template-columns: repeat(4, 1fr); +} +.hz-grid-3 { + grid-template-columns: repeat(3, 1fr); +} +.hz-grid-2 { + grid-template-columns: repeat(2, 1fr); +} +.hz-card { + display: grid; + align-content: start; + gap: 10px; + padding: 22px; + border: 1px solid var(--line); + border-radius: var(--radius-lg); + background: var(--paper); + transition: border-color var(--quick), box-shadow var(--quick), transform 200ms var(--ease); +} +.hz-card:hover { + border-color: var(--line-strong); + box-shadow: var(--shadow); + transform: translateY(-2px); +} +.hz-card-icon { + display: grid; + place-items: center; + width: 36px; + height: 36px; + border-radius: var(--radius); + background: var(--brand-wash); + color: var(--brand-ink); +} +.hz-card-icon svg { + width: 19px; + height: 19px; +} +.hz-card h3 { + font-size: 1.0625rem; + font-weight: 600; +} +.hz-card p { + font-size: 0.9375rem; + line-height: 1.55; + color: var(--muted); +} +.hz-tag { + justify-self: start; + padding: 3px 9px; + border-radius: 999px; + background: var(--band); + border: 1px solid var(--line); + font-family: var(--font-mono); + font-size: 0.6875rem; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--muted); +} + +/* ---- Feature rows: copy beside a drawing ----------------------------------- */ +.hz-feature { + display: grid; + grid-template-columns: 1fr 1fr; + align-items: center; + gap: clamp(32px, 5vw, 72px); + padding-block: clamp(40px, 5vw, 64px); + border-top: 1px solid var(--line); +} +.hz-feature:first-of-type { + border-top: 0; +} +/* Odd rows put the drawing on the left, so four features in a row never read + as the same block four times. */ +.hz-feature-flip .hz-feature-art { + order: -1; +} +.hz-feature-copy { + display: grid; + justify-items: start; + gap: 14px; +} +.hz-feature-copy p { + font-size: 1.0625rem; + color: var(--muted); +} +.hz-feature-art { + display: grid; + place-items: center; + padding: clamp(16px, 2.5vw, 28px); + border: 1px solid var(--line); + border-radius: var(--radius-xl); + background: var(--paper); +} +/* Feature drawings are supporting evidence, not the subject: capped well + below the column so a row never reads as a picture with a caption. */ +.hz-feature-art .hz-illustration { + max-width: 340px; + color: #c9c7c1; +} +.hz-pills { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin-top: 2px; +} +.hz-pills span { + padding: 5px 11px; + border: 1px solid var(--line); + border-radius: 999px; + background: var(--paper); + font-size: 0.8125rem; + color: var(--body); +} + +/* ---- Ticked proof list ----------------------------------------------------- */ +.hz-checks { + display: grid; + gap: 10px; + margin-top: 2px; +} +.hz-checks li { + display: flex; + gap: 10px; + align-items: flex-start; + font-size: 0.9375rem; + line-height: 1.5; + color: var(--body); +} +.hz-checks svg { + width: 16px; + height: 16px; + margin-top: 3px; + flex: none; + color: var(--brand); +} + +/* ---- Steps ----------------------------------------------------------------- */ +.hz-steps { + margin-top: 44px; + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 16px; +} +.hz-step { + display: grid; + align-content: start; + gap: 8px; + padding-top: 18px; + border-top: 2px solid var(--brand); +} +.hz-step:nth-child(n + 2) { + border-top-color: var(--line-strong); +} +.hz-step-num { + font-family: var(--font-mono); + font-size: 0.75rem; + letter-spacing: 0.1em; + color: var(--brand-ink); +} +.hz-step p { + font-size: 0.9375rem; + line-height: 1.55; + color: var(--muted); +} + +/* ---- Prose ----------------------------------------------------------------- */ +.hz-prose { + display: grid; + gap: 18px; + margin-top: 32px; +} +.hz-prose p { + max-width: 72ch; + font-size: 1.0625rem; + color: var(--body); +} + +/* ---- Figures + credit card ------------------------------------------------- */ +.hz-facts { + margin-top: 44px; + display: grid; + grid-template-columns: 1.2fr 1fr; + gap: clamp(24px, 4vw, 56px); + align-items: center; + padding: clamp(24px, 4vw, 40px); + border: 1px solid var(--line); + border-radius: var(--radius-xl); + background: var(--paper); +} +.hz-figures { + display: grid; +} +.hz-figures > div { + display: flex; + gap: 18px; + align-items: baseline; + padding: 14px 0; + border-top: 1px solid var(--line); +} +.hz-figures > div:first-child { + border-top: 0; + padding-top: 0; +} +.hz-figures dt { + min-width: 2.5ch; + font-family: var(--font-mono); + font-size: clamp(1.75rem, 3vw, 2.25rem); + font-weight: 600; + line-height: 1; + letter-spacing: -0.04em; + color: var(--brand-ink); +} +.hz-figures dd { + font-size: 0.9375rem; + line-height: 1.5; + color: var(--muted); +} +.hz-builder { + display: grid; + justify-items: start; + gap: 10px; + padding-left: clamp(0px, 2vw, 28px); + border-left: 1px solid var(--line); +} + +/* ---- Note ------------------------------------------------------------------ */ +.hz-note { + display: flex; + gap: 12px; + margin-top: 32px; + padding: 18px 20px; + border: 1px solid var(--line); + border-left: 3px solid var(--brand); + border-radius: 0 var(--radius-lg) var(--radius-lg) 0; + background: var(--band); + font-size: 0.9375rem; + line-height: 1.55; + color: var(--body); +} +.hz-note svg { + width: 18px; + height: 18px; + margin-top: 2px; + flex: none; + color: var(--brand-ink); +} + +/* ---- FAQ ------------------------------------------------------------------- */ +.hz-faq { + margin-top: 40px; + border-top: 1px solid var(--line); +} +.hz-faq-item { + border-bottom: 1px solid var(--line); +} +.hz-faq-item summary { + display: flex; + align-items: center; + gap: 16px; + padding: 20px 2px; + list-style: none; + cursor: pointer; + font-size: 1.0625rem; + font-weight: 500; + color: var(--ink); +} +.hz-faq-item summary::-webkit-details-marker { + display: none; +} +.hz-faq-item summary > span { + flex: 1; +} +.hz-faq-item summary:hover { + color: var(--brand-ink); +} +.hz-faq-item svg { + width: 16px; + height: 16px; + color: var(--muted); + transition: transform 200ms var(--ease); +} +.hz-faq-item[open] svg { + transform: rotate(90deg); + color: var(--brand); +} +.hz-faq-item p { + padding: 0 2px 22px; + max-width: 76ch; + font-size: 1rem; + color: var(--muted); +} + +/* ---- Closing panel --------------------------------------------------------- */ +.hz-cta { + display: grid; + justify-items: center; + gap: 16px; + text-align: center; + padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 56px); + border: 1px solid var(--line); + border-radius: var(--radius-xl); + background: linear-gradient(180deg, var(--brand-wash), var(--paper)); +} +.hz-cta .hz-h2 { + max-width: 24ch; +} +.hz-cta p { + max-width: 54ch; + color: var(--muted); +} +.hz-cta-mail { + font-family: var(--font-mono); + font-size: 0.9375rem; + color: var(--brand-ink); +} + +/* ---- Footer ---------------------------------------------------------------- */ +.hz-footer { + border-top: 1px solid var(--line); + background: var(--paper); + padding: 56px var(--gutter) 28px; +} +.hz-footer-inner { + max-width: var(--measure); + margin-inline: auto; +} +.hz-footer-cols { + display: grid; + grid-template-columns: 1.6fr repeat(3, 1fr); + gap: 32px; +} +.hz-footer h4 { + font-size: 0.875rem; + font-weight: 600; + color: var(--ink); +} +.hz-footer ul { + display: grid; + gap: 9px; + margin-top: 14px; +} +.hz-footer li a { + font-size: 0.9375rem; + color: var(--muted); + transition: color var(--quick); +} +.hz-footer li a:hover { + color: var(--brand-ink); +} +.hz-footer-legal { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 12px; + margin-top: 44px; + padding-top: 20px; + border-top: 1px solid var(--line); + font-size: 0.875rem; + color: var(--faint); +} +.hz-social { + display: inline-flex; + align-items: center; + justify-content: center; + width: 34px; + height: 34px; + border: 1px solid var(--line); + border-radius: var(--radius); + color: var(--muted); + transition: color var(--quick), border-color var(--quick), transform 200ms var(--ease); +} +.hz-social:hover { + color: var(--brand-ink); + border-color: var(--line-strong); + transform: translateY(-1px); +} + +/* ---- 404 ------------------------------------------------------------------- */ +.hz-404 { + display: grid; + justify-items: center; + align-content: center; + gap: 14px; + min-height: 62vh; + padding: 72px var(--gutter); + text-align: center; +} +.hz-404 svg { + width: 88px; + color: var(--line-strong); +} + +/* ---- Scroll-triggered entrance -------------------------------------------- + Blocks rise once on entry with a per-card stagger. `is-armed` is only ever + set on the client, so server markup is never hidden by a script that has + not run. */ +.hz-reveal.is-armed { + opacity: 0; + transform: translateY(18px); +} +.hz-reveal.is-in { + opacity: 1; + transform: none; + transition: + opacity 0.6s ease, + transform 0.6s var(--ease); + transition-delay: calc(var(--i, 0) * 70ms); +} +.hz-grid > .hz-reveal, +.hz-steps > .hz-reveal { + display: grid; +} + +@media (prefers-reduced-motion: reduce) { + .hz-reveal.is-armed { + opacity: 1; + transform: none; + } + .hz-btn:hover svg { + transform: none; + } +} + +/* ---- Responsive ------------------------------------------------------------ */ +@media (max-width: 1024px) { + :root { + --section-y: 72px; + } + .hz-grid, + .hz-grid-3, + .hz-steps { + grid-template-columns: repeat(2, 1fr); + } + .hz-feature, + .hz-facts, + .hz-footer-cols { + grid-template-columns: 1fr; + } + /* With one column the drawing follows the copy on every row, flipped or + not: alternating sides only means something side by side. */ + .hz-feature-flip .hz-feature-art { + order: 0; + } + .hz-builder { + padding-left: 0; + padding-top: 20px; + border-left: 0; + border-top: 1px solid var(--line); + } +} + +@media (max-width: 640px) { + body { + font-size: 16px; + } + .hz-grid, + .hz-grid-2, + .hz-grid-3, + .hz-steps { + grid-template-columns: 1fr; + } + .hz-roles { + grid-template-columns: repeat(2, 1fr); + } + .hz-roles span:nth-child(n + 3) { + border-top: 1px solid var(--line); + } + .hz-roles span:nth-child(3) { + border-left: 0; + } + .hz-hero-actions .hz-btn { + width: 100%; + justify-content: center; + } +} diff --git a/src/components/Logo.tsx b/src/components/Logo.tsx new file mode 100644 index 0000000..0165301 --- /dev/null +++ b/src/components/Logo.tsx @@ -0,0 +1,55 @@ +import { A } from "@solidjs/router"; +import { Show } from "solid-js"; +import { routes, site } from "~/config"; + +/** + * The brand mark: a wing drawn in pixels, climbing to the right — Hezarfen + * Ahmed Çelebi's flight, and the shape a student's data takes once it becomes + * a plan. The leading edge is the accent; the trailing feathers are the ink + * of whatever surface the mark sits on, at low alpha. + * + * Below ~24px the trailing cells close up into a smudge, so those sizes drop + * to the reduced cut the favicon uses: leading edge only. + */ +export function LogoMark(props: { size?: number; class?: string }) { + const size = () => props.size ?? 26; + const compact = () => size() < 24; + + return ( + + ); +} + +export default function Logo(props: { size?: number }) { + return ( + + ); +} diff --git a/src/components/Reveal.tsx b/src/components/Reveal.tsx new file mode 100644 index 0000000..1d653f8 --- /dev/null +++ b/src/components/Reveal.tsx @@ -0,0 +1,43 @@ +import { createSignal, onCleanup, onMount, type JSX } from "solid-js"; + +/** + * Scroll-triggered entrance. `armed` is only ever set on the client, so the + * server-rendered markup stays readable when the script never arrives, and + * `shown` latches the first time the block enters the viewport. `--i` + * staggers siblings sharing one grid. + */ +export default function Reveal(props: { + index?: number; + class?: string; + children: JSX.Element; +}) { + const [armed, setArmed] = createSignal(false); + const [shown, setShown] = createSignal(false); + let el!: HTMLDivElement; + + onMount(() => { + if (!("IntersectionObserver" in window)) return; + setArmed(true); + const observer = new IntersectionObserver( + entries => { + if (!entries.some(entry => entry.isIntersecting)) return; + setShown(true); + observer.disconnect(); + }, + { threshold: 0.12, rootMargin: "0px 0px -6% 0px" }, + ); + observer.observe(el); + onCleanup(() => observer.disconnect()); + }); + + return ( +
+ {props.children} +
+ ); +} diff --git a/src/components/SectionHeader.tsx b/src/components/SectionHeader.tsx new file mode 100644 index 0000000..59c3451 --- /dev/null +++ b/src/components/SectionHeader.tsx @@ -0,0 +1,29 @@ +import { Show } from "solid-js"; +import Reveal from "./Reveal"; + +/** + * Every band opens with one of these: a small label, a statement, and the + * sentence that qualifies it. Keeping them identical is what makes the page + * read as one document rather than a pile of sections. + */ +export default function SectionHeader(props: { + label?: string; + title: string; + description?: string; + /** Centred for bands whose content is centred too. */ + center?: boolean; +}) { + return ( + +
+ + {props.label} + +

{props.title}

+ +

{props.description}

+
+
+
+ ); +} diff --git a/src/components/icons/pixel.tsx b/src/components/icons/pixel.tsx new file mode 100644 index 0000000..82243b3 --- /dev/null +++ b/src/components/icons/pixel.tsx @@ -0,0 +1,606 @@ +/** + * Pixel icons, inlined from Pixelarticons (https://pixelarticons.com) + * by Gerrit Halfmann — MIT licensed, 24x24 grid, `fill="currentColor"`. + * + * Only the glyphs this page needs are vendored here, rather than pulling in a + * 1000-icon package for a dozen of them; add more by pasting the `` + * data from `svg/.svg` upstream. Keep `shape-rendering="crispEdges"` + * so the pixels stay hard at any size, and prefer multiples of 24px where + * the layout allows it. + */ +type IconProps = { class?: string }; + +function Pixel(props: IconProps & { d: string[] }) { + return ( + + ); +} + +export function PixelCpu(props: IconProps) { + return ( + + ); +} + +export function PixelDatabase(props: IconProps) { + return ( + + ); +} + +export function PixelShield(props: IconProps) { + return ( + + ); +} + +export function PixelCheck(props: IconProps) { + return ( + + ); +} + +export function PixelArrowRight(props: IconProps) { + return ( + + ); +} + +export function PixelArrowUp(props: IconProps) { + return ( + + ); +} + +/** Diagonal "open" arrow for cards and external links. */ +export function PixelCornerUpRight(props: IconProps) { + return ( + + ); +} + +export function PixelCloud(props: IconProps) { + return ( + + ); +} + +export function PixelServer(props: IconProps) { + return ( + + ); +} + +export function PixelMonitor(props: IconProps) { + return ( + + ); +} + +export function PixelCoffee(props: IconProps) { + return ( + + ); +} +export function PixelBookOpen(props: IconProps) { + return ( + + ); +} +export function PixelSmartphone(props: IconProps) { + return ( + + ); +} +export function PixelCode(props: IconProps) { + return ( + + ); +} + +export function PixelUsers(props: IconProps) { + return ( + + ); +} + +export function PixelLayout(props: IconProps) { + return ( + + ); +} + +export function PixelWindowFrame(props: IconProps) { + return ( + + ); +} + +export function PixelZap(props: IconProps) { + return ( + + ); +} + +export function PixelRobot(props: IconProps) { + return ( + + ); +} + +export function PixelSparkles(props: IconProps) { + return ( + + ); +} + +export function PixelBriefcase(props: IconProps) { + return ( + + ); +} + +export function PixelShoppingCart(props: IconProps) { + return ( + + ); +} + +export function PixelStore(props: IconProps) { + return ( + + ); +} + +export function PixelNotebook(props: IconProps) { + return ( + + ); +} + +export function PixelUserPlus(props: IconProps) { + return ( + + ); +} +export function PixelMail(props: IconProps) { + return ( + + ); +} +export function PixelGlobe(props: IconProps) { + return ( + + ); +} +export function PixelLock(props: IconProps) { + return ( + + ); +} +export function PixelTerminal(props: IconProps) { + return ( + + ); +} +export function PixelClose(props: IconProps) { + return ( + + ); +} +export function PixelSun(props: IconProps) { + return ( + + ); +} +export function PixelMoon(props: IconProps) { + return ( + + ); +} +export function PixelHome(props: IconProps) { + return ( + + ); +} +export function PixelArrowLeft(props: IconProps) { + return ( + + ); +} +export function PixelCalendar(props: IconProps) { + return ( + + ); +} +export function PixelClock(props: IconProps) { + return ( + + ); +} +export function PixelExternalLink(props: IconProps) { + return ( + + ); +} +export function PixelCircleInfo(props: IconProps) { + return ( + + ); +} +export function PixelMenu(props: IconProps) { + return ( + + ); +} +export function PixelFileText(props: IconProps) { + return ( + + ); +} +export function PixelUser(props: IconProps) { + return ( + + ); +} +export function PixelImage(props: IconProps) { + return ( + + ); +} +export function PixelSend(props: IconProps) { + return ( + + ); +} +export function PixelArrowDown(props: IconProps) { + return ( + + ); +} + +/* The two below are not from Pixelarticons: they are brand marks redrawn by + hand on the same 24x24 grid so the walker crew's mascots keep the pixel + voice — Claude's starburst as eight rays meeting a solid hub, and OpenAI's + knot as its silhouette, a hexagonal ring around a hexagonal void. The knot's + interlace itself is hopeless at fifteen pixels: every version with spokes + read as a compass needle. */ +export function PixelClaudeMark(props: IconProps) { + return ( + + ); +} +export function PixelOpenAiMark(props: IconProps) { + return ( + + ); +} + +/* Critter mascots, same hand-drawn grid. Solid bodies with the eyes left as + gaps: the ground shows through, which is what makes them read as faces at + fifteen pixels — a two-eyed droplet, a pincered crab, a wavy-hemmed ghost, + Ferris with her spiked shell, the bucktoothed gopher, a long-necked llama, + and Tux, whose white belly is the gap that names him. */ +export function PixelDropMascot(props: IconProps) { + return ( + + ); +} +export function PixelCrabMascot(props: IconProps) { + return ( + + ); +} +export function PixelGhostMascot(props: IconProps) { + return ( + + ); +} +export function PixelFerrisMascot(props: IconProps) { + return ( + + ); +} +export function PixelGopherMascot(props: IconProps) { + return ( + + ); +} +export function PixelLlamaMascot(props: IconProps) { + return ( + + ); +} +export function PixelTuxMascot(props: IconProps) { + return ( + + ); +} diff --git a/src/components/illustrations/edu.tsx b/src/components/illustrations/edu.tsx new file mode 100644 index 0000000..d252b0b --- /dev/null +++ b/src/components/illustrations/edu.tsx @@ -0,0 +1,452 @@ +import { For } from "solid-js"; + +/** + * Education illustrations, drawn on a pixel grid. + * + * Every shape is an axis-aligned rectangle on a 4-unit grid with + * `shape-rendering: crispEdges`, so the drawings match the pixel icons rather + * than sitting beside them as a second, smoother style. Structure takes + * `currentColor`; only what the drawing is *about* takes the brand, so a + * panel never turns into a block of colour. + * + * They are illustrations, not screenshots: a classroom, a marked answer + * sheet, a weekly plan, a screen being pointed at, a recorded lesson. None of + * them pretends to be the product's interface. + */ +type Props = { class?: string }; + +const brand = "var(--dz-brand, #00add8)"; +const brandDeep = "var(--dz-brand-deep, #5dc9e2)"; + +/** A 4-sided pixel border, drawn as four bars so the corners stay square. */ +function Frame(props: { x: number; y: number; w: number; h: number; t?: number; fill?: string }) { + const t = props.t ?? 4; + return ( + + + + + + + ); +} + +/** + * The hero's centrepiece: the platform as one screen — the class on the left + * with its answers stored option by option, the topic chart and the week's + * plan on the right. It is a drawing, not a screenshot: no real interface has + * this few pixels, and a mock that pretends otherwise ages the moment the + * product moves. + */ +export function AppScreenIllustration(props: Props) { + const students = [0, 1, 2, 3, 4, 5]; + /** Which option each student marked: the data the rest of the page is about. */ + const marked = [2, 0, 3, 1, 2, 0]; + const chart = [28, 44, 36, 60, 52, 76]; + const plan = [ + [1, 0, 2, 0, 1], + [0, 2, 0, 1, 0], + [2, 0, 1, 2, 0], + ]; + + return ( + + {/* Window */} + + + {/* Title bar: three dots and a search field */} + + + + + + + + + {/* Sidebar: the modules, one of them open */} + + + + + + + {row => ( + + )} + + + + + {/* Page heading */} + + + + {/* Left panel: the class, answered option by option */} + + + + {(_, i) => { + const y = 180 + i() * 48; + return ( + + + + {option => ( + + )} + + + + ); + }} + + + {/* Right, top: topic mastery */} + + + + + {(height, i) => ( + = 4 ? brand : brandDeep} + opacity={i() >= 4 ? 1 : 0.6} + /> + )} + + + {/* Right, bottom: the week the data turns into */} + + + + {(row, r) => ( + + {(cell, c) => ( + + )} + + )} + + + ); +} + +/** + * A board with the class's progress on it, a desk, a book stack and a piece of + * chalk. The bars are the one thing in brand — the data is the subject of the + * whole page. + */ +export function ClassroomIllustration(props: Props) { + const bars = [ + { x: 52, h: 24, fill: brandDeep }, + { x: 80, h: 40, fill: brandDeep }, + { x: 108, h: 56, fill: brand }, + { x: 136, h: 76, fill: brand }, + ]; + + return ( + + {/* Board */} + + {/* Chalk baseline and the bars standing on it */} + + + {bar => } + + {/* Written lines, top left: the lesson the bars came from */} + + + + + {/* Desk */} + + + + + + {/* Book stack on the desk */} + + + + + {/* Chalk */} + + + ); +} + +/** + * Hezarfen Platform: an answer sheet where every question carries its topic + * tag and every answer is stored per option — the marks are the point, so + * they are the brand. + */ +export function AnswerSheetIllustration(props: Props) { + const rows = [0, 1, 2, 3, 4]; + const marked = [1, 3, 0, 2, 3]; + + return ( + + + {/* Header band: the exam's own line */} + + + + + {row => { + const y = 64 + row * 24; + return ( + + {/* Topic tag */} + + {/* Four options, one of them marked */} + + {option => ( + + )} + + + + ); + }} + + + ); +} + +/** + * Hezarfen Zekâ: a week of study, laid out as a grid and filled in by what + * the data says. The arrow is the plan updating itself when new data lands. + */ +export function StudyPlanIllustration(props: Props) { + const cells = [ + [1, 0, 2, 0, 1], + [0, 2, 0, 1, 0], + [2, 0, 1, 0, 2], + ]; + + return ( + + + {/* Day headers */} + + {day => } + + {/* Plan cells: filled where there is work to do */} + + {(row, r) => ( + + {(cell, c) => ( + + )} + + )} + + {/* The plan climbing as new data arrives */} + + + + + + + + + + + ); +} + +/** + * Çelebi: a screen with the right row lit and a cursor arriving at it. The + * assistant's whole job is “the thing you are looking for is here”. + */ +export function GuidedScreenIllustration(props: Props) { + return ( + + + {/* Window bar */} + + {/* Side menu, one row highlighted */} + + + + + + + {/* Content area: the screen the row opens */} + + + + + + + {/* Pixel cursor, landing on the highlighted row */} + + + + + + + {/* Stand */} + + + + + + ); +} + +/** + * Ses Atölyesi: a lesson page turning into sound, with the pause the content + * stops at to ask a question. + */ +export function AudioLessonIllustration(props: Props) { + const wave = [16, 28, 44, 24, 52, 36, 20, 40, 28, 16]; + + return ( + + {/* The source page */} + + + + + + + + + + {/* Headphone arc, stepped rather than curved */} + + + + + + + + + {/* Waveform: the produced lesson */} + + {(height, i) => ( + + )} + + {/* The DUR-CEVAPLA pause sitting in the middle of the take */} + + + + + + ); +} + +/** 404: a page that is not where it was. */ +export function MissingPageIllustration(props: Props) { + return ( + + + + + + + + + + + + + + ); +}