Skip to content

Commit b035f25

Browse files
committed
feat: Update favicon link and add mode toggle component
1 parent 72866f8 commit b035f25

File tree

19 files changed

+1244
-122
lines changed

19 files changed

+1244
-122
lines changed

client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image" href="./public/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>DevHub</title>
88
</head>

client/package-lock.json

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@radix-ui/react-dialog": "^1.1.1",
1616
"@radix-ui/react-dropdown-menu": "^2.1.1",
1717
"@radix-ui/react-label": "^2.1.0",
18+
"@radix-ui/react-navigation-menu": "^1.2.0",
1819
"@radix-ui/react-select": "^2.1.1",
1920
"@radix-ui/react-slot": "^1.1.0",
2021
"@radix-ui/react-toast": "^1.2.1",
@@ -34,6 +35,7 @@
3435
"react-icons": "^5.3.0",
3536
"react-redux": "^9.1.2",
3637
"react-router-dom": "^6.25.1",
38+
"react-wrap-balancer": "^1.1.1",
3739
"redux": "^5.0.1",
3840
"sonner": "^1.5.0",
3941
"tailwind-merge": "^2.4.0",

client/public/logo.png

22.2 KB
Loading

client/public/noise.webp

-715 KB
Binary file not shown.

client/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const App: React.FC = () => {
2222
const response = await axios.get(`${backendUrl}/check_auth`, { withCredentials: true });
2323
if (response.data.authenticated) {
2424
setAuthenticated(true);
25-
setUsername(response.data.username); // Store the username
25+
setUsername(response.data.username);
2626
} else {
2727
setAuthenticated(false);
2828
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
import { Link } from 'react-router-dom';
2+
3+
// Third-party library imports
4+
import Balancer from "react-wrap-balancer";
5+
6+
// UI component imports
7+
import { Button } from "../ui/button";
8+
9+
// Icon imports
10+
import { Github, Twitter, Facebook } from "lucide-react";
11+
12+
// Local component imports
13+
import { Section, Container } from "@/components/ui/craft";
14+
15+
// Asset imports
16+
// import Logo from "@/public/logo.svg";
17+
18+
export default function Footer() {
19+
return (
20+
<footer>
21+
<Section>
22+
<Container className="grid gap-12 md:grid-cols-[1.5fr_0.5fr_0.5fr]">
23+
<div className="not-prose flex flex-col gap-6">
24+
<Link to="/">
25+
<h3 className="sr-only">brijr/components</h3>
26+
{/* <img
27+
src={Logo}
28+
alt="Logo"
29+
width={120}
30+
height={27.27}
31+
className="transition-all hover:opacity-75 dark:invert"
32+
></img> */}
33+
</Link>
34+
<p>
35+
<Balancer>
36+
brijr/components is a collection of Next.js, React, Typescript
37+
components for building landing pages and websites.
38+
</Balancer>
39+
</p>
40+
</div>
41+
<div className="flex flex-col gap-2">
42+
<h5>Website</h5>
43+
<Link to="/">Blog</Link>
44+
<Link to="/">Authors</Link>
45+
<Link to="/">Categories</Link>
46+
</div>
47+
<div className="flex flex-col gap-2">
48+
<h5>Legal</h5>
49+
<Link to="/privacy-policy">Privacy Policy</Link>
50+
<Link to="/terms-of-service">Terms of Service</Link>
51+
<Link to="/cookie-policy">Cookie Policy</Link>
52+
</div>
53+
</Container>
54+
<Container className="not-prose flex flex-col justify-between gap-6 border-t md:flex-row md:items-center md:gap-2">
55+
<div className="flex gap-2">
56+
<Button variant="outline" size="icon">
57+
<Github />
58+
</Button>
59+
<Button variant="outline" size="icon">
60+
<Twitter />
61+
</Button>
62+
<Button variant="outline" size="icon">
63+
<Facebook />
64+
</Button>
65+
</div>
66+
<p className="text-muted-foreground">
67+
©{" "}
68+
<a to="https://github.com/brijr/components">brijr/components</a>.
69+
All rights reserved. 2024-present.
70+
</p>
71+
</Container>
72+
</Section>
73+
</footer>
74+
);
75+
}

client/src/components/Footer/drawer.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

client/src/components/Footer/subscribe.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)