Update interactive navigation

Updated the navigation links on the interactive page to "Back to Foundations" on the left and "Back to Discrete Math" on the right.
This commit is contained in:
gpt-engineer-app[bot] 2025-07-19 13:56:14 +00:00
parent 964c544027
commit 8f53036a3a

View file

@ -42,14 +42,20 @@ const Foundations = () => {
<Layout>
<div className="container mx-auto px-4 py-8">
<div className="space-y-6">
<div className="flex items-center gap-4">
<div className="flex items-center justify-between">
<button
onClick={() => setSelectedInteractive(null)}
className="text-primary hover:text-primary/80 font-medium"
>
Back to Foundations
</button>
<h1 className="text-2xl font-bold text-foreground">{selectedInteractive.title}</h1>
<Link
to="/themes/discrete-math"
className="text-primary hover:text-primary/80 font-medium"
>
Back to Discrete Math
Back to Discrete Math
</Link>
<h1 className="text-2xl font-bold text-foreground">{selectedInteractive.title}</h1>
</div>
<div className="bg-background border rounded-lg p-6">
<InteractiveComponent />