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 stand in where the product has no screen to show: a classroom, a
* weekly plan, a recorded lesson, a missing page. Where a real screen exists the page uses a
* screenshot instead (`ProductShot`), so none of these 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 (
);
}
/**
* 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 (
);
}
/**
* 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 (
);
}
/**
* 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 (
);
}
/** 404: a page that is not where it was. */
export function MissingPageIllustration(props: Props) {
return (
);
}