Skip to content

Commit 3a066ff

Browse files
Fix header logo and active link
The logo in the header was not displaying correctly and the "Introduction" link was not being highlighted as active when on the "/docs" route. This commit addresses these issues by ensuring the logo is displayed correctly without any additional indicators and by fixing the logic for activating the "Introduction" link.
1 parent 75fcb85 commit 3a066ff

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const App = () => (
5353
<Route path="/serendipity" element={<Serendipity />} />
5454
<Route path="/effulgence" element={<Effulgence />} />
5555
<Route path="/docs" element={<Docs />}>
56+
<Route index element={<DocsIntroduction />} />
5657
<Route path="introduction" element={<DocsIntroduction />} />
5758
<Route path="guides" element={<DocsGuides />} />
5859
<Route path="examples" element={<DocsExamples />} />
@@ -69,7 +70,6 @@ const App = () => (
6970
<Route path="arceau" element={<ReferenceArceau />} />
7071
</Route>
7172
<Route path="about" element={<DocsAbout />} />
72-
<Route index element={<DocsIntroduction />} />
7373
</Route>
7474
<Route path="/privacy" element={<Privacy />} />
7575
<Route path="/terms" element={<Terms />} />

src/components/Footer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Code, GitPullRequestCreateArrow, Heart, Mail } from "lucide-react";
22
import { Link } from "react-router-dom";
33

4+
45
import { Soon } from "@/components/Soon.tsx";
56

67
const Footer = () => {

src/components/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Github, Moon, Play, Sun } from "lucide-react";
33
import { useTheme } from "next-themes";
44
import { Link, useNavigate, useLocation } from "react-router-dom";
55

6+
67
const Header = () => {
78
const { theme, setTheme } = useTheme();
89
const navigate = useNavigate();

0 commit comments

Comments
 (0)