Skip to content

Commit 1356bed

Browse files
committed
✨ Add Navbar and Footer components
1 parent 30c79f6 commit 1356bed

2 files changed

Lines changed: 130 additions & 0 deletions

File tree

‎inertia/components/footer.tsx‎

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import { Link } from '@inertiajs/react'
2+
3+
export default function Footer() {
4+
return (
5+
<footer className="bg-white">
6+
<div className="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
7+
<div className="xl:grid xl:grid-cols-3 xl:gap-8">
8+
<div className="space-y-8 xl:col-span-1">
9+
<Link href="/" className="text-lg font-bold text-gray-900">
10+
JavaScript.cm
11+
</Link>
12+
<p className="text-gray-500 text-base">
13+
La plus grande communauté de développeurs JavaScript au Cameroun.
14+
</p>
15+
</div>
16+
<div className="mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2">
17+
<div className="md:grid md:grid-cols-2 md:gap-8">
18+
<div>
19+
<h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">
20+
Ressources
21+
</h3>
22+
<ul role="list" className="mt-4 space-y-4">
23+
<li>
24+
<Link href="/about" className="text-base text-gray-500 hover:text-gray-900">
25+
A propos
26+
</Link>
27+
</li>
28+
<li>
29+
<Link href="/sponsors" className="text-base text-gray-500 hover:text-gray-900">
30+
Soutien
31+
</Link>
32+
</li>
33+
<li>
34+
<Link href="/snippets" className="text-base text-gray-500 hover:text-gray-900">
35+
Snippets
36+
</Link>
37+
</li>
38+
</ul>
39+
</div>
40+
<div className="mt-12 md:mt-0">
41+
<h3 className="text-sm font-semibold text-gray-400 tracking-wider uppercase">
42+
Légal
43+
</h3>
44+
<ul role="list" className="mt-4 space-y-4">
45+
<li>
46+
<Link href="/terms" className="text-base text-gray-500 hover:text-gray-900">
47+
Conditions d'utilisation
48+
</Link>
49+
</li>
50+
<li>
51+
<Link href="/privacy" className="text-base text-gray-500 hover:text-gray-900">
52+
Confidentialité
53+
</Link>
54+
</li>
55+
<li>
56+
<Link href="/conduct" className="text-base text-gray-500 hover:text-gray-900">
57+
Code de conduite
58+
</Link>
59+
</li>
60+
</ul>
61+
</div>
62+
</div>
63+
</div>
64+
</div>
65+
<div className="mt-12 border-t border-gray-200 pt-8">
66+
<p className="text-base text-gray-400 xl:text-center">
67+
&copy; {new Date().getFullYear()} JavaScript Cameroun. Tous droits réservés.
68+
</p>
69+
</div>
70+
</div>
71+
</footer>
72+
)
73+
}

‎inertia/components/navbar.tsx‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { Link } from '@inertiajs/react'
2+
3+
export default function Navbar() {
4+
return (
5+
<nav className="bg-white border-b border-gray-100">
6+
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
7+
<div className="flex justify-between h-16">
8+
{/* Logo */}
9+
<div className="flex">
10+
<div className="flex-shrink-0 flex items-center">
11+
<Link href="/" className="text-xl font-bold text-gray-900">
12+
JavaScript.cm
13+
</Link>
14+
</div>
15+
16+
{/* Navigation Links */}
17+
<div className="hidden space-x-8 sm:ml-10 sm:flex">
18+
<Link
19+
href="/forum"
20+
className="inline-flex items-center px-1 pt-1 text-sm font-medium text-gray-500 hover:text-gray-900"
21+
>
22+
Forum
23+
</Link>
24+
<Link
25+
href="/articles"
26+
className="inline-flex items-center px-1 pt-1 text-sm font-medium text-gray-500 hover:text-gray-900"
27+
>
28+
Articles
29+
</Link>
30+
<Link
31+
href="/discussions"
32+
className="inline-flex items-center px-1 pt-1 text-sm font-medium text-gray-500 hover:text-gray-900"
33+
>
34+
Discussions
35+
</Link>
36+
</div>
37+
</div>
38+
39+
{/* Right Side */}
40+
<div className="hidden sm:flex sm:items-center sm:ml-6">
41+
<div className="flex items-center space-x-4">
42+
<Link href="/login" className="text-sm text-gray-500 hover:text-gray-900">
43+
Se connecter
44+
</Link>
45+
<Link
46+
href="/register"
47+
className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
48+
>
49+
Créer un compte
50+
</Link>
51+
</div>
52+
</div>
53+
</div>
54+
</div>
55+
</nav>
56+
)
57+
}

0 commit comments

Comments
 (0)