Add light design system on gopher blue
Browse files at this commite56390d6fc5315d74750b3d99af67200825ed3f3Parent: 10633d3- feat
- add light design system on gopher blue
6 changed files +2134 -0
- src/app.css +949 -0
- src/components/Logo.tsx +55 -0
- src/components/Reveal.tsx +43 -0
- src/components/SectionHeader.tsx +29 -0
- src/components/icons/pixel.tsx +606 -0
- src/components/illustrations/edu.tsx +452 -0
src/app.cssadded+949 -0
| @@ -0,0 +1,949 @@ | ||
| 1 | +@import "tailwindcss"; | |
| 2 | + | |
| 3 | +/* ========================================================================= | |
| 4 | + Hezarfen — light design system | |
| 5 | + | |
| 6 | + A white page with one accent: gopher blue, #00ADD8. The surfaces are | |
| 7 | + Notion's: white paper, a warm off-white for every second band, hairline | |
| 8 | + rules instead of shadows, small radii, and type that is allowed to be | |
| 9 | + large because nothing else on the page is loud. | |
| 10 | + | |
| 11 | + Everything is prefixed `hz-`. There is no dark contract and no `dark:` | |
| 12 | + variant to qualify — these tokens *are* the theme. | |
| 13 | + ========================================================================= */ | |
| 14 | + | |
| 15 | +:root { | |
| 16 | + color-scheme: light; | |
| 17 | + | |
| 18 | + /* Surfaces */ | |
| 19 | + --paper: #ffffff; | |
| 20 | + --band: #f7f7f5; /* every second section, and card interiors on white */ | |
| 21 | + --sunken: #f1f0ee; /* inputs, inner wells, illustration grounds */ | |
| 22 | + | |
| 23 | + /* Ink */ | |
| 24 | + --ink: #1b1a17; /* headings */ | |
| 25 | + --body: #37352f; /* body copy */ | |
| 26 | + --muted: #787774; /* captions, labels, secondary rows */ | |
| 27 | + --faint: #9b9a96; /* the quietest text that still has to be read */ | |
| 28 | + | |
| 29 | + /* Rules */ | |
| 30 | + --line: #e9e9e7; | |
| 31 | + --line-strong: #dcdad5; | |
| 32 | + | |
| 33 | + /* Accent: Go's cyan. Reserved for action, data and links. */ | |
| 34 | + --brand: #00add8; | |
| 35 | + --brand-hover: #0097bd; | |
| 36 | + --brand-ink: #046b86; /* accent text on white, where #00add8 is too light */ | |
| 37 | + --brand-wash: #eaf8fc; /* the tinted panel and hover fills */ | |
| 38 | + | |
| 39 | + --radius-sm: 4px; | |
| 40 | + --radius: 6px; | |
| 41 | + --radius-lg: 10px; | |
| 42 | + --radius-xl: 14px; | |
| 43 | + | |
| 44 | + --shadow-sm: 0 1px 2px rgb(15 15 15 / 0.06); | |
| 45 | + --shadow: 0 1px 2px rgb(15 15 15 / 0.06), 0 6px 20px rgb(15 15 15 / 0.05); | |
| 46 | + --shadow-lg: 0 1px 2px rgb(15 15 15 / 0.06), 0 18px 48px rgb(15 15 15 / 0.08); | |
| 47 | + | |
| 48 | + --measure: 1120px; | |
| 49 | + --gutter: 24px; | |
| 50 | + --section-y: 96px; | |
| 51 | + --header-h: 60px; | |
| 52 | + | |
| 53 | + --ease: cubic-bezier(0.16, 1, 0.3, 1); | |
| 54 | + --quick: 160ms; | |
| 55 | +} | |
| 56 | + | |
| 57 | +@theme inline { | |
| 58 | + --color-paper: var(--paper); | |
| 59 | + --color-band: var(--band); | |
| 60 | + --color-ink: var(--ink); | |
| 61 | + --color-body: var(--body); | |
| 62 | + --color-muted: var(--muted); | |
| 63 | + --color-line: var(--line); | |
| 64 | + --color-brand: var(--brand); | |
| 65 | + --font-sans: "Inter Variable", Inter, -apple-system, "Segoe UI", Helvetica, sans-serif; | |
| 66 | + --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, monospace; | |
| 67 | +} | |
| 68 | + | |
| 69 | +@layer base { | |
| 70 | + * { | |
| 71 | + border-color: var(--line); | |
| 72 | + } | |
| 73 | + | |
| 74 | + html { | |
| 75 | + scroll-behavior: smooth; | |
| 76 | + } | |
| 77 | + | |
| 78 | + body { | |
| 79 | + background: var(--paper); | |
| 80 | + color: var(--body); | |
| 81 | + font-family: var(--font-sans); | |
| 82 | + font-size: 17px; | |
| 83 | + line-height: 1.6; | |
| 84 | + -webkit-font-smoothing: antialiased; | |
| 85 | + font-synthesis-weight: none; | |
| 86 | + } | |
| 87 | + | |
| 88 | + /* Copy never runs the full width of the viewport: that is most of why the | |
| 89 | + page reads like a document rather than a poster. */ | |
| 90 | + p, | |
| 91 | + li, | |
| 92 | + dd { | |
| 93 | + max-width: 68ch; | |
| 94 | + } | |
| 95 | + | |
| 96 | + h1, | |
| 97 | + h2, | |
| 98 | + h3, | |
| 99 | + h4 { | |
| 100 | + color: var(--ink); | |
| 101 | + line-height: 1.15; | |
| 102 | + letter-spacing: -0.02em; | |
| 103 | + text-wrap: balance; | |
| 104 | + } | |
| 105 | + | |
| 106 | + a { | |
| 107 | + color: inherit; | |
| 108 | + text-decoration: none; | |
| 109 | + } | |
| 110 | + | |
| 111 | + ::selection { | |
| 112 | + background: color-mix(in srgb, var(--brand) 22%, transparent); | |
| 113 | + } | |
| 114 | + | |
| 115 | + :focus-visible { | |
| 116 | + outline: 2px solid var(--brand); | |
| 117 | + outline-offset: 2px; | |
| 118 | + border-radius: var(--radius-sm); | |
| 119 | + } | |
| 120 | + | |
| 121 | + @media (prefers-reduced-motion: reduce) { | |
| 122 | + html { | |
| 123 | + scroll-behavior: auto; | |
| 124 | + } | |
| 125 | + } | |
| 126 | +} | |
| 127 | + | |
| 128 | +/* ---- Layout ---------------------------------------------------------------- */ | |
| 129 | +.hz-band { | |
| 130 | + padding-block: var(--section-y); | |
| 131 | + padding-inline: var(--gutter); | |
| 132 | + background: var(--paper); | |
| 133 | +} | |
| 134 | +/* Every second band takes the off-white, so a section boundary is a change of | |
| 135 | + ground rather than a rule someone has to notice. */ | |
| 136 | +.hz-band-alt { | |
| 137 | + background: var(--band); | |
| 138 | + border-block: 1px solid var(--line); | |
| 139 | +} | |
| 140 | +.hz-wrap { | |
| 141 | + max-width: var(--measure); | |
| 142 | + margin-inline: auto; | |
| 143 | +} | |
| 144 | +.hz-narrow { | |
| 145 | + max-width: 760px; | |
| 146 | + margin-inline: auto; | |
| 147 | +} | |
| 148 | +.hz-anchor { | |
| 149 | + scroll-margin-top: calc(var(--header-h) + 12px); | |
| 150 | +} | |
| 151 | + | |
| 152 | +/* ---- Type ------------------------------------------------------------------ */ | |
| 153 | +.hz-display { | |
| 154 | + font-size: clamp(2.25rem, 4.6vw, 3.75rem); | |
| 155 | + font-weight: 700; | |
| 156 | + letter-spacing: -0.035em; | |
| 157 | + line-height: 1.08; | |
| 158 | + color: var(--ink); | |
| 159 | + max-width: 22ch; | |
| 160 | +} | |
| 161 | +.hz-h2 { | |
| 162 | + font-size: clamp(1.75rem, 3vw, 2.5rem); | |
| 163 | + font-weight: 700; | |
| 164 | + letter-spacing: -0.03em; | |
| 165 | + max-width: 26ch; | |
| 166 | +} | |
| 167 | +.hz-h3 { | |
| 168 | + font-size: 1.0625rem; | |
| 169 | + font-weight: 600; | |
| 170 | + letter-spacing: -0.01em; | |
| 171 | +} | |
| 172 | +.hz-lead { | |
| 173 | + font-size: 1.1875rem; | |
| 174 | + line-height: 1.65; | |
| 175 | + color: var(--muted); | |
| 176 | + max-width: 62ch; | |
| 177 | +} | |
| 178 | +.hz-label { | |
| 179 | + display: inline-block; | |
| 180 | + font-size: 0.8125rem; | |
| 181 | + font-weight: 600; | |
| 182 | + letter-spacing: 0.01em; | |
| 183 | + color: var(--brand-ink); | |
| 184 | +} | |
| 185 | +.hz-small { | |
| 186 | + font-size: 0.9375rem; | |
| 187 | + line-height: 1.6; | |
| 188 | + color: var(--muted); | |
| 189 | +} | |
| 190 | + | |
| 191 | +/* ---- Buttons --------------------------------------------------------------- */ | |
| 192 | +.hz-btn { | |
| 193 | + display: inline-flex; | |
| 194 | + align-items: center; | |
| 195 | + gap: 8px; | |
| 196 | + height: 42px; | |
| 197 | + padding-inline: 18px; | |
| 198 | + border: 1px solid transparent; | |
| 199 | + border-radius: var(--radius); | |
| 200 | + font-size: 0.9375rem; | |
| 201 | + font-weight: 500; | |
| 202 | + white-space: nowrap; | |
| 203 | + cursor: pointer; | |
| 204 | + transition: | |
| 205 | + background var(--quick) var(--ease), | |
| 206 | + border-color var(--quick), | |
| 207 | + color var(--quick), | |
| 208 | + box-shadow var(--quick); | |
| 209 | +} | |
| 210 | +.hz-btn-lg { | |
| 211 | + height: 48px; | |
| 212 | + padding-inline: 22px; | |
| 213 | + font-size: 1rem; | |
| 214 | +} | |
| 215 | +.hz-btn-primary { | |
| 216 | + background: var(--brand); | |
| 217 | + color: #fff; | |
| 218 | + box-shadow: var(--shadow-sm); | |
| 219 | +} | |
| 220 | +.hz-btn-primary:hover { | |
| 221 | + background: var(--brand-hover); | |
| 222 | +} | |
| 223 | +.hz-btn-ghost { | |
| 224 | + background: var(--paper); | |
| 225 | + border-color: var(--line-strong); | |
| 226 | + color: var(--ink); | |
| 227 | +} | |
| 228 | +.hz-btn-ghost:hover { | |
| 229 | + background: var(--band); | |
| 230 | +} | |
| 231 | +.hz-btn-quiet { | |
| 232 | + background: transparent; | |
| 233 | + color: var(--brand-ink); | |
| 234 | + padding-inline: 0; | |
| 235 | +} | |
| 236 | +.hz-btn-quiet:hover { | |
| 237 | + color: var(--brand-hover); | |
| 238 | +} | |
| 239 | +/* The arrow leans forward on hover — the one motion a button gets. */ | |
| 240 | +.hz-btn svg { | |
| 241 | + width: 16px; | |
| 242 | + height: 16px; | |
| 243 | + transition: transform 200ms var(--ease); | |
| 244 | +} | |
| 245 | +.hz-btn:hover svg { | |
| 246 | + transform: translateX(2px); | |
| 247 | +} | |
| 248 | + | |
| 249 | +/* ---- Header ---------------------------------------------------------------- */ | |
| 250 | +.hz-header { | |
| 251 | + position: sticky; | |
| 252 | + top: 0; | |
| 253 | + z-index: 50; | |
| 254 | + background: color-mix(in srgb, var(--paper) 88%, transparent); | |
| 255 | + backdrop-filter: saturate(180%) blur(12px); | |
| 256 | + border-bottom: 1px solid var(--line); | |
| 257 | +} | |
| 258 | +.hz-header-inner { | |
| 259 | + position: relative; | |
| 260 | + display: flex; | |
| 261 | + align-items: center; | |
| 262 | + gap: 20px; | |
| 263 | + height: var(--header-h); | |
| 264 | + max-width: var(--measure); | |
| 265 | + margin-inline: auto; | |
| 266 | + padding-inline: var(--gutter); | |
| 267 | +} | |
| 268 | +.hz-logo { | |
| 269 | + display: inline-flex; | |
| 270 | + align-items: center; | |
| 271 | + gap: 9px; | |
| 272 | + font-size: 1.0625rem; | |
| 273 | + font-weight: 600; | |
| 274 | + letter-spacing: -0.02em; | |
| 275 | + color: var(--ink); | |
| 276 | +} | |
| 277 | +/* The bar's own breakpoints live here rather than as utility classes on the | |
| 278 | + markup: this stylesheet is unlayered, so it would win over Tailwind's | |
| 279 | + `lg:hidden` and leave the menu button showing on desktop. */ | |
| 280 | +/* Centred on the bar itself rather than in the space left over between the | |
| 281 | + logo and the button: `auto` margins would push it off-centre by half the | |
| 282 | + difference between those two, which is exactly what you notice. */ | |
| 283 | +.hz-nav { | |
| 284 | + position: absolute; | |
| 285 | + left: 50%; | |
| 286 | + transform: translateX(-50%); | |
| 287 | + display: flex; | |
| 288 | + align-items: center; | |
| 289 | + gap: 2px; | |
| 290 | +} | |
| 291 | +.hz-menu-btn, | |
| 292 | +.hz-sheet { | |
| 293 | + display: none; | |
| 294 | +} | |
| 295 | +@media (max-width: 1024px) { | |
| 296 | + .hz-nav { | |
| 297 | + display: none; | |
| 298 | + } | |
| 299 | + .hz-menu-btn { | |
| 300 | + display: grid; | |
| 301 | + } | |
| 302 | + .hz-sheet { | |
| 303 | + display: block; | |
| 304 | + } | |
| 305 | +} | |
| 306 | +@media (max-width: 420px) { | |
| 307 | + .hz-header .hz-btn-primary { | |
| 308 | + display: none; | |
| 309 | + } | |
| 310 | +} | |
| 311 | +.hz-nav a { | |
| 312 | + padding: 7px 12px; | |
| 313 | + border-radius: var(--radius); | |
| 314 | + font-size: 0.9375rem; | |
| 315 | + color: var(--body); | |
| 316 | + transition: background var(--quick), color var(--quick); | |
| 317 | +} | |
| 318 | +.hz-nav a:hover { | |
| 319 | + background: var(--band); | |
| 320 | + color: var(--ink); | |
| 321 | +} | |
| 322 | +.hz-nav a.is-current { | |
| 323 | + color: var(--brand-ink); | |
| 324 | + font-weight: 500; | |
| 325 | +} | |
| 326 | +.hz-header-actions { | |
| 327 | + display: flex; | |
| 328 | + align-items: center; | |
| 329 | + gap: 10px; | |
| 330 | +} | |
| 331 | +.hz-menu-btn { | |
| 332 | + place-items: center; | |
| 333 | + width: 38px; | |
| 334 | + height: 38px; | |
| 335 | + border: 1px solid var(--line-strong); | |
| 336 | + border-radius: var(--radius); | |
| 337 | + background: var(--paper); | |
| 338 | + color: var(--ink); | |
| 339 | + cursor: pointer; | |
| 340 | +} | |
| 341 | +.hz-sheet { | |
| 342 | + border-bottom: 1px solid var(--line); | |
| 343 | + background: var(--paper); | |
| 344 | + padding: 12px var(--gutter) 20px; | |
| 345 | +} | |
| 346 | +.hz-header-actions { | |
| 347 | + margin-left: auto; | |
| 348 | +} | |
| 349 | +.hz-sheet a { | |
| 350 | + display: block; | |
| 351 | + padding: 11px 12px; | |
| 352 | + border-radius: var(--radius); | |
| 353 | + font-size: 0.9375rem; | |
| 354 | + color: var(--body); | |
| 355 | +} | |
| 356 | +.hz-sheet a:hover { | |
| 357 | + background: var(--band); | |
| 358 | +} | |
| 359 | +.hz-sheet .hz-btn { | |
| 360 | + width: 100%; | |
| 361 | + justify-content: center; | |
| 362 | + margin-top: 10px; | |
| 363 | +} | |
| 364 | + | |
| 365 | +/* ---- Hero ------------------------------------------------------------------ */ | |
| 366 | +.hz-hero { | |
| 367 | + position: relative; | |
| 368 | + padding: clamp(56px, 8vw, 104px) var(--gutter) 0; | |
| 369 | + text-align: center; | |
| 370 | + overflow: hidden; | |
| 371 | +} | |
| 372 | +/* One wash behind the first screen, fading out well before the next band, so | |
| 373 | + the page opens on something other than flat white. */ | |
| 374 | +.hz-hero::before { | |
| 375 | + content: ""; | |
| 376 | + position: absolute; | |
| 377 | + inset: -40% 0 auto; | |
| 378 | + height: 680px; | |
| 379 | + background: radial-gradient(60% 60% at 50% 42%, var(--brand-wash), transparent 70%); | |
| 380 | + z-index: -1; | |
| 381 | +} | |
| 382 | +.hz-hero-copy { | |
| 383 | + max-width: 880px; | |
| 384 | + margin-inline: auto; | |
| 385 | + display: grid; | |
| 386 | + justify-items: center; | |
| 387 | + gap: 22px; | |
| 388 | +} | |
| 389 | +.hz-hero-copy .hz-display { | |
| 390 | + max-width: 20ch; | |
| 391 | + font-size: clamp(2.5rem, 5.6vw, 4.25rem); | |
| 392 | +} | |
| 393 | +.hz-hero-copy .hz-lead { | |
| 394 | + max-width: 56ch; | |
| 395 | + font-size: 1.25rem; | |
| 396 | +} | |
| 397 | +.hz-hero-actions { | |
| 398 | + display: flex; | |
| 399 | + flex-wrap: wrap; | |
| 400 | + justify-content: center; | |
| 401 | + gap: 12px; | |
| 402 | + margin-top: 4px; | |
| 403 | +} | |
| 404 | +.hz-hero-note { | |
| 405 | + font-size: 0.875rem; | |
| 406 | + color: var(--faint); | |
| 407 | +} | |
| 408 | +/* The product's drawing, on a card that reads as a frame without pretending | |
| 409 | + to be a screenshot. It is the largest thing on the page on purpose: the | |
| 410 | + first screen has one job, and it is showing what this is. */ | |
| 411 | +.hz-art-card { | |
| 412 | + margin: clamp(40px, 6vw, 72px) auto 0; | |
| 413 | + max-width: 1080px; | |
| 414 | + padding: clamp(14px, 2vw, 22px); | |
| 415 | + border: 1px solid var(--line); | |
| 416 | + border-radius: var(--radius-xl); | |
| 417 | + background: var(--paper); | |
| 418 | + box-shadow: var(--shadow-lg); | |
| 419 | +} | |
| 420 | +.hz-illustration { | |
| 421 | + display: block; | |
| 422 | + width: 100%; | |
| 423 | + height: auto; | |
| 424 | + /* The drawing's structure: a shade darker than a hairline, so the line work | |
| 425 | + reads on white without competing with the type. */ | |
| 426 | + color: #c4c2bb; | |
| 427 | +} | |
| 428 | +.hz-roles { | |
| 429 | + margin-top: clamp(40px, 6vw, 72px); | |
| 430 | + border-top: 1px solid var(--line); | |
| 431 | + display: grid; | |
| 432 | + grid-template-columns: repeat(4, 1fr); | |
| 433 | + max-width: var(--measure); | |
| 434 | + margin-inline: auto; | |
| 435 | +} | |
| 436 | +.hz-roles span { | |
| 437 | + display: flex; | |
| 438 | + align-items: center; | |
| 439 | + justify-content: center; | |
| 440 | + gap: 9px; | |
| 441 | + padding: 20px 12px; | |
| 442 | + font-size: 0.875rem; | |
| 443 | + color: var(--muted); | |
| 444 | +} | |
| 445 | +.hz-roles span + span { | |
| 446 | + border-left: 1px solid var(--line); | |
| 447 | +} | |
| 448 | +.hz-roles i { | |
| 449 | + width: 6px; | |
| 450 | + height: 6px; | |
| 451 | + border-radius: 999px; | |
| 452 | + background: var(--brand); | |
| 453 | +} | |
| 454 | + | |
| 455 | +/* ---- Section header -------------------------------------------------------- */ | |
| 456 | +.hz-sechead { | |
| 457 | + display: grid; | |
| 458 | + gap: 14px; | |
| 459 | + max-width: 780px; | |
| 460 | +} | |
| 461 | +.hz-sechead-center { | |
| 462 | + margin-inline: auto; | |
| 463 | + justify-items: center; | |
| 464 | + text-align: center; | |
| 465 | +} | |
| 466 | +.hz-sechead-center :is(p, h2) { | |
| 467 | + margin-inline: auto; | |
| 468 | +} | |
| 469 | + | |
| 470 | +/* ---- Cards ----------------------------------------------------------------- */ | |
| 471 | +.hz-grid { | |
| 472 | + margin-top: 44px; | |
| 473 | + display: grid; | |
| 474 | + gap: 16px; | |
| 475 | + grid-template-columns: repeat(4, 1fr); | |
| 476 | +} | |
| 477 | +.hz-grid-3 { | |
| 478 | + grid-template-columns: repeat(3, 1fr); | |
| 479 | +} | |
| 480 | +.hz-grid-2 { | |
| 481 | + grid-template-columns: repeat(2, 1fr); | |
| 482 | +} | |
| 483 | +.hz-card { | |
| 484 | + display: grid; | |
| 485 | + align-content: start; | |
| 486 | + gap: 10px; | |
| 487 | + padding: 22px; | |
| 488 | + border: 1px solid var(--line); | |
| 489 | + border-radius: var(--radius-lg); | |
| 490 | + background: var(--paper); | |
| 491 | + transition: border-color var(--quick), box-shadow var(--quick), transform 200ms var(--ease); | |
| 492 | +} | |
| 493 | +.hz-card:hover { | |
| 494 | + border-color: var(--line-strong); | |
| 495 | + box-shadow: var(--shadow); | |
| 496 | + transform: translateY(-2px); | |
| 497 | +} | |
| 498 | +.hz-card-icon { | |
| 499 | + display: grid; | |
| 500 | + place-items: center; | |
| 501 | + width: 36px; | |
| 502 | + height: 36px; | |
| 503 | + border-radius: var(--radius); | |
| 504 | + background: var(--brand-wash); | |
| 505 | + color: var(--brand-ink); | |
| 506 | +} | |
| 507 | +.hz-card-icon svg { | |
| 508 | + width: 19px; | |
| 509 | + height: 19px; | |
| 510 | +} | |
| 511 | +.hz-card h3 { | |
| 512 | + font-size: 1.0625rem; | |
| 513 | + font-weight: 600; | |
| 514 | +} | |
| 515 | +.hz-card p { | |
| 516 | + font-size: 0.9375rem; | |
| 517 | + line-height: 1.55; | |
| 518 | + color: var(--muted); | |
| 519 | +} | |
| 520 | +.hz-tag { | |
| 521 | + justify-self: start; | |
| 522 | + padding: 3px 9px; | |
| 523 | + border-radius: 999px; | |
| 524 | + background: var(--band); | |
| 525 | + border: 1px solid var(--line); | |
| 526 | + font-family: var(--font-mono); | |
| 527 | + font-size: 0.6875rem; | |
| 528 | + letter-spacing: 0.04em; | |
| 529 | + text-transform: uppercase; | |
| 530 | + color: var(--muted); | |
| 531 | +} | |
| 532 | + | |
| 533 | +/* ---- Feature rows: copy beside a drawing ----------------------------------- */ | |
| 534 | +.hz-feature { | |
| 535 | + display: grid; | |
| 536 | + grid-template-columns: 1fr 1fr; | |
| 537 | + align-items: center; | |
| 538 | + gap: clamp(32px, 5vw, 72px); | |
| 539 | + padding-block: clamp(40px, 5vw, 64px); | |
| 540 | + border-top: 1px solid var(--line); | |
| 541 | +} | |
| 542 | +.hz-feature:first-of-type { | |
| 543 | + border-top: 0; | |
| 544 | +} | |
| 545 | +/* Odd rows put the drawing on the left, so four features in a row never read | |
| 546 | + as the same block four times. */ | |
| 547 | +.hz-feature-flip .hz-feature-art { | |
| 548 | + order: -1; | |
| 549 | +} | |
| 550 | +.hz-feature-copy { | |
| 551 | + display: grid; | |
| 552 | + justify-items: start; | |
| 553 | + gap: 14px; | |
| 554 | +} | |
| 555 | +.hz-feature-copy p { | |
| 556 | + font-size: 1.0625rem; | |
| 557 | + color: var(--muted); | |
| 558 | +} | |
| 559 | +.hz-feature-art { | |
| 560 | + display: grid; | |
| 561 | + place-items: center; | |
| 562 | + padding: clamp(16px, 2.5vw, 28px); | |
| 563 | + border: 1px solid var(--line); | |
| 564 | + border-radius: var(--radius-xl); | |
| 565 | + background: var(--paper); | |
| 566 | +} | |
| 567 | +/* Feature drawings are supporting evidence, not the subject: capped well | |
| 568 | + below the column so a row never reads as a picture with a caption. */ | |
| 569 | +.hz-feature-art .hz-illustration { | |
| 570 | + max-width: 340px; | |
| 571 | + color: #c9c7c1; | |
| 572 | +} | |
| 573 | +.hz-pills { | |
| 574 | + display: flex; | |
| 575 | + flex-wrap: wrap; | |
| 576 | + gap: 8px; | |
| 577 | + margin-top: 2px; | |
| 578 | +} | |
| 579 | +.hz-pills span { | |
| 580 | + padding: 5px 11px; | |
| 581 | + border: 1px solid var(--line); | |
| 582 | + border-radius: 999px; | |
| 583 | + background: var(--paper); | |
| 584 | + font-size: 0.8125rem; | |
| 585 | + color: var(--body); | |
| 586 | +} | |
| 587 | + | |
| 588 | +/* ---- Ticked proof list ----------------------------------------------------- */ | |
| 589 | +.hz-checks { | |
| 590 | + display: grid; | |
| 591 | + gap: 10px; | |
| 592 | + margin-top: 2px; | |
| 593 | +} | |
| 594 | +.hz-checks li { | |
| 595 | + display: flex; | |
| 596 | + gap: 10px; | |
| 597 | + align-items: flex-start; | |
| 598 | + font-size: 0.9375rem; | |
| 599 | + line-height: 1.5; | |
| 600 | + color: var(--body); | |
| 601 | +} | |
| 602 | +.hz-checks svg { | |
| 603 | + width: 16px; | |
| 604 | + height: 16px; | |
| 605 | + margin-top: 3px; | |
| 606 | + flex: none; | |
| 607 | + color: var(--brand); | |
| 608 | +} | |
| 609 | + | |
| 610 | +/* ---- Steps ----------------------------------------------------------------- */ | |
| 611 | +.hz-steps { | |
| 612 | + margin-top: 44px; | |
| 613 | + display: grid; | |
| 614 | + grid-template-columns: repeat(4, 1fr); | |
| 615 | + gap: 16px; | |
| 616 | +} | |
| 617 | +.hz-step { | |
| 618 | + display: grid; | |
| 619 | + align-content: start; | |
| 620 | + gap: 8px; | |
| 621 | + padding-top: 18px; | |
| 622 | + border-top: 2px solid var(--brand); | |
| 623 | +} | |
| 624 | +.hz-step:nth-child(n + 2) { | |
| 625 | + border-top-color: var(--line-strong); | |
| 626 | +} | |
| 627 | +.hz-step-num { | |
| 628 | + font-family: var(--font-mono); | |
| 629 | + font-size: 0.75rem; | |
| 630 | + letter-spacing: 0.1em; | |
| 631 | + color: var(--brand-ink); | |
| 632 | +} | |
| 633 | +.hz-step p { | |
| 634 | + font-size: 0.9375rem; | |
| 635 | + line-height: 1.55; | |
| 636 | + color: var(--muted); | |
| 637 | +} | |
| 638 | + | |
| 639 | +/* ---- Prose ----------------------------------------------------------------- */ | |
| 640 | +.hz-prose { | |
| 641 | + display: grid; | |
| 642 | + gap: 18px; | |
| 643 | + margin-top: 32px; | |
| 644 | +} | |
| 645 | +.hz-prose p { | |
| 646 | + max-width: 72ch; | |
| 647 | + font-size: 1.0625rem; | |
| 648 | + color: var(--body); | |
| 649 | +} | |
| 650 | + | |
| 651 | +/* ---- Figures + credit card ------------------------------------------------- */ | |
| 652 | +.hz-facts { | |
| 653 | + margin-top: 44px; | |
| 654 | + display: grid; | |
| 655 | + grid-template-columns: 1.2fr 1fr; | |
| 656 | + gap: clamp(24px, 4vw, 56px); | |
| 657 | + align-items: center; | |
| 658 | + padding: clamp(24px, 4vw, 40px); | |
| 659 | + border: 1px solid var(--line); | |
| 660 | + border-radius: var(--radius-xl); | |
| 661 | + background: var(--paper); | |
| 662 | +} | |
| 663 | +.hz-figures { | |
| 664 | + display: grid; | |
| 665 | +} | |
| 666 | +.hz-figures > div { | |
| 667 | + display: flex; | |
| 668 | + gap: 18px; | |
| 669 | + align-items: baseline; | |
| 670 | + padding: 14px 0; | |
| 671 | + border-top: 1px solid var(--line); | |
| 672 | +} | |
| 673 | +.hz-figures > div:first-child { | |
| 674 | + border-top: 0; | |
| 675 | + padding-top: 0; | |
| 676 | +} | |
| 677 | +.hz-figures dt { | |
| 678 | + min-width: 2.5ch; | |
| 679 | + font-family: var(--font-mono); | |
| 680 | + font-size: clamp(1.75rem, 3vw, 2.25rem); | |
| 681 | + font-weight: 600; | |
| 682 | + line-height: 1; | |
| 683 | + letter-spacing: -0.04em; | |
| 684 | + color: var(--brand-ink); | |
| 685 | +} | |
| 686 | +.hz-figures dd { | |
| 687 | + font-size: 0.9375rem; | |
| 688 | + line-height: 1.5; | |
| 689 | + color: var(--muted); | |
| 690 | +} | |
| 691 | +.hz-builder { | |
| 692 | + display: grid; | |
| 693 | + justify-items: start; | |
| 694 | + gap: 10px; | |
| 695 | + padding-left: clamp(0px, 2vw, 28px); | |
| 696 | + border-left: 1px solid var(--line); | |
| 697 | +} | |
| 698 | + | |
| 699 | +/* ---- Note ------------------------------------------------------------------ */ | |
| 700 | +.hz-note { | |
| 701 | + display: flex; | |
| 702 | + gap: 12px; | |
| 703 | + margin-top: 32px; | |
| 704 | + padding: 18px 20px; | |
| 705 | + border: 1px solid var(--line); | |
| 706 | + border-left: 3px solid var(--brand); | |
| 707 | + border-radius: 0 var(--radius-lg) var(--radius-lg) 0; | |
| 708 | + background: var(--band); | |
| 709 | + font-size: 0.9375rem; | |
| 710 | + line-height: 1.55; | |
| 711 | + color: var(--body); | |
| 712 | +} | |
| 713 | +.hz-note svg { | |
| 714 | + width: 18px; | |
| 715 | + height: 18px; | |
| 716 | + margin-top: 2px; | |
| 717 | + flex: none; | |
| 718 | + color: var(--brand-ink); | |
| 719 | +} | |
| 720 | + | |
| 721 | +/* ---- FAQ ------------------------------------------------------------------- */ | |
| 722 | +.hz-faq { | |
| 723 | + margin-top: 40px; | |
| 724 | + border-top: 1px solid var(--line); | |
| 725 | +} | |
| 726 | +.hz-faq-item { | |
| 727 | + border-bottom: 1px solid var(--line); | |
| 728 | +} | |
| 729 | +.hz-faq-item summary { | |
| 730 | + display: flex; | |
| 731 | + align-items: center; | |
| 732 | + gap: 16px; | |
| 733 | + padding: 20px 2px; | |
| 734 | + list-style: none; | |
| 735 | + cursor: pointer; | |
| 736 | + font-size: 1.0625rem; | |
| 737 | + font-weight: 500; | |
| 738 | + color: var(--ink); | |
| 739 | +} | |
| 740 | +.hz-faq-item summary::-webkit-details-marker { | |
| 741 | + display: none; | |
| 742 | +} | |
| 743 | +.hz-faq-item summary > span { | |
| 744 | + flex: 1; | |
| 745 | +} | |
| 746 | +.hz-faq-item summary:hover { | |
| 747 | + color: var(--brand-ink); | |
| 748 | +} | |
| 749 | +.hz-faq-item svg { | |
| 750 | + width: 16px; | |
| 751 | + height: 16px; | |
| 752 | + color: var(--muted); | |
| 753 | + transition: transform 200ms var(--ease); | |
| 754 | +} | |
| 755 | +.hz-faq-item[open] svg { | |
| 756 | + transform: rotate(90deg); | |
| 757 | + color: var(--brand); | |
| 758 | +} | |
| 759 | +.hz-faq-item p { | |
| 760 | + padding: 0 2px 22px; | |
| 761 | + max-width: 76ch; | |
| 762 | + font-size: 1rem; | |
| 763 | + color: var(--muted); | |
| 764 | +} | |
| 765 | + | |
| 766 | +/* ---- Closing panel --------------------------------------------------------- */ | |
| 767 | +.hz-cta { | |
| 768 | + display: grid; | |
| 769 | + justify-items: center; | |
| 770 | + gap: 16px; | |
| 771 | + text-align: center; | |
| 772 | + padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 56px); | |
| 773 | + border: 1px solid var(--line); | |
| 774 | + border-radius: var(--radius-xl); | |
| 775 | + background: linear-gradient(180deg, var(--brand-wash), var(--paper)); | |
| 776 | +} | |
| 777 | +.hz-cta .hz-h2 { | |
| 778 | + max-width: 24ch; | |
| 779 | +} | |
| 780 | +.hz-cta p { | |
| 781 | + max-width: 54ch; | |
| 782 | + color: var(--muted); | |
| 783 | +} | |
| 784 | +.hz-cta-mail { | |
| 785 | + font-family: var(--font-mono); | |
| 786 | + font-size: 0.9375rem; | |
| 787 | + color: var(--brand-ink); | |
| 788 | +} | |
| 789 | + | |
| 790 | +/* ---- Footer ---------------------------------------------------------------- */ | |
| 791 | +.hz-footer { | |
| 792 | + border-top: 1px solid var(--line); | |
| 793 | + background: var(--paper); | |
| 794 | + padding: 56px var(--gutter) 28px; | |
| 795 | +} | |
| 796 | +.hz-footer-inner { | |
| 797 | + max-width: var(--measure); | |
| 798 | + margin-inline: auto; | |
| 799 | +} | |
| 800 | +.hz-footer-cols { | |
| 801 | + display: grid; | |
| 802 | + grid-template-columns: 1.6fr repeat(3, 1fr); | |
| 803 | + gap: 32px; | |
| 804 | +} | |
| 805 | +.hz-footer h4 { | |
| 806 | + font-size: 0.875rem; | |
| 807 | + font-weight: 600; | |
| 808 | + color: var(--ink); | |
| 809 | +} | |
| 810 | +.hz-footer ul { | |
| 811 | + display: grid; | |
| 812 | + gap: 9px; | |
| 813 | + margin-top: 14px; | |
| 814 | +} | |
| 815 | +.hz-footer li a { | |
| 816 | + font-size: 0.9375rem; | |
| 817 | + color: var(--muted); | |
| 818 | + transition: color var(--quick); | |
| 819 | +} | |
| 820 | +.hz-footer li a:hover { | |
| 821 | + color: var(--brand-ink); | |
| 822 | +} | |
| 823 | +.hz-footer-legal { | |
| 824 | + display: flex; | |
| 825 | + flex-wrap: wrap; | |
| 826 | + align-items: center; | |
| 827 | + justify-content: space-between; | |
| 828 | + gap: 12px; | |
| 829 | + margin-top: 44px; | |
| 830 | + padding-top: 20px; | |
| 831 | + border-top: 1px solid var(--line); | |
| 832 | + font-size: 0.875rem; | |
| 833 | + color: var(--faint); | |
| 834 | +} | |
| 835 | +.hz-social { | |
| 836 | + display: inline-flex; | |
| 837 | + align-items: center; | |
| 838 | + justify-content: center; | |
| 839 | + width: 34px; | |
| 840 | + height: 34px; | |
| 841 | + border: 1px solid var(--line); | |
| 842 | + border-radius: var(--radius); | |
| 843 | + color: var(--muted); | |
| 844 | + transition: color var(--quick), border-color var(--quick), transform 200ms var(--ease); | |
| 845 | +} | |
| 846 | +.hz-social:hover { | |
| 847 | + color: var(--brand-ink); | |
| 848 | + border-color: var(--line-strong); | |
| 849 | + transform: translateY(-1px); | |
| 850 | +} | |
| 851 | + | |
| 852 | +/* ---- 404 ------------------------------------------------------------------- */ | |
| 853 | +.hz-404 { | |
| 854 | + display: grid; | |
| 855 | + justify-items: center; | |
| 856 | + align-content: center; | |
| 857 | + gap: 14px; | |
| 858 | + min-height: 62vh; | |
| 859 | + padding: 72px var(--gutter); | |
| 860 | + text-align: center; | |
| 861 | +} | |
| 862 | +.hz-404 svg { | |
| 863 | + width: 88px; | |
| 864 | + color: var(--line-strong); | |
| 865 | +} | |
| 866 | + | |
| 867 | +/* ---- Scroll-triggered entrance -------------------------------------------- | |
| 868 | + Blocks rise once on entry with a per-card stagger. `is-armed` is only ever | |
| 869 | + set on the client, so server markup is never hidden by a script that has | |
| 870 | + not run. */ | |
| 871 | +.hz-reveal.is-armed { | |
| 872 | + opacity: 0; | |
| 873 | + transform: translateY(18px); | |
| 874 | +} | |
| 875 | +.hz-reveal.is-in { | |
| 876 | + opacity: 1; | |
| 877 | + transform: none; | |
| 878 | + transition: | |
| 879 | + opacity 0.6s ease, | |
| 880 | + transform 0.6s var(--ease); | |
| 881 | + transition-delay: calc(var(--i, 0) * 70ms); | |
| 882 | +} | |
| 883 | +.hz-grid > .hz-reveal, | |
| 884 | +.hz-steps > .hz-reveal { | |
| 885 | + display: grid; | |
| 886 | +} | |
| 887 | + | |
| 888 | +@media (prefers-reduced-motion: reduce) { | |
| 889 | + .hz-reveal.is-armed { | |
| 890 | + opacity: 1; | |
| 891 | + transform: none; | |
| 892 | + } | |
| 893 | + .hz-btn:hover svg { | |
| 894 | + transform: none; | |
| 895 | + } | |
| 896 | +} | |
| 897 | + | |
| 898 | +/* ---- Responsive ------------------------------------------------------------ */ | |
| 899 | +@media (max-width: 1024px) { | |
| 900 | + :root { | |
| 901 | + --section-y: 72px; | |
| 902 | + } | |
| 903 | + .hz-grid, | |
| 904 | + .hz-grid-3, | |
| 905 | + .hz-steps { | |
| 906 | + grid-template-columns: repeat(2, 1fr); | |
| 907 | + } | |
| 908 | + .hz-feature, | |
| 909 | + .hz-facts, | |
| 910 | + .hz-footer-cols { | |
| 911 | + grid-template-columns: 1fr; | |
| 912 | + } | |
| 913 | + /* With one column the drawing follows the copy on every row, flipped or | |
| 914 | + not: alternating sides only means something side by side. */ | |
| 915 | + .hz-feature-flip .hz-feature-art { | |
| 916 | + order: 0; | |
| 917 | + } | |
| 918 | + .hz-builder { | |
| 919 | + padding-left: 0; | |
| 920 | + padding-top: 20px; | |
| 921 | + border-left: 0; | |
| 922 | + border-top: 1px solid var(--line); | |
| 923 | + } | |
| 924 | +} | |
| 925 | + | |
| 926 | +@media (max-width: 640px) { | |
| 927 | + body { | |
| 928 | + font-size: 16px; | |
| 929 | + } | |
| 930 | + .hz-grid, | |
| 931 | + .hz-grid-2, | |
| 932 | + .hz-grid-3, | |
| 933 | + .hz-steps { | |
| 934 | + grid-template-columns: 1fr; | |
| 935 | + } | |
| 936 | + .hz-roles { | |
| 937 | + grid-template-columns: repeat(2, 1fr); | |
| 938 | + } | |
| 939 | + .hz-roles span:nth-child(n + 3) { | |
| 940 | + border-top: 1px solid var(--line); | |
| 941 | + } | |
| 942 | + .hz-roles span:nth-child(3) { | |
| 943 | + border-left: 0; | |
| 944 | + } | |
| 945 | + .hz-hero-actions .hz-btn { | |
| 946 | + width: 100%; | |
| 947 | + justify-content: center; | |
| 948 | + } | |
| 949 | +} |
src/components/Logo.tsxadded+55 -0
| @@ -0,0 +1,55 @@ | ||
| 1 | +import { A } from "@solidjs/router"; | |
| 2 | +import { Show } from "solid-js"; | |
| 3 | +import { routes, site } from "~/config"; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * The brand mark: a wing drawn in pixels, climbing to the right — Hezarfen | |
| 7 | + * Ahmed Çelebi's flight, and the shape a student's data takes once it becomes | |
| 8 | + * a plan. The leading edge is the accent; the trailing feathers are the ink | |
| 9 | + * of whatever surface the mark sits on, at low alpha. | |
| 10 | + * | |
| 11 | + * Below ~24px the trailing cells close up into a smudge, so those sizes drop | |
| 12 | + * to the reduced cut the favicon uses: leading edge only. | |
| 13 | + */ | |
| 14 | +export function LogoMark(props: { size?: number; class?: string }) { | |
| 15 | + const size = () => props.size ?? 26; | |
| 16 | + const compact = () => size() < 24; | |
| 17 | + | |
| 18 | + return ( | |
| 19 | + <svg | |
| 20 | + width={size()} | |
| 21 | + height={size()} | |
| 22 | + viewBox="0 0 256 256" | |
| 23 | + fill="none" | |
| 24 | + aria-hidden="true" | |
| 25 | + shape-rendering="crispEdges" | |
| 26 | + class={props.class} | |
| 27 | + > | |
| 28 | + <g fill="var(--brand, #00add8)"> | |
| 29 | + <rect x="30" y="166" width="44" height="44" rx="6" /> | |
| 30 | + <rect x="86" y="122" width="44" height="44" rx="6" /> | |
| 31 | + <rect x="142" y="78" width="44" height="44" rx="6" /> | |
| 32 | + <rect x="198" y="34" width="44" height="44" rx="6" /> | |
| 33 | + </g> | |
| 34 | + | |
| 35 | + <Show when={!compact()}> | |
| 36 | + <g fill="currentColor" opacity="0.22"> | |
| 37 | + <rect x="86" y="178" width="44" height="32" rx="6" /> | |
| 38 | + <rect x="142" y="134" width="44" height="32" rx="6" /> | |
| 39 | + <rect x="142" y="178" width="44" height="32" rx="6" /> | |
| 40 | + <rect x="198" y="90" width="44" height="32" rx="6" /> | |
| 41 | + <rect x="198" y="134" width="44" height="32" rx="6" /> | |
| 42 | + </g> | |
| 43 | + </Show> | |
| 44 | + </svg> | |
| 45 | + ); | |
| 46 | +} | |
| 47 | + | |
| 48 | +export default function Logo(props: { size?: number }) { | |
| 49 | + return ( | |
| 50 | + <A href={routes.home} aria-label={site.name} class="hz-logo"> | |
| 51 | + <LogoMark size={props.size} /> | |
| 52 | + <span>Hezarfen</span> | |
| 53 | + </A> | |
| 54 | + ); | |
| 55 | +} |
src/components/Reveal.tsxadded+43 -0
| @@ -0,0 +1,43 @@ | ||
| 1 | +import { createSignal, onCleanup, onMount, type JSX } from "solid-js"; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Scroll-triggered entrance. `armed` is only ever set on the client, so the | |
| 5 | + * server-rendered markup stays readable when the script never arrives, and | |
| 6 | + * `shown` latches the first time the block enters the viewport. `--i` | |
| 7 | + * staggers siblings sharing one grid. | |
| 8 | + */ | |
| 9 | +export default function Reveal(props: { | |
| 10 | + index?: number; | |
| 11 | + class?: string; | |
| 12 | + children: JSX.Element; | |
| 13 | +}) { | |
| 14 | + const [armed, setArmed] = createSignal(false); | |
| 15 | + const [shown, setShown] = createSignal(false); | |
| 16 | + let el!: HTMLDivElement; | |
| 17 | + | |
| 18 | + onMount(() => { | |
| 19 | + if (!("IntersectionObserver" in window)) return; | |
| 20 | + setArmed(true); | |
| 21 | + const observer = new IntersectionObserver( | |
| 22 | + entries => { | |
| 23 | + if (!entries.some(entry => entry.isIntersecting)) return; | |
| 24 | + setShown(true); | |
| 25 | + observer.disconnect(); | |
| 26 | + }, | |
| 27 | + { threshold: 0.12, rootMargin: "0px 0px -6% 0px" }, | |
| 28 | + ); | |
| 29 | + observer.observe(el); | |
| 30 | + onCleanup(() => observer.disconnect()); | |
| 31 | + }); | |
| 32 | + | |
| 33 | + return ( | |
| 34 | + <div | |
| 35 | + ref={el} | |
| 36 | + class={`hz-reveal ${props.class ?? ""}`} | |
| 37 | + classList={{ "is-armed": armed(), "is-in": shown() }} | |
| 38 | + style={{ "--i": String(props.index ?? 0) }} | |
| 39 | + > | |
| 40 | + {props.children} | |
| 41 | + </div> | |
| 42 | + ); | |
| 43 | +} |
src/components/SectionHeader.tsxadded+29 -0
| @@ -0,0 +1,29 @@ | ||
| 1 | +import { Show } from "solid-js"; | |
| 2 | +import Reveal from "./Reveal"; | |
| 3 | + | |
| 4 | +/** | |
| 5 | + * Every band opens with one of these: a small label, a statement, and the | |
| 6 | + * sentence that qualifies it. Keeping them identical is what makes the page | |
| 7 | + * read as one document rather than a pile of sections. | |
| 8 | + */ | |
| 9 | +export default function SectionHeader(props: { | |
| 10 | + label?: string; | |
| 11 | + title: string; | |
| 12 | + description?: string; | |
| 13 | + /** Centred for bands whose content is centred too. */ | |
| 14 | + center?: boolean; | |
| 15 | +}) { | |
| 16 | + return ( | |
| 17 | + <Reveal> | |
| 18 | + <div class="hz-sechead" classList={{ "hz-sechead-center": props.center }}> | |
| 19 | + <Show when={props.label}> | |
| 20 | + <span class="hz-label">{props.label}</span> | |
| 21 | + </Show> | |
| 22 | + <h2 class="hz-h2">{props.title}</h2> | |
| 23 | + <Show when={props.description}> | |
| 24 | + <p class="hz-lead">{props.description}</p> | |
| 25 | + </Show> | |
| 26 | + </div> | |
| 27 | + </Reveal> | |
| 28 | + ); | |
| 29 | +} |
src/components/icons/pixel.tsxadded+606 -0
| @@ -0,0 +1,606 @@ | ||
| 1 | +/** | |
| 2 | + * Pixel icons, inlined from Pixelarticons (https://pixelarticons.com) | |
| 3 | + * by Gerrit Halfmann — MIT licensed, 24x24 grid, `fill="currentColor"`. | |
| 4 | + * | |
| 5 | + * Only the glyphs this page needs are vendored here, rather than pulling in a | |
| 6 | + * 1000-icon package for a dozen of them; add more by pasting the `<path>` | |
| 7 | + * data from `svg/<name>.svg` upstream. Keep `shape-rendering="crispEdges"` | |
| 8 | + * so the pixels stay hard at any size, and prefer multiples of 24px where | |
| 9 | + * the layout allows it. | |
| 10 | + */ | |
| 11 | +type IconProps = { class?: string }; | |
| 12 | + | |
| 13 | +function Pixel(props: IconProps & { d: string[] }) { | |
| 14 | + return ( | |
| 15 | + <svg | |
| 16 | + viewBox="0 0 24 24" | |
| 17 | + fill="currentColor" | |
| 18 | + shape-rendering="crispEdges" | |
| 19 | + aria-hidden="true" | |
| 20 | + class={props.class} | |
| 21 | + > | |
| 22 | + {props.d.map(path => ( | |
| 23 | + <path d={path} /> | |
| 24 | + ))} | |
| 25 | + </svg> | |
| 26 | + ); | |
| 27 | +} | |
| 28 | + | |
| 29 | +export function PixelCpu(props: IconProps) { | |
| 30 | + return ( | |
| 31 | + <Pixel | |
| 32 | + class={props.class} | |
| 33 | + d={[ | |
| 34 | + "M5 3h14v2H5zm0 16h14v2H5zM3 5h2v14H3zm16 0h2v14h-2zM9 7h6v2H9zm0 8h6v2H9zM7 9h2v6H7zm8 0h2v6h-2zm-4-8h2v2h-2zm0 20h2v2h-2zM1 11h2v2H1zm20 0h2v2h-2zm0-4h2v2h-2zm0 8h2v2h-2zM1 15h2v2H1zm0-8h2v2H1zm6-6h2v2H7zm8 0h2v2h-2zm0 20h2v2h-2zm-8 0h2v2H7z", | |
| 35 | + ]} | |
| 36 | + /> | |
| 37 | + ); | |
| 38 | +} | |
| 39 | + | |
| 40 | +export function PixelDatabase(props: IconProps) { | |
| 41 | + return ( | |
| 42 | + <Pixel | |
| 43 | + class={props.class} | |
| 44 | + d={[ | |
| 45 | + "M2 6h2v4H2zm0 4h2v4H2zm0 4h2v4H2zm18-8h2v4h-2zm0 4h2v4h-2zm0 4h2v4h-2zM4 4h4v2H4zm0 8h4v-2H4zm0 4h4v-2H4zm0 4h4v-2H4zM16 4h4v2h-4zm0 8h4v-2h-4zm0 4h4v-2h-4zm0 4h4v-2h-4zM8 2h8v2H8zm0 12h8v-2H8zm0 4h8v-2H8zm0 4h8v-2H8z", | |
| 46 | + ]} | |
| 47 | + /> | |
| 48 | + ); | |
| 49 | +} | |
| 50 | + | |
| 51 | +export function PixelShield(props: IconProps) { | |
| 52 | + return ( | |
| 53 | + <Pixel | |
| 54 | + class={props.class} | |
| 55 | + d={[ | |
| 56 | + "M4 2h16v2H4zM2 4h2v10H2zm18 0h2v10h-2zM4 14h2v2H4zm2 2h2v2H6zm4 4h4v2h-4zm10-6h-2v2h2zm-2 2h-2v2h2zm-2 2h-2v2h2zm-6 0H8v2h2z", | |
| 57 | + ]} | |
| 58 | + /> | |
| 59 | + ); | |
| 60 | +} | |
| 61 | + | |
| 62 | +export function PixelCheck(props: IconProps) { | |
| 63 | + return ( | |
| 64 | + <Pixel | |
| 65 | + class={props.class} | |
| 66 | + d={[ | |
| 67 | + "M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z", | |
| 68 | + ]} | |
| 69 | + /> | |
| 70 | + ); | |
| 71 | +} | |
| 72 | + | |
| 73 | +export function PixelArrowRight(props: IconProps) { | |
| 74 | + return ( | |
| 75 | + <Pixel | |
| 76 | + class={props.class} | |
| 77 | + d={[ | |
| 78 | + "M4 11v2h16v-2zm12 2v2h2v-2zm-2 2v2h2v-2zm-2 2v2h2v-2zm4-6V9h2v2z", | |
| 79 | + "M14 15V7h2v8zm-2 2V5h2v12z", | |
| 80 | + ]} | |
| 81 | + /> | |
| 82 | + ); | |
| 83 | +} | |
| 84 | + | |
| 85 | +export function PixelArrowUp(props: IconProps) { | |
| 86 | + return ( | |
| 87 | + <Pixel | |
| 88 | + class={props.class} | |
| 89 | + d={[ | |
| 90 | + "M11 20h2V4h-2zm2-12h2V6h-2zm2 2h2V8h-2zm2 2h2v-2h-2zm-6-4H9V6h2z", | |
| 91 | + "M15 10H7V8h8zm2 2H5v-2h12z", | |
| 92 | + ]} | |
| 93 | + /> | |
| 94 | + ); | |
| 95 | +} | |
| 96 | + | |
| 97 | +/** Diagonal "open" arrow for cards and external links. */ | |
| 98 | +export function PixelCornerUpRight(props: IconProps) { | |
| 99 | + return ( | |
| 100 | + <Pixel | |
| 101 | + class={props.class} | |
| 102 | + d={[ | |
| 103 | + "M6 8h14v2H6zm-2 2h2v10H4zm12 4h-2v-2h2zm2-2h-2v-2h2zm0-4h-2V6h2z", | |
| 104 | + "M16 12h-2V4h2z", | |
| 105 | + ]} | |
| 106 | + /> | |
| 107 | + ); | |
| 108 | +} | |
| 109 | + | |
| 110 | +export function PixelCloud(props: IconProps) { | |
| 111 | + return ( | |
| 112 | + <Pixel | |
| 113 | + class={props.class} | |
| 114 | + d={[ | |
| 115 | + "M22 10h-4v2h4v-2Zm2 2h-2v6h2v-6Zm-2 6H2v2h20v-2ZM2 12H0v6h2v-6Zm2-2H2v2h2v-2Zm4-2H4v2h4V8Zm8-4h-6v2h6V4Zm-6 2H8v2h2V6Zm0 4H8v2h2v-2Zm8-4h-2v2h2V6Z", | |
| 116 | + "M20 8h-2v4h2V8Zm-2 4h-2v2h2v-2Z", | |
| 117 | + ]} | |
| 118 | + /> | |
| 119 | + ); | |
| 120 | +} | |
| 121 | + | |
| 122 | +export function PixelServer(props: IconProps) { | |
| 123 | + return ( | |
| 124 | + <Pixel | |
| 125 | + class={props.class} | |
| 126 | + d={[ | |
| 127 | + "M6 7h4v2H6zm0 8h4v2H6zM2 5h2v14H2zm18 0h2v14h-2zM4 19h16v2H4zM4 3h16v2H4zm0 8h16v2H4z", | |
| 128 | + ]} | |
| 129 | + /> | |
| 130 | + ); | |
| 131 | +} | |
| 132 | + | |
| 133 | +export function PixelMonitor(props: IconProps) { | |
| 134 | + return ( | |
| 135 | + <Pixel | |
| 136 | + class={props.class} | |
| 137 | + d={[ | |
| 138 | + "M4 2h16v2H4zm0 14h16v2H4zM2 4h2v12H2zm18 0h2v12h-2zm-9 14h2v2h-2zm-3 2h8v2H8z", | |
| 139 | + ]} | |
| 140 | + /> | |
| 141 | + ); | |
| 142 | +} | |
| 143 | + | |
| 144 | +export function PixelCoffee(props: IconProps) { | |
| 145 | + return ( | |
| 146 | + <Pixel | |
| 147 | + class={props.class} | |
| 148 | + d={[ | |
| 149 | + "M4 4h16v2H4zm0 2h2v8H4zm2 8h10v2H6zm14-8h2v4h-2zm-2 4h2v2h-2zm-2-4h2v8h-2zM2 18h18v2H2z", | |
| 150 | + ]} | |
| 151 | + /> | |
| 152 | + ); | |
| 153 | +} | |
| 154 | +export function PixelBookOpen(props: IconProps) { | |
| 155 | + return ( | |
| 156 | + <Pixel | |
| 157 | + class={props.class} | |
| 158 | + d={[ | |
| 159 | + "M2 3h9v2H2zM0 19h11v2H0zM13 3h9v2h-9zm0 16h11v2H13zM11 5h2v18h-2zM0 5h2v14H0zm22 0h2v14h-2zm-7 2h5v2h-5zm0 4h5v2h-5zm0 4h2v2h-2z", | |
| 160 | + ]} | |
| 161 | + /> | |
| 162 | + ); | |
| 163 | +} | |
| 164 | +export function PixelSmartphone(props: IconProps) { | |
| 165 | + return ( | |
| 166 | + <Pixel | |
| 167 | + class={props.class} | |
| 168 | + d={["M6 2h12v2H6zm0 18h12v2H6zM4 4h2v16H4zm14 0h2v16h-2zm-7 13h2v2h-2z"]} | |
| 169 | + /> | |
| 170 | + ); | |
| 171 | +} | |
| 172 | +export function PixelCode(props: IconProps) { | |
| 173 | + return ( | |
| 174 | + <Pixel | |
| 175 | + class={props.class} | |
| 176 | + d={[ | |
| 177 | + "M11 18H9v-4h2v4Zm-4-1H5v-2h2v2Zm12-2v2h-2v-2h2ZM5 15H3v-2h2v2Zm16 0h-2v-2h2v2Zm-8-1h-2v-4h2v4ZM3 13H1v-2h2v2Zm20 0h-2v-2h2v2ZM5 11H3V9h2v2Zm16 0h-2V9h2v2Zm-6-1h-2V6h2v4ZM7 9H5V7h2v2Zm12 0h-2V7h2v2Z", | |
| 178 | + ]} | |
| 179 | + /> | |
| 180 | + ); | |
| 181 | +} | |
| 182 | + | |
| 183 | +export function PixelUsers(props: IconProps) { | |
| 184 | + return ( | |
| 185 | + <Pixel | |
| 186 | + class={props.class} | |
| 187 | + d={[ | |
| 188 | + "M5 2h6v2H5zm10 0h4v2h-4zM5 10h6v2H5zm10 0h4v2h-4zm4-6h2v6h-2zm-8 0h2v6h-2zM3 4h2v6H3zM0 18h2v4H0zm14 0h2v4h-2zm8 0h2v4h-2zM4 14h8v2H4zm12 0h4v2h-4zM2 16h2v2H2zm10 0h2v2h-2zm8 0h2v2h-2z", | |
| 189 | + ]} | |
| 190 | + /> | |
| 191 | + ); | |
| 192 | +} | |
| 193 | + | |
| 194 | +export function PixelLayout(props: IconProps) { | |
| 195 | + return ( | |
| 196 | + <Pixel | |
| 197 | + class={props.class} | |
| 198 | + d={[ | |
| 199 | + "M20 20H4v-2h4v-8H4v8H2V6h2v2h16V6h2v12h-2v-8H10v8h10v2Zm0-14H4V4h16v2Z", | |
| 200 | + ]} | |
| 201 | + /> | |
| 202 | + ); | |
| 203 | +} | |
| 204 | + | |
| 205 | +export function PixelWindowFrame(props: IconProps) { | |
| 206 | + return ( | |
| 207 | + <Pixel | |
| 208 | + class={props.class} | |
| 209 | + d={[ | |
| 210 | + "M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z", | |
| 211 | + ]} | |
| 212 | + /> | |
| 213 | + ); | |
| 214 | +} | |
| 215 | + | |
| 216 | +export function PixelZap(props: IconProps) { | |
| 217 | + return ( | |
| 218 | + <Pixel | |
| 219 | + class={props.class} | |
| 220 | + d={[ | |
| 221 | + "M4 13h8v6h2v2h-2v2h-2v-8H2v-4h2v2Zm12 6h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2v-2h2v2Zm-6-6h8v4h-2v-2h-8V5h-2V3h2V1h2v8Zm-8 2H4V9h2v2Zm2-2H6V7h2v2Zm2-2H8V5h2v2Z", | |
| 222 | + ]} | |
| 223 | + /> | |
| 224 | + ); | |
| 225 | +} | |
| 226 | + | |
| 227 | +export function PixelRobot(props: IconProps) { | |
| 228 | + return ( | |
| 229 | + <Pixel | |
| 230 | + class={props.class} | |
| 231 | + d={[ | |
| 232 | + "M5 7h14v2H5zm0 12h14v2H5zM3 9h2v10H3zm16 0h2v10h-2zM1 13h2v2H1zm20 0h2v2h-2zM11 5h2v2h-2zM7 3h4v2H7zm1 9h2v4H8zm6 0h2v4h-2z", | |
| 233 | + ]} | |
| 234 | + /> | |
| 235 | + ); | |
| 236 | +} | |
| 237 | + | |
| 238 | +export function PixelSparkles(props: IconProps) { | |
| 239 | + return ( | |
| 240 | + <Pixel | |
| 241 | + class={props.class} | |
| 242 | + d={[ | |
| 243 | + "M11 1h2v4h-2zm0 22h2v-4h-2zM9 5h2v4H9zm0 14h2v-4H9zm4-14h2v4h-2zm0 14h2v-4h-2zM5 9h4v2H5zm14 0h-4v2h4zM1 11h4v2H1zm22 0h-4v2h4zM5 13h4v2H5zm14 0h-4v2h4zm0-12h2v6h-2z", | |
| 244 | + "M17 3h6v2h-6zM3 17h2v2H3zm-2 2h2v2H1zm2 2h2v2H3zm2-2h2v2H5z", | |
| 245 | + ]} | |
| 246 | + /> | |
| 247 | + ); | |
| 248 | +} | |
| 249 | + | |
| 250 | +export function PixelBriefcase(props: IconProps) { | |
| 251 | + return ( | |
| 252 | + <Pixel | |
| 253 | + class={props.class} | |
| 254 | + d={[ | |
| 255 | + "M2 8h2v12H2zm18 0h2v12h-2zM4 6h16v2H4zm0 14h16v2H4zM8 4h2v2H8zm2-2h4v2h-4zm4 2h2v2h-2z", | |
| 256 | + ]} | |
| 257 | + /> | |
| 258 | + ); | |
| 259 | +} | |
| 260 | + | |
| 261 | +export function PixelShoppingCart(props: IconProps) { | |
| 262 | + return ( | |
| 263 | + <Pixel | |
| 264 | + class={props.class} | |
| 265 | + d={[ | |
| 266 | + "M2 2h2v2H2zm2 6h2v4H4zm2 4h2v4H6zm2 4h10v2H8zm10-4h2v4h-2zm2-4h2v4h-2zM4 6h18v2H4zm0-4h2v4H4zm2 17h3v3H6zm11 0h3v3h-3z", | |
| 267 | + ]} | |
| 268 | + /> | |
| 269 | + ); | |
| 270 | +} | |
| 271 | + | |
| 272 | +export function PixelStore(props: IconProps) { | |
| 273 | + return ( | |
| 274 | + <Pixel | |
| 275 | + class={props.class} | |
| 276 | + d={[ | |
| 277 | + "M3 13h2v8H3zm2 8h14v2H5zm14-8h2v8h-2zm-9-2h4v2h-4zm4-2h4v2h-4zm4 2h4v2h-4zM6 9h4v2H6zm-4 2h4v2H2zM0 7h2v4H0zm2-2h2v2H2zm18 0h2v2h-2zm2 2h2v4h-2zM4 3h16v2H4zm6 12h4v2h-4zm-2 2h2v4H8zm6 0h2v4h-2z", | |
| 278 | + ]} | |
| 279 | + /> | |
| 280 | + ); | |
| 281 | +} | |
| 282 | + | |
| 283 | +export function PixelNotebook(props: IconProps) { | |
| 284 | + return ( | |
| 285 | + <Pixel | |
| 286 | + class={props.class} | |
| 287 | + d={[ | |
| 288 | + "M6 2h14v2H6zm0 18h14v2H6zM20 4h2v16h-2zM4 4h2v16H4z", | |
| 289 | + "M2 7h6v2H2zm0 4h6v2H2zm0 4h6v2H2zM16 4h2v16h-2z", | |
| 290 | + ]} | |
| 291 | + /> | |
| 292 | + ); | |
| 293 | +} | |
| 294 | + | |
| 295 | +export function PixelUserPlus(props: IconProps) { | |
| 296 | + return ( | |
| 297 | + <Pixel | |
| 298 | + class={props.class} | |
| 299 | + d={[ | |
| 300 | + "M9 2h6v2H9zm0 8h6v2H9zm6-6h2v6h-2zM7 4h2v6H7zM4 18h2v4H4zm14 0h2v4h-2zM8 14h8v2H8zm-2 2h2v2H6z", | |
| 301 | + "M18 16h2v6h-2z", | |
| 302 | + "M16 18h6v2h-6z", | |
| 303 | + ]} | |
| 304 | + /> | |
| 305 | + ); | |
| 306 | +} | |
| 307 | +export function PixelMail(props: IconProps) { | |
| 308 | + return ( | |
| 309 | + <Pixel | |
| 310 | + class={props.class} | |
| 311 | + d={[ | |
| 312 | + "M6 8h2v2H6zm2 2h2v2H8zm10-2h-2v2h2zm-2 2h-2v2h2zm-6 2h4v2h-4zM2 6h2v12H2zm18 0h2v12h-2zM4 4h16v2H4zm0 14h16v2H4z", | |
| 313 | + ]} | |
| 314 | + /> | |
| 315 | + ); | |
| 316 | +} | |
| 317 | +export function PixelGlobe(props: IconProps) { | |
| 318 | + return ( | |
| 319 | + <Pixel | |
| 320 | + class={props.class} | |
| 321 | + d={[ | |
| 322 | + "M6 2h12v2H6zm0 18h12v2H6zM4 4h2v2H4zm5 0h2v2H9zm0 14h2v2H9zm4 0h2v2h-2zM7 6h2v12H7zm8 0h2v12h-2zm-2-2h2v2h-2zm7 0h-2v2h2zM2 6h2v12H2zm20 0h-2v12h2zM4 18h2v2H4zm16 0h-2v2h2z", | |
| 323 | + "M3 11h18v2H3z", | |
| 324 | + ]} | |
| 325 | + /> | |
| 326 | + ); | |
| 327 | +} | |
| 328 | +export function PixelLock(props: IconProps) { | |
| 329 | + return ( | |
| 330 | + <Pixel | |
| 331 | + class={props.class} | |
| 332 | + d={[ | |
| 333 | + "M5 8h14v2H5zm0 12h14v2H5zM3 10h2v10H3zm16 0h2v10h-2zM7 4h2v4H7zm2-2h6v2H9zm6 2h2v4h-2z", | |
| 334 | + ]} | |
| 335 | + /> | |
| 336 | + ); | |
| 337 | +} | |
| 338 | +export function PixelTerminal(props: IconProps) { | |
| 339 | + return ( | |
| 340 | + <Pixel | |
| 341 | + class={props.class} | |
| 342 | + d={[ | |
| 343 | + "M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM6 16h2v2H6zm2-2h2v2H8zm-2-2h2v2H6z", | |
| 344 | + ]} | |
| 345 | + /> | |
| 346 | + ); | |
| 347 | +} | |
| 348 | +export function PixelClose(props: IconProps) { | |
| 349 | + return ( | |
| 350 | + <Pixel | |
| 351 | + class={props.class} | |
| 352 | + d={[ | |
| 353 | + "M7 19H5V17H7V19ZM19 19H17V17H19V19ZM9 15V17H7V15H9ZM17 17H15V15H17V17ZM11 15H9V13H11V15ZM15 15H13V13H15V15ZM13 13H11V11H13V13ZM11 11H9V9H11V11ZM15 11H13V9H15V11ZM9 9H7V7H9V9ZM17 9H15V7H17V9ZM7 7H5V5H7V7ZM19 7H17V5H19V7Z", | |
| 354 | + ]} | |
| 355 | + /> | |
| 356 | + ); | |
| 357 | +} | |
| 358 | +export function PixelSun(props: IconProps) { | |
| 359 | + return ( | |
| 360 | + <Pixel | |
| 361 | + class={props.class} | |
| 362 | + d={[ | |
| 363 | + "M13 22h-2v-3h2v3Zm-6-3H5v-2h2v2Zm12 0h-2v-2h2v2Zm-4-2H9v-2h6v2Zm-6-2H7V9h2v6Zm8 0h-2V9h2v6ZM5 13H2v-2h3v2Zm17 0h-3v-2h3v2Zm-7-4H9V7h6v2ZM7 7H5V5h2v2Zm12 0h-2V5h2v2Zm-6-2h-2V2h2v3Z", | |
| 364 | + ]} | |
| 365 | + /> | |
| 366 | + ); | |
| 367 | +} | |
| 368 | +export function PixelMoon(props: IconProps) { | |
| 369 | + return ( | |
| 370 | + <Pixel | |
| 371 | + class={props.class} | |
| 372 | + d={[ | |
| 373 | + "M18 22H8v-2h10v2ZM8 20H6v-2h2v2Zm12 0h-2v-2h2v2ZM6 18H4v-2h2v2Zm16 0h-2v-4h-2v-2h2v-2h2v8ZM4 16H2V6h2v10Zm14 0h-6v-2h6v2Zm-6-2h-2v-2h2v2Zm-2-2H8V6h2v6ZM6 6H4V4h2v2Zm8-2h-2v2h-2V4H6V2h8v2Z", | |
| 374 | + ]} | |
| 375 | + /> | |
| 376 | + ); | |
| 377 | +} | |
| 378 | +export function PixelHome(props: IconProps) { | |
| 379 | + return ( | |
| 380 | + <Pixel | |
| 381 | + class={props.class} | |
| 382 | + d={[ | |
| 383 | + "M4 20h16v2H4zm16-10h2v10h-2zM2 10h2v10H2zm2-2h2v2H4zm2-2h2v2H6zm2-2h2v2H8zm2-2h4v2h-4zm4 2h2v2h-2zm2 2h2v2h-2zm2 2h2v2h-2zM8 14h2v6H8zm2-2h4v2h-4zm4 2h2v6h-2z", | |
| 384 | + ]} | |
| 385 | + /> | |
| 386 | + ); | |
| 387 | +} | |
| 388 | +export function PixelArrowLeft(props: IconProps) { | |
| 389 | + return ( | |
| 390 | + <Pixel | |
| 391 | + class={props.class} | |
| 392 | + d={[ | |
| 393 | + "M20 11v2H4v-2zM8 13v2H6v-2zm2 2v2H8v-2zm2 2v2h-2v-2zm-4-6V9H6v2z", | |
| 394 | + "M10 15V7H8v8zm2 2V5h-2v12z", | |
| 395 | + ]} | |
| 396 | + /> | |
| 397 | + ); | |
| 398 | +} | |
| 399 | +export function PixelCalendar(props: IconProps) { | |
| 400 | + return ( | |
| 401 | + <Pixel | |
| 402 | + class={props.class} | |
| 403 | + d={[ | |
| 404 | + "M5 4h14v2H5zm0 16h14v2H5zM3 10h2v10H3zm0-4h2v2H3zm16 0h2v2h-2zm0 4h2v10h-2zM3 8h18v2H3zm12-6h2v2h-2zM7 2h2v2H7z", | |
| 405 | + ]} | |
| 406 | + /> | |
| 407 | + ); | |
| 408 | +} | |
| 409 | +export function PixelClock(props: IconProps) { | |
| 410 | + return ( | |
| 411 | + <Pixel | |
| 412 | + class={props.class} | |
| 413 | + d={[ | |
| 414 | + "M6 2h12v2H6zM2 6h2v12H2zm18 0h2v12h-2zm-2-2h2v2h-2zM4 4h2v2H4zm2 18h12v-2H6zm12-2h2v-2h-2zM4 20h2v-2H4zm7-14h2v7h-2zm2 7h2v2h-2zm2 2h2v2h-2z", | |
| 415 | + ]} | |
| 416 | + /> | |
| 417 | + ); | |
| 418 | +} | |
| 419 | +export function PixelExternalLink(props: IconProps) { | |
| 420 | + return ( | |
| 421 | + <Pixel | |
| 422 | + class={props.class} | |
| 423 | + d={[ | |
| 424 | + "M11 5H5v2h6V5ZM5 7H3v12h2V7Zm12 12H5v2h12v-2Zm2-6h-2v6h2v-6Zm-8 0H9v2h2v-2Zm2-2h-2v2h2v-2Zm2-2h-2v2h2V9Zm2-2h-2v2h2V7Zm2-2h-2v2h2V5Zm2-2h-2v8h2V3Z", | |
| 425 | + "M21 3h-8v2h8V3Z", | |
| 426 | + ]} | |
| 427 | + /> | |
| 428 | + ); | |
| 429 | +} | |
| 430 | +export function PixelCircleInfo(props: IconProps) { | |
| 431 | + return ( | |
| 432 | + <Pixel | |
| 433 | + class={props.class} | |
| 434 | + d={[ | |
| 435 | + "M18 22H6V20H18V22ZM6 20H4V18H6V20ZM20 20H18V18H20V20ZM4 18H2V6H4V18ZM22 18H20V6H22V18ZM13 17H11V11H13V17ZM13 9H11V7H13V9ZM6 6H4V4H6V6ZM20 6H18V4H20V6ZM18 4H6V2H18V4Z", | |
| 436 | + ]} | |
| 437 | + /> | |
| 438 | + ); | |
| 439 | +} | |
| 440 | +export function PixelMenu(props: IconProps) { | |
| 441 | + return ( | |
| 442 | + <Pixel | |
| 443 | + class={props.class} | |
| 444 | + d={[ | |
| 445 | + "M20 18H4v-2h16v2Zm0-5H4v-2h16v2Zm0-5H4V6h16v2Z", | |
| 446 | + ]} | |
| 447 | + /> | |
| 448 | + ); | |
| 449 | +} | |
| 450 | +export function PixelFileText(props: IconProps) { | |
| 451 | + return ( | |
| 452 | + <Pixel | |
| 453 | + class={props.class} | |
| 454 | + d={[ | |
| 455 | + "M6 4H4v16h2zm10-2H6v2h10zm4 4h-2v14h2zm-2 14H6v2h12zM16 4h2v2h-2zm-4 0h2v6h-2z", | |
| 456 | + "M12 8h6v2h-6zm-4 8h8v2H8zm0-4h8v2H8zm0-4h2v2H8z", | |
| 457 | + ]} | |
| 458 | + /> | |
| 459 | + ); | |
| 460 | +} | |
| 461 | +export function PixelUser(props: IconProps) { | |
| 462 | + return ( | |
| 463 | + <Pixel | |
| 464 | + class={props.class} | |
| 465 | + d={[ | |
| 466 | + "M9 2h6v2H9zm0 8h6v2H9zm6-6h2v6h-2zM7 4h2v6H7zM4 18h2v4H4zm14 0h2v4h-2zM8 14h8v2H8zm-2 2h2v2H6zm10 0h2v2h-2z", | |
| 467 | + ]} | |
| 468 | + /> | |
| 469 | + ); | |
| 470 | +} | |
| 471 | +export function PixelImage(props: IconProps) { | |
| 472 | + return ( | |
| 473 | + <Pixel | |
| 474 | + class={props.class} | |
| 475 | + d={[ | |
| 476 | + "M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-4 8h2v2h-2zm-2 2h2v2h-2zm4 0h2v2h-2zm-8 0h2v2h-2zm2 2h2v2h-2zm2 2h2v2h-2z", | |
| 477 | + "M20 16h2v2h-2zM8 16h2v2H8zm-2 2h2v2H6zM8 6h2v2H8zM6 8h2v2H6zm2 2h2v2H8zm2-2h2v2h-2z", | |
| 478 | + ]} | |
| 479 | + /> | |
| 480 | + ); | |
| 481 | +} | |
| 482 | +export function PixelSend(props: IconProps) { | |
| 483 | + return ( | |
| 484 | + <Pixel | |
| 485 | + class={props.class} | |
| 486 | + d={[ | |
| 487 | + "M4 19h4v2H2v-8h2v6Zm8 0H8v-2h4v2Zm4-2h-4v-2h4v2Zm4-2h-4v-2h4v2Zm-10-2H4v-2h6v2Zm12 0h-2v-2h2v2ZM8 5H4v6H2V3h6v2Zm12 6h-4V9h4v2Zm-4-2h-4V7h4v2Zm-4-2H8V5h4v2Z", | |
| 488 | + ]} | |
| 489 | + /> | |
| 490 | + ); | |
| 491 | +} | |
| 492 | +export function PixelArrowDown(props: IconProps) { | |
| 493 | + return ( | |
| 494 | + <Pixel | |
| 495 | + class={props.class} | |
| 496 | + d={[ | |
| 497 | + "M13 12h6v2h-2v2h-2v2h-2v2h-2v-2H9v-2H7v-2H5v-2h6V4h2v8Z", | |
| 498 | + ]} | |
| 499 | + /> | |
| 500 | + ); | |
| 501 | +} | |
| 502 | + | |
| 503 | +/* The two below are not from Pixelarticons: they are brand marks redrawn by | |
| 504 | + hand on the same 24x24 grid so the walker crew's mascots keep the pixel | |
| 505 | + voice — Claude's starburst as eight rays meeting a solid hub, and OpenAI's | |
| 506 | + knot as its silhouette, a hexagonal ring around a hexagonal void. The knot's | |
| 507 | + interlace itself is hopeless at fifteen pixels: every version with spokes | |
| 508 | + read as a compass needle. */ | |
| 509 | +export function PixelClaudeMark(props: IconProps) { | |
| 510 | + return ( | |
| 511 | + <Pixel | |
| 512 | + class={props.class} | |
| 513 | + d={[ | |
| 514 | + "M11 3h2v18h-2zM3 11h18v2H3z", | |
| 515 | + "M5 5h2v2H5zm2 2h2v2H7zm2 2h2v2H9zM17 5h2v2h-2zm-2 2h2v2h-2zm-2 2h2v2h-2zM5 17h2v2H5zm2-2h2v2H7zm2-2h2v2H9zm8 4h2v2h-2zm-2-2h2v2h-2zm-2-2h2v2h-2z", | |
| 516 | + ]} | |
| 517 | + /> | |
| 518 | + ); | |
| 519 | +} | |
| 520 | +export function PixelOpenAiMark(props: IconProps) { | |
| 521 | + return ( | |
| 522 | + <Pixel | |
| 523 | + class={props.class} | |
| 524 | + d={[ | |
| 525 | + "M9 3h6v2H9zM6 5h5v2H6zm7 0h5v2h-5zM4 7h5v2H4zm11 0h5v2h-5zM2 9h5v6H2zm15 0h5v6h-5zM4 15h5v2H4zm11 0h5v2h-5zM6 17h5v2H6zm7 0h5v2h-5zM9 19h6v2H9z", | |
| 526 | + ]} | |
| 527 | + /> | |
| 528 | + ); | |
| 529 | +} | |
| 530 | + | |
| 531 | +/* Critter mascots, same hand-drawn grid. Solid bodies with the eyes left as | |
| 532 | + gaps: the ground shows through, which is what makes them read as faces at | |
| 533 | + fifteen pixels — a two-eyed droplet, a pincered crab, a wavy-hemmed ghost, | |
| 534 | + Ferris with her spiked shell, the bucktoothed gopher, a long-necked llama, | |
| 535 | + and Tux, whose white belly is the gap that names him. */ | |
| 536 | +export function PixelDropMascot(props: IconProps) { | |
| 537 | + return ( | |
| 538 | + <Pixel | |
| 539 | + class={props.class} | |
| 540 | + d={[ | |
| 541 | + "M11 2h2v2h-2zM9 4h6v2H9zM7 6h10v2H7zM5 8h14v4H5zM3 12h5v3H3zm7 0h4v3h-4zm6 0h5v3h-5zM3 15h18v3H3zM5 18h14v2H5zM7 20h10v2H7z", | |
| 542 | + ]} | |
| 543 | + /> | |
| 544 | + ); | |
| 545 | +} | |
| 546 | +export function PixelCrabMascot(props: IconProps) { | |
| 547 | + return ( | |
| 548 | + <Pixel | |
| 549 | + class={props.class} | |
| 550 | + d={[ | |
| 551 | + "M1 3h4v2H1zm0 2h2v3H1zm2 1h2v2H3zm16-3h4v2h-4zm2 2h2v3h-2zm-2 1h2v2h-2z", | |
| 552 | + "M5 6h14v2H5zM3 8h4v2H3zm6 0h6v2H9zm8 0h4v2h-4zM3 10h18v2H3zM5 12h14v2H5zm0 2h2v2H5zm4 0h2v2H9zm4 0h2v2h-2zm4 0h2v2h-2z", | |
| 553 | + ]} | |
| 554 | + /> | |
| 555 | + ); | |
| 556 | +} | |
| 557 | +export function PixelGhostMascot(props: IconProps) { | |
| 558 | + return ( | |
| 559 | + <Pixel | |
| 560 | + class={props.class} | |
| 561 | + d={[ | |
| 562 | + "M7 4h10v2H7zM5 6h14v2H5zm0 2h3v3H5zm5 0h4v3h-4zm6 0h3v3h-3zM5 11h14v7H5zm0 7h2v2H5zm4 0h2v2H9zm4 0h2v2h-2zm4 0h2v2h-2z", | |
| 563 | + ]} | |
| 564 | + /> | |
| 565 | + ); | |
| 566 | +} | |
| 567 | +export function PixelFerrisMascot(props: IconProps) { | |
| 568 | + return ( | |
| 569 | + <Pixel | |
| 570 | + class={props.class} | |
| 571 | + d={[ | |
| 572 | + "M5 2h2v2H5zm6 0h2v2h-2zm6 0h2v2h-2zM3 4h18v2H3zM1 6h6v3H1zm8 0h6v3H9zm8 0h6v3h-6zM1 9h22v3H1zM3 12h18v2H3zm0 2h2v2H3zm4 0h2v2H7zm8 0h2v2h-2zm4 0h2v2h-2z", | |
| 573 | + ]} | |
| 574 | + /> | |
| 575 | + ); | |
| 576 | +} | |
| 577 | +export function PixelGopherMascot(props: IconProps) { | |
| 578 | + return ( | |
| 579 | + <Pixel | |
| 580 | + class={props.class} | |
| 581 | + d={[ | |
| 582 | + "M4 2h2v2H4zm14 0h2v2h-2zM6 4h12v2H6zM4 6h3v4H4zm6 0h4v4h-4zm7 0h3v4h-3zM4 10h16v2H4zm0 2h6v2H4zm10 0h6v2h-6zM4 14h16v4H4zm2 4h12v2H6z", | |
| 583 | + ]} | |
| 584 | + /> | |
| 585 | + ); | |
| 586 | +} | |
| 587 | +export function PixelLlamaMascot(props: IconProps) { | |
| 588 | + return ( | |
| 589 | + <Pixel | |
| 590 | + class={props.class} | |
| 591 | + d={[ | |
| 592 | + "M4 2h2v2H4zm4 0h2v2H8zM3 4h8v1H3zM3 5h2v2H3zm4 0h4v2H7zM3 7h8v2H3zM7 9h4v5H7zM5 14h14v5H5zm14 0h2v2h-2zM6 19h2v3H6zm3 0h2v3H9zm5 0h2v3h-2zm3 0h2v3h-2z", | |
| 593 | + ]} | |
| 594 | + /> | |
| 595 | + ); | |
| 596 | +} | |
| 597 | +export function PixelTuxMascot(props: IconProps) { | |
| 598 | + return ( | |
| 599 | + <Pixel | |
| 600 | + class={props.class} | |
| 601 | + d={[ | |
| 602 | + "M9 2h6v1H9zM8 3h8v2H8zM8 5h1v2H8zm3 0h2v2h-2zm4 0h1v2h-1zM8 7h3v2H8zm5 0h3v2h-3zM6 9h12v1H6zm0 1h3v7H6zm9 0h3v7h-3zM6 17h12v2H6zM4 11h2v4H4zm14 0h2v4h-2zM3 19h7v2H3zm11 0h7v2h-7z", | |
| 603 | + ]} | |
| 604 | + /> | |
| 605 | + ); | |
| 606 | +} |
src/components/illustrations/edu.tsxadded+452 -0
| @@ -0,0 +1,452 @@ | ||
| 1 | +import { For } from "solid-js"; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Education illustrations, drawn on a pixel grid. | |
| 5 | + * | |
| 6 | + * Every shape is an axis-aligned rectangle on a 4-unit grid with | |
| 7 | + * `shape-rendering: crispEdges`, so the drawings match the pixel icons rather | |
| 8 | + * than sitting beside them as a second, smoother style. Structure takes | |
| 9 | + * `currentColor`; only what the drawing is *about* takes the brand, so a | |
| 10 | + * panel never turns into a block of colour. | |
| 11 | + * | |
| 12 | + * They are illustrations, not screenshots: a classroom, a marked answer | |
| 13 | + * sheet, a weekly plan, a screen being pointed at, a recorded lesson. None of | |
| 14 | + * them pretends to be the product's interface. | |
| 15 | + */ | |
| 16 | +type Props = { class?: string }; | |
| 17 | + | |
| 18 | +const brand = "var(--dz-brand, #00add8)"; | |
| 19 | +const brandDeep = "var(--dz-brand-deep, #5dc9e2)"; | |
| 20 | + | |
| 21 | +/** A 4-sided pixel border, drawn as four bars so the corners stay square. */ | |
| 22 | +function Frame(props: { x: number; y: number; w: number; h: number; t?: number; fill?: string }) { | |
| 23 | + const t = props.t ?? 4; | |
| 24 | + return ( | |
| 25 | + <g fill={props.fill ?? "currentColor"}> | |
| 26 | + <rect x={props.x} y={props.y} width={props.w} height={t} /> | |
| 27 | + <rect x={props.x} y={props.y + props.h - t} width={props.w} height={t} /> | |
| 28 | + <rect x={props.x} y={props.y} width={t} height={props.h} /> | |
| 29 | + <rect x={props.x + props.w - t} y={props.y} width={t} height={props.h} /> | |
| 30 | + </g> | |
| 31 | + ); | |
| 32 | +} | |
| 33 | + | |
| 34 | +/** | |
| 35 | + * The hero's centrepiece: the platform as one screen — the class on the left | |
| 36 | + * with its answers stored option by option, the topic chart and the week's | |
| 37 | + * plan on the right. It is a drawing, not a screenshot: no real interface has | |
| 38 | + * this few pixels, and a mock that pretends otherwise ages the moment the | |
| 39 | + * product moves. | |
| 40 | + */ | |
| 41 | +export function AppScreenIllustration(props: Props) { | |
| 42 | + const students = [0, 1, 2, 3, 4, 5]; | |
| 43 | + /** Which option each student marked: the data the rest of the page is about. */ | |
| 44 | + const marked = [2, 0, 3, 1, 2, 0]; | |
| 45 | + const chart = [28, 44, 36, 60, 52, 76]; | |
| 46 | + const plan = [ | |
| 47 | + [1, 0, 2, 0, 1], | |
| 48 | + [0, 2, 0, 1, 0], | |
| 49 | + [2, 0, 1, 2, 0], | |
| 50 | + ]; | |
| 51 | + | |
| 52 | + return ( | |
| 53 | + <svg | |
| 54 | + viewBox="0 0 960 520" | |
| 55 | + fill="none" | |
| 56 | + role="img" | |
| 57 | + aria-label="Hezarfen ekranı: sınıf listesi, konu grafiği ve haftalık plan" | |
| 58 | + shape-rendering="crispEdges" | |
| 59 | + class={props.class} | |
| 60 | + > | |
| 61 | + {/* Window */} | |
| 62 | + <Frame x={0} y={0} w={960} h={520} /> | |
| 63 | + <rect x={4} y={44} width={952} height={4} fill="currentColor" /> | |
| 64 | + {/* Title bar: three dots and a search field */} | |
| 65 | + <g fill="currentColor" opacity="0.55"> | |
| 66 | + <rect x={20} y={18} width={10} height={10} /> | |
| 67 | + <rect x={38} y={18} width={10} height={10} /> | |
| 68 | + <rect x={56} y={18} width={10} height={10} /> | |
| 69 | + </g> | |
| 70 | + <rect x={96} y={14} width={220} height={18} fill="currentColor" opacity="0.14" /> | |
| 71 | + <rect x={880} y={14} width={56} height={18} fill={brand} opacity="0.9" /> | |
| 72 | + | |
| 73 | + {/* Sidebar: the modules, one of them open */} | |
| 74 | + <rect x={196} y={48} width={4} height={468} fill="currentColor" /> | |
| 75 | + <g> | |
| 76 | + <rect x={24} y={72} width={104} height={10} fill="currentColor" opacity="0.3" /> | |
| 77 | + <rect x={20} y={104} width={4} height={14} fill={brand} /> | |
| 78 | + <rect x={32} y={104} width={128} height={14} fill={brand} opacity="0.22" /> | |
| 79 | + <For each={[0, 1, 2, 3, 4]}> | |
| 80 | + {row => ( | |
| 81 | + <rect | |
| 82 | + x={32} | |
| 83 | + y={140 + row * 32} | |
| 84 | + width={row % 2 === 0 ? 132 : 108} | |
| 85 | + height={12} | |
| 86 | + fill="currentColor" | |
| 87 | + opacity="0.2" | |
| 88 | + /> | |
| 89 | + )} | |
| 90 | + </For> | |
| 91 | + <rect x={32} y={452} width={96} height={12} fill="currentColor" opacity="0.14" /> | |
| 92 | + </g> | |
| 93 | + | |
| 94 | + {/* Page heading */} | |
| 95 | + <rect x={228} y={72} width={188} height={16} fill="currentColor" opacity="0.45" /> | |
| 96 | + <rect x={228} y={98} width={120} height={10} fill="currentColor" opacity="0.2" /> | |
| 97 | + | |
| 98 | + {/* Left panel: the class, answered option by option */} | |
| 99 | + <Frame x={228} y={128} w={352} h={356} t={2} /> | |
| 100 | + <rect x={244} y={148} width={96} height={10} fill="currentColor" opacity="0.35" /> | |
| 101 | + <For each={students}> | |
| 102 | + {(_, i) => { | |
| 103 | + const y = 180 + i() * 48; | |
| 104 | + return ( | |
| 105 | + <g> | |
| 106 | + <rect x={244} y={y} width={72} height={10} fill="currentColor" opacity="0.26" /> | |
| 107 | + <For each={[0, 1, 2, 3]}> | |
| 108 | + {option => ( | |
| 109 | + <rect | |
| 110 | + x={336 + option * 26} | |
| 111 | + y={y - 2} | |
| 112 | + width={16} | |
| 113 | + height={14} | |
| 114 | + fill={marked[i()] === option ? brand : "currentColor"} | |
| 115 | + opacity={marked[i()] === option ? 1 : 0.16} | |
| 116 | + /> | |
| 117 | + )} | |
| 118 | + </For> | |
| 119 | + <rect x={520} y={y - 2} width={40} height={14} fill={brandDeep} opacity="0.5" /> | |
| 120 | + </g> | |
| 121 | + ); | |
| 122 | + }} | |
| 123 | + </For> | |
| 124 | + | |
| 125 | + {/* Right, top: topic mastery */} | |
| 126 | + <Frame x={604} y={128} w={332} h={168} t={2} /> | |
| 127 | + <rect x={620} y={148} width={112} height={10} fill="currentColor" opacity="0.35" /> | |
| 128 | + <rect x={620} y={272} width={300} height={2} fill="currentColor" opacity="0.4" /> | |
| 129 | + <For each={chart}> | |
| 130 | + {(height, i) => ( | |
| 131 | + <rect | |
| 132 | + x={628 + i() * 48} | |
| 133 | + y={272 - height} | |
| 134 | + width={30} | |
| 135 | + height={height} | |
| 136 | + fill={i() >= 4 ? brand : brandDeep} | |
| 137 | + opacity={i() >= 4 ? 1 : 0.6} | |
| 138 | + /> | |
| 139 | + )} | |
| 140 | + </For> | |
| 141 | + | |
| 142 | + {/* Right, bottom: the week the data turns into */} | |
| 143 | + <Frame x={604} y={316} w={332} h={168} t={2} /> | |
| 144 | + <rect x={620} y={336} width={92} height={10} fill="currentColor" opacity="0.35" /> | |
| 145 | + <For each={plan}> | |
| 146 | + {(row, r) => ( | |
| 147 | + <For each={row}> | |
| 148 | + {(cell, c) => ( | |
| 149 | + <rect | |
| 150 | + x={620 + c() * 62} | |
| 151 | + y={360 + r() * 38} | |
| 152 | + width={50} | |
| 153 | + height={28} | |
| 154 | + fill={cell === 2 ? brand : cell === 1 ? brandDeep : "currentColor"} | |
| 155 | + opacity={cell === 0 ? 0.12 : cell === 1 ? 0.55 : 1} | |
| 156 | + /> | |
| 157 | + )} | |
| 158 | + </For> | |
| 159 | + )} | |
| 160 | + </For> | |
| 161 | + </svg> | |
| 162 | + ); | |
| 163 | +} | |
| 164 | + | |
| 165 | +/** | |
| 166 | + * A board with the class's progress on it, a desk, a book stack and a piece of | |
| 167 | + * chalk. The bars are the one thing in brand — the data is the subject of the | |
| 168 | + * whole page. | |
| 169 | + */ | |
| 170 | +export function ClassroomIllustration(props: Props) { | |
| 171 | + const bars = [ | |
| 172 | + { x: 52, h: 24, fill: brandDeep }, | |
| 173 | + { x: 80, h: 40, fill: brandDeep }, | |
| 174 | + { x: 108, h: 56, fill: brand }, | |
| 175 | + { x: 136, h: 76, fill: brand }, | |
| 176 | + ]; | |
| 177 | + | |
| 178 | + return ( | |
| 179 | + <svg | |
| 180 | + viewBox="0 0 260 200" | |
| 181 | + fill="none" | |
| 182 | + role="img" | |
| 183 | + aria-label="Sınıf panosunda yükselen kazanım grafiği" | |
| 184 | + shape-rendering="crispEdges" | |
| 185 | + class={props.class} | |
| 186 | + > | |
| 187 | + {/* Board */} | |
| 188 | + <Frame x={24} y={16} w={196} h={124} /> | |
| 189 | + {/* Chalk baseline and the bars standing on it */} | |
| 190 | + <rect x={40} y={124} width={164} height={4} fill="currentColor" opacity="0.5" /> | |
| 191 | + <For each={bars}> | |
| 192 | + {bar => <rect x={bar.x} y={124 - bar.h} width={20} height={bar.h} fill={bar.fill} />} | |
| 193 | + </For> | |
| 194 | + {/* Written lines, top left: the lesson the bars came from */} | |
| 195 | + <g fill="currentColor" opacity="0.45"> | |
| 196 | + <rect x={40} y={32} width={56} height={4} /> | |
| 197 | + <rect x={40} y={44} width={36} height={4} /> | |
| 198 | + </g> | |
| 199 | + {/* Desk */} | |
| 200 | + <g fill="currentColor"> | |
| 201 | + <rect x={12} y={152} width={236} height={6} /> | |
| 202 | + <rect x={36} y={158} width={6} height={26} /> | |
| 203 | + <rect x={218} y={158} width={6} height={26} /> | |
| 204 | + </g> | |
| 205 | + {/* Book stack on the desk */} | |
| 206 | + <g> | |
| 207 | + <rect x={60} y={140} width={48} height={6} fill={brand} /> | |
| 208 | + <rect x={64} y={146} width={40} height={6} fill="currentColor" opacity="0.55" /> | |
| 209 | + </g> | |
| 210 | + {/* Chalk */} | |
| 211 | + <rect x={168} y={142} width={26} height={6} fill="currentColor" opacity="0.75" /> | |
| 212 | + </svg> | |
| 213 | + ); | |
| 214 | +} | |
| 215 | + | |
| 216 | +/** | |
| 217 | + * Hezarfen Platform: an answer sheet where every question carries its topic | |
| 218 | + * tag and every answer is stored per option — the marks are the point, so | |
| 219 | + * they are the brand. | |
| 220 | + */ | |
| 221 | +export function AnswerSheetIllustration(props: Props) { | |
| 222 | + const rows = [0, 1, 2, 3, 4]; | |
| 223 | + const marked = [1, 3, 0, 2, 3]; | |
| 224 | + | |
| 225 | + return ( | |
| 226 | + <svg | |
| 227 | + viewBox="0 0 260 200" | |
| 228 | + fill="none" | |
| 229 | + role="img" | |
| 230 | + aria-label="Madde düzeyinde işaretlenmiş cevap kâğıdı" | |
| 231 | + shape-rendering="crispEdges" | |
| 232 | + class={props.class} | |
| 233 | + > | |
| 234 | + <Frame x={40} y={12} w={180} h={176} /> | |
| 235 | + {/* Header band: the exam's own line */} | |
| 236 | + <rect x={56} y={28} width={72} height={6} fill={brandDeep} /> | |
| 237 | + <rect x={56} y={40} width={44} height={4} fill="currentColor" opacity="0.45" /> | |
| 238 | + | |
| 239 | + <For each={rows}> | |
| 240 | + {row => { | |
| 241 | + const y = 64 + row * 24; | |
| 242 | + return ( | |
| 243 | + <g> | |
| 244 | + {/* Topic tag */} | |
| 245 | + <rect x={56} y={y + 2} width={24} height={6} fill="currentColor" opacity="0.4" /> | |
| 246 | + {/* Four options, one of them marked */} | |
| 247 | + <For each={[0, 1, 2, 3]}> | |
| 248 | + {option => ( | |
| 249 | + <rect | |
| 250 | + x={96 + option * 26} | |
| 251 | + y={y} | |
| 252 | + width={14} | |
| 253 | + height={10} | |
| 254 | + fill={marked[row] === option ? brand : "currentColor"} | |
| 255 | + opacity={marked[row] === option ? 1 : 0.28} | |
| 256 | + /> | |
| 257 | + )} | |
| 258 | + </For> | |
| 259 | + <rect x={204} y={y + 2} width={6} height={6} fill={brandDeep} /> | |
| 260 | + </g> | |
| 261 | + ); | |
| 262 | + }} | |
| 263 | + </For> | |
| 264 | + </svg> | |
| 265 | + ); | |
| 266 | +} | |
| 267 | + | |
| 268 | +/** | |
| 269 | + * Hezarfen Zekâ: a week of study, laid out as a grid and filled in by what | |
| 270 | + * the data says. The arrow is the plan updating itself when new data lands. | |
| 271 | + */ | |
| 272 | +export function StudyPlanIllustration(props: Props) { | |
| 273 | + const cells = [ | |
| 274 | + [1, 0, 2, 0, 1], | |
| 275 | + [0, 2, 0, 1, 0], | |
| 276 | + [2, 0, 1, 0, 2], | |
| 277 | + ]; | |
| 278 | + | |
| 279 | + return ( | |
| 280 | + <svg | |
| 281 | + viewBox="0 0 260 200" | |
| 282 | + fill="none" | |
| 283 | + role="img" | |
| 284 | + aria-label="Haftalık kişisel çalışma programı" | |
| 285 | + shape-rendering="crispEdges" | |
| 286 | + class={props.class} | |
| 287 | + > | |
| 288 | + <Frame x={20} y={20} w={220} h={160} /> | |
| 289 | + {/* Day headers */} | |
| 290 | + <For each={[0, 1, 2, 3, 4]}> | |
| 291 | + {day => <rect x={40 + day * 38} y={36} width={22} height={5} fill="currentColor" opacity="0.45" />} | |
| 292 | + </For> | |
| 293 | + {/* Plan cells: filled where there is work to do */} | |
| 294 | + <For each={cells}> | |
| 295 | + {(row, r) => ( | |
| 296 | + <For each={row}> | |
| 297 | + {(cell, c) => ( | |
| 298 | + <rect | |
| 299 | + x={40 + c() * 38} | |
| 300 | + y={56 + r() * 36} | |
| 301 | + width={26} | |
| 302 | + height={22} | |
| 303 | + fill={cell === 2 ? brand : cell === 1 ? brandDeep : "currentColor"} | |
| 304 | + opacity={cell === 0 ? 0.18 : 1} | |
| 305 | + /> | |
| 306 | + )} | |
| 307 | + </For> | |
| 308 | + )} | |
| 309 | + </For> | |
| 310 | + {/* The plan climbing as new data arrives */} | |
| 311 | + <g fill={brand}> | |
| 312 | + <rect x={40} y={166} width={14} height={4} /> | |
| 313 | + <rect x={54} y={160} width={14} height={4} /> | |
| 314 | + <rect x={68} y={154} width={14} height={4} /> | |
| 315 | + <rect x={82} y={148} width={14} height={4} /> | |
| 316 | + <rect x={96} y={142} width={14} height={4} /> | |
| 317 | + <rect x={104} y={134} width={6} height={8} /> | |
| 318 | + <rect x={110} y={138} width={6} height={6} /> | |
| 319 | + </g> | |
| 320 | + </svg> | |
| 321 | + ); | |
| 322 | +} | |
| 323 | + | |
| 324 | +/** | |
| 325 | + * Çelebi: a screen with the right row lit and a cursor arriving at it. The | |
| 326 | + * assistant's whole job is “the thing you are looking for is here”. | |
| 327 | + */ | |
| 328 | +export function GuidedScreenIllustration(props: Props) { | |
| 329 | + return ( | |
| 330 | + <svg | |
| 331 | + viewBox="0 0 260 200" | |
| 332 | + fill="none" | |
| 333 | + role="img" | |
| 334 | + aria-label="Kullanıcıyı doğru ekrana yönlendiren asistan" | |
| 335 | + shape-rendering="crispEdges" | |
| 336 | + class={props.class} | |
| 337 | + > | |
| 338 | + <Frame x={24} y={24} w={212} h={132} /> | |
| 339 | + {/* Window bar */} | |
| 340 | + <rect x={28} y={40} width={204} height={4} fill="currentColor" opacity="0.5" /> | |
| 341 | + {/* Side menu, one row highlighted */} | |
| 342 | + <g> | |
| 343 | + <rect x={40} y={56} width={56} height={10} fill="currentColor" opacity="0.25" /> | |
| 344 | + <rect x={40} y={74} width={56} height={10} fill={brand} /> | |
| 345 | + <rect x={40} y={92} width={56} height={10} fill="currentColor" opacity="0.25" /> | |
| 346 | + <rect x={40} y={110} width={56} height={10} fill="currentColor" opacity="0.25" /> | |
| 347 | + </g> | |
| 348 | + {/* Content area: the screen the row opens */} | |
| 349 | + <g fill="currentColor" opacity="0.3"> | |
| 350 | + <rect x={112} y={56} width={104} height={8} /> | |
| 351 | + <rect x={112} y={72} width={80} height={8} /> | |
| 352 | + <rect x={112} y={88} width={92} height={8} /> | |
| 353 | + </g> | |
| 354 | + <rect x={112} y={106} width={48} height={14} fill={brandDeep} /> | |
| 355 | + {/* Pixel cursor, landing on the highlighted row */} | |
| 356 | + <g fill="currentColor"> | |
| 357 | + <rect x={96} y={78} width={6} height={6} /> | |
| 358 | + <rect x={102} y={84} width={6} height={6} /> | |
| 359 | + <rect x={108} y={90} width={6} height={6} /> | |
| 360 | + <rect x={102} y={90} width={6} height={6} /> | |
| 361 | + </g> | |
| 362 | + {/* Stand */} | |
| 363 | + <g fill="currentColor"> | |
| 364 | + <rect x={116} y={156} width={28} height={16} /> | |
| 365 | + <rect x={92} y={172} width={76} height={6} /> | |
| 366 | + </g> | |
| 367 | + </svg> | |
| 368 | + ); | |
| 369 | +} | |
| 370 | + | |
| 371 | +/** | |
| 372 | + * Ses Atölyesi: a lesson page turning into sound, with the pause the content | |
| 373 | + * stops at to ask a question. | |
| 374 | + */ | |
| 375 | +export function AudioLessonIllustration(props: Props) { | |
| 376 | + const wave = [16, 28, 44, 24, 52, 36, 20, 40, 28, 16]; | |
| 377 | + | |
| 378 | + return ( | |
| 379 | + <svg | |
| 380 | + viewBox="0 0 260 200" | |
| 381 | + fill="none" | |
| 382 | + role="img" | |
| 383 | + aria-label="Ders PDF'inden üretilen sesli ders" | |
| 384 | + shape-rendering="crispEdges" | |
| 385 | + class={props.class} | |
| 386 | + > | |
| 387 | + {/* The source page */} | |
| 388 | + <Frame x={20} y={28} w={84} h={116} /> | |
| 389 | + <g fill="currentColor" opacity="0.4"> | |
| 390 | + <rect x={34} y={48} width={48} height={5} /> | |
| 391 | + <rect x={34} y={62} width={56} height={5} /> | |
| 392 | + <rect x={34} y={76} width={40} height={5} /> | |
| 393 | + <rect x={34} y={90} width={52} height={5} /> | |
| 394 | + </g> | |
| 395 | + <rect x={34} y={112} width={30} height={8} fill={brandDeep} /> | |
| 396 | + | |
| 397 | + {/* Headphone arc, stepped rather than curved */} | |
| 398 | + <g fill="currentColor"> | |
| 399 | + <rect x={148} y={36} width={56} height={6} /> | |
| 400 | + <rect x={140} y={42} width={8} height={8} /> | |
| 401 | + <rect x={204} y={42} width={8} height={8} /> | |
| 402 | + <rect x={136} y={50} width={12} height={28} /> | |
| 403 | + <rect x={204} y={50} width={12} height={28} /> | |
| 404 | + </g> | |
| 405 | + | |
| 406 | + {/* Waveform: the produced lesson */} | |
| 407 | + <For each={wave}> | |
| 408 | + {(height, i) => ( | |
| 409 | + <rect | |
| 410 | + x={128 + i() * 12} | |
| 411 | + y={120 - height / 2} | |
| 412 | + width={6} | |
| 413 | + height={height} | |
| 414 | + fill={i() === 4 ? brand : brandDeep} | |
| 415 | + opacity={i() === 4 ? 1 : 0.55} | |
| 416 | + /> | |
| 417 | + )} | |
| 418 | + </For> | |
| 419 | + {/* The DUR-CEVAPLA pause sitting in the middle of the take */} | |
| 420 | + <g fill={brand}> | |
| 421 | + <rect x={172} y={136} width={6} height={16} /> | |
| 422 | + <rect x={182} y={136} width={6} height={16} /> | |
| 423 | + </g> | |
| 424 | + </svg> | |
| 425 | + ); | |
| 426 | +} | |
| 427 | + | |
| 428 | +/** 404: a page that is not where it was. */ | |
| 429 | +export function MissingPageIllustration(props: Props) { | |
| 430 | + return ( | |
| 431 | + <svg | |
| 432 | + viewBox="0 0 160 160" | |
| 433 | + fill="none" | |
| 434 | + role="img" | |
| 435 | + aria-label="Bulunamayan sayfa" | |
| 436 | + shape-rendering="crispEdges" | |
| 437 | + class={props.class} | |
| 438 | + > | |
| 439 | + <Frame x={28} y={20} w={104} h={120} /> | |
| 440 | + <g fill="currentColor" opacity="0.35"> | |
| 441 | + <rect x={44} y={44} width={56} height={6} /> | |
| 442 | + <rect x={44} y={60} width={40} height={6} /> | |
| 443 | + </g> | |
| 444 | + <g fill={brand}> | |
| 445 | + <rect x={60} y={84} width={24} height={8} /> | |
| 446 | + <rect x={76} y={92} width={8} height={12} /> | |
| 447 | + <rect x={68} y={104} width={16} height={8} /> | |
| 448 | + <rect x={68} y={120} width={16} height={8} /> | |
| 449 | + </g> | |
| 450 | + </svg> | |
| 451 | + ); | |
| 452 | +} |