binary to decimal
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
--unit-5-light: #f0e7ff;
|
||||
--unit-5-dark: #5b21b6;
|
||||
|
||||
--unit-6: #4f46e5;
|
||||
--unit-6-light: #eef2ff;
|
||||
--unit-6-dark: #3730a3;
|
||||
|
||||
--correct: #16a34a;
|
||||
--correct-light: #dcfce7;
|
||||
--incorrect: #dc2626;
|
||||
@@ -66,6 +70,9 @@
|
||||
--color-unit-5: var(--unit-5);
|
||||
--color-unit-5-light: var(--unit-5-light);
|
||||
--color-unit-5-dark: var(--unit-5-dark);
|
||||
--color-unit-6: var(--unit-6);
|
||||
--color-unit-6-light: var(--unit-6-light);
|
||||
--color-unit-6-dark: var(--unit-6-dark);
|
||||
|
||||
--color-correct: var(--correct);
|
||||
--color-correct-light: var(--correct-light);
|
||||
|
||||
25
app/lessons/unit-6-number-system/binary/page.tsx
Normal file
25
app/lessons/unit-6-number-system/binary/page.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
|
||||
import { BinaryConverterExplorer } from "@/components/explorers/binary-converter-explorer";
|
||||
|
||||
export default function BinaryPage() {
|
||||
return (
|
||||
<div className="space-y-8">
|
||||
<Breadcrumbs
|
||||
items={[
|
||||
{ label: "Lessons", href: "/lessons" },
|
||||
{ label: "Unit 6: Number System", href: "/lessons/unit-6-number-system" },
|
||||
{ label: "Binary" },
|
||||
]}
|
||||
/>
|
||||
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold tracking-tight">Binary → Decimal Converter</h1>
|
||||
<p className="mt-2 text-muted">Same shape, different base — explore place value in powers of 2.</p>
|
||||
</div>
|
||||
|
||||
<BinaryConverterExplorer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
41
app/lessons/unit-6-number-system/page.tsx
Normal file
41
app/lessons/unit-6-number-system/page.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import Link from "next/link";
|
||||
import { curriculum } from "@/lib/curriculum";
|
||||
import { Card } from "@/components/ui/card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
|
||||
|
||||
export default function Unit6Overview() {
|
||||
const unit = curriculum[5];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Breadcrumbs
|
||||
items={[
|
||||
{ label: "Lessons", href: "/lessons" },
|
||||
{ label: `Unit 6: ${unit.title}` },
|
||||
]}
|
||||
/>
|
||||
<div className="mb-10">
|
||||
<Badge variant="unit-6" className="mb-3">Unit 6 — {unit.weeks}</Badge>
|
||||
<h1 className="mb-2 text-3xl font-bold tracking-tight">{unit.title}</h1>
|
||||
<p className="text-muted leading-relaxed">{unit.description}</p>
|
||||
</div>
|
||||
<div className="grid gap-4 sm:grid-cols-2">
|
||||
{unit.topics.map((topic, i) => (
|
||||
<Link key={topic.slug} href={`/lessons/${unit.slug}/${topic.slug}`}>
|
||||
<Card accent="unit-6" hover className="group h-full">
|
||||
<div className="mb-2 flex items-center gap-2">
|
||||
<span className="flex h-7 w-7 items-center justify-center rounded-lg bg-unit-6-light text-xs font-bold text-unit-6-dark shadow-[var(--shadow-sm)]">
|
||||
{i + 1}
|
||||
</span>
|
||||
<span className="text-xs text-muted">Week {topic.week}</span>
|
||||
</div>
|
||||
<h3 className="mb-1 font-semibold">{topic.title}</h3>
|
||||
<p className="text-sm leading-relaxed text-muted">{topic.description}</p>
|
||||
</Card>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -29,6 +29,11 @@ const unitStyles = {
|
||||
unitCard: "border-[#c4b5fd] bg-[#f5f0ff]",
|
||||
chip: "bg-[#6d28d9]",
|
||||
},
|
||||
"unit-6": {
|
||||
tile: "from-[#818cf8] to-[#3730a3]",
|
||||
unitCard: "border-[#a5b4fc] bg-[#eef2ff]",
|
||||
chip: "bg-[#3730a3]",
|
||||
},
|
||||
};
|
||||
|
||||
const topicTiles = [
|
||||
|
||||
Reference in New Issue
Block a user