import Link from "next/link"; import { Header } from "@/components/layout/header"; import { Footer } from "@/components/layout/footer"; import { curriculum } from "@/lib/curriculum"; const unitStyles = { "unit-1": { tile: "from-[#4e95ff] to-[#1f63ea]", unitCard: "border-[#8cb2ff] bg-[#eaf2ff]", chip: "bg-[#2059cc]", }, "unit-2": { tile: "from-[#29c6c5] to-[#0f8d8c]", unitCard: "border-[#89e5dd] bg-[#eafffb]", chip: "bg-[#0f8d8c]", }, "unit-3": { tile: "from-[#ffab55] to-[#e97617]", unitCard: "border-[#ffd2a3] bg-[#fff4e8]", chip: "bg-[#d26a17]", }, "unit-4": { tile: "from-[#ff5f85] to-[#d11b56]", unitCard: "border-[#ffb2c7] bg-[#fff0f4]", chip: "bg-[#c6174e]", }, }; const topicTiles = [ "from-[#4e95ff] via-[#357fe9] to-[#1f63ea]", "from-[#2ac3be] via-[#1da8a3] to-[#0f8d8c]", "from-[#ffb067] via-[#f2913a] to-[#d86e16]", "from-[#ff6f98] via-[#ef3d72] to-[#cb1c54]", "from-[#7d95ff] via-[#6078f2] to-[#3f56d9]", "from-[#4ccf7b] via-[#2fb45f] to-[#1f944b]", "from-[#ff8f8f] via-[#f26b6b] to-[#d94545]", "from-[#5eb7ff] via-[#3f99ef] to-[#2a7fda]", ]; export default function Home() { const allTopics = curriculum.flatMap((unit) => unit.topics.map((topic) => ({ unit, topic, })), ); return (

Interactive maths practice for secondary school students

Math Topics Students Love to Explore

Explore each topic with visual examples, short explanations, and guided lessons. Pick a unit, jump into a topic, and start solving.

Browse Lessons Start Practice

Unit Worlds

{curriculum.map((unit) => (

{unit.title}

Unit {unit.number}

{unit.description}

{unit.weeks}

))}

Topic Explorer

{allTopics.map(({ unit, topic }, index) => (
Week {topic.week} {topic.shortTitle}

{topic.title}

))}
); }