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:
parent
964c544027
commit
8f53036a3a
1 changed files with 9 additions and 3 deletions
|
|
@ -42,14 +42,20 @@ const Foundations = () => {
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className="container mx-auto px-4 py-8">
|
<div className="container mx-auto px-4 py-8">
|
||||||
<div className="space-y-6">
|
<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
|
<Link
|
||||||
to="/themes/discrete-math"
|
to="/themes/discrete-math"
|
||||||
className="text-primary hover:text-primary/80 font-medium"
|
className="text-primary hover:text-primary/80 font-medium"
|
||||||
>
|
>
|
||||||
← Back to Discrete Math
|
Back to Discrete Math →
|
||||||
</Link>
|
</Link>
|
||||||
<h1 className="text-2xl font-bold text-foreground">{selectedInteractive.title}</h1>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="bg-background border rounded-lg p-6">
|
<div className="bg-background border rounded-lg p-6">
|
||||||
<InteractiveComponent />
|
<InteractiveComponent />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue