MCPcopy Create free account
hub / github.com/pollinations/pollinations / Navigation

Function Navigation

apps/gsoc/src/components/Navigation.jsx:4–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import "../styles/navigation.css";
3
4export default function Navigation() {
5 const navItems = [
6 { name: "Ideas", path: "/ideas" },
7 { name: "Mentors", path: "/mentors" },
8 { name: "About", path: "/about" },
9 ];
10
11 return (
12 <div className="h-16.25 w-full rounded-[20px] bg-transparent mx-auto flex items-center justify-center mt-8 absolute top-10">
13 <div className="navigation w-[70%] h-full bg-white-200 mx-auto rounded-[10px] shadow-xl flex flex-col">
14 <div className="flex items-center justify-between h-full overflow-hidden">
15 <Link
16 to="/"
17 className="navLogo w-1/2 flex items-center gap-2 pl-5 box-border"
18 >
19 <img
20 src="/polli_black.svg"
21 alt="Vite"
22 className="w-8 h-8"
23 />
24 <span className="font-bold text-xl text-gray-800">
25 pollinations.ai
26 </span>
27 </Link>
28
29 <div className="flex items-center gap-10 flex-1 justify-center flex-row">
30 {navItems.map((item) => (
31 <Link
32 key={item.path}
33 to={item.path}
34 className="text-gray-700 font-bold text-[#888] hover:text-black transition-colors duration-200 relative group"
35 >
36 {item.name}
37 <span className="absolute bottom-0 left-0 w-0 h-0.5 bg-black group-hover:w-full transition-all duration-200"></span>
38 </Link>
39 ))}
40
41 <div className="socials flex flex-row gap-[15px] box-border">
42 <img
43 src="/discord.svg"
44 alt="discord-logo"
45 className="social_icon w-8 h-8 min-w-8 min-h-8 max-w-8 max-h-8 cursor-pointer rounded-[5px] box-border shadow-lg transition-shadow duration-200 hover:shadow-xl hover:scale-105"
46 />
47 <img
48 src="/github.svg"
49 alt="github-logo"
50 className="social_icon w-8 h-8 min-w-8 min-h-8 max-w-8 max-h-8 cursor-pointer rounded-[5px] box-border shadow-lg transition-shadow duration-200 hover:shadow-xl hover:scale-105"
51 />
52 </div>
53 </div>
54 </div>
55 </div>
56 </div>
57 );
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected