Skip to content

Commit b21b763

Browse files
Naveen bandelaNaveen bandela
authored andcommitted
added the gofr summer code the home page
1 parent 00effa9 commit b21b763

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

src/components/Layout.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ export function Layout({ children }) {
149149
<div className="flex w-full flex-col">
150150
{pathname !== '/hackathon' && (
151151
<>
152-
{/* <div className='relative sm:fixed sm:top-0 sm:left-0 sm:right-0 z-50'>
152+
<div className="relative z-50 sm:fixed sm:left-0 sm:right-0 sm:top-0">
153153
<HackathonLinkButton />
154-
</div> */}
155-
<div className="sticky left-0 right-0 top-0 z-40">
154+
</div>
155+
<div className="sticky left-0 right-0 top-0 z-40 sm:top-8">
156156
<Header />
157157
</div>
158158
</>
Lines changed: 51 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,57 @@
11
'use client'
22

3-
const { default: Link } = require("next/link");
4-
const { usePathname } = require("next/navigation");
3+
const { default: Link } = require('next/link')
4+
const { usePathname } = require('next/navigation')
55

66
export const HackathonLinkButton = () => {
7-
const pathName = usePathname();
8-
if (pathName === '/hackathon') {
9-
return null;
10-
}
7+
const pathName = usePathname()
8+
if (pathName === '/hackathon') {
9+
return null
10+
}
1111

12-
return (
13-
<div className="sm:fixed top-0 left-0 right-0 z-50 bg-black py-1 px-4">
14-
<div className="relative z-30 flex items-center justify-center text-center text-white">
15-
<span className="text-sm font-semibold md:text-sm bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 bg-clip-text text-transparent">
16-
Go for GoFr Hackathon is Live! Participate to win great prizes and goodies!
17-
</span>
18-
<Link
19-
href="/hackathon"
20-
className="text-xs md:text-xs px-2 flex flex-col items-center gap-1 relative group"
21-
>
22-
<div className="flex items-center gap-1 ">
23-
<span className="bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 bg-clip-text text-transparent transition-colors duration-300 whitespace-nowrap">
24-
Join Now
25-
</span>
26-
<svg
27-
width="22"
28-
height="22"
29-
viewBox="0 0 24 24"
30-
fill="none"
31-
xmlns="http://www.w3.org/2000/svg"
32-
className="relative"
33-
>
34-
<defs>
35-
<linearGradient id="gradient" x1="0" y1="0" x2="100%" y2="0">
36-
<stop offset="0%" stopColor="#c3dafe" />
37-
<stop offset="50%" stopColor="#38bdf8" />
38-
<stop offset="100%" stopColor="#c3dafe" />
39-
</linearGradient>
40-
</defs>
41-
<path
42-
d="M4 12h16m-6-6l6 6-6 6"
43-
stroke="url(#gradient)"
44-
strokeWidth="2"
45-
strokeLinecap="round"
46-
strokeLinejoin="round"
47-
/>
48-
</svg>
49-
</div>
50-
<span className="absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 transition-transform duration-300 scale-x-0 group-hover:scale-x-90" />
51-
</Link>
52-
</div>
53-
</div>
54-
);
12+
return (
13+
<div className="left-0 right-0 top-0 z-50 bg-black px-4 py-1 sm:fixed">
14+
<div className="relative z-30 flex items-center justify-center text-center text-white">
15+
<span className="bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 bg-clip-text text-sm font-semibold text-transparent md:text-sm">
16+
🚀 GoFr Summer of Code 2025 is Live. Register Now !
17+
</span>
18+
<Link
19+
href="https://unstop.com/hackathons/gofr-summer-of-code-gofrdev-1488007"
20+
className="group relative flex flex-col items-center gap-1 px-2 text-xs md:text-xs"
21+
target="_blank"
22+
rel="noopener noreferrer"
23+
>
24+
<div className="flex items-center gap-1 ">
25+
<span className="whitespace-nowrap bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 bg-clip-text text-transparent transition-colors duration-300">
26+
Join Now
27+
</span>
28+
<svg
29+
width="22"
30+
height="22"
31+
viewBox="0 0 24 24"
32+
fill="none"
33+
xmlns="http://www.w3.org/2000/svg"
34+
className="relative"
35+
>
36+
<defs>
37+
<linearGradient id="gradient" x1="0" y1="0" x2="100%" y2="0">
38+
<stop offset="0%" stopColor="#c3dafe" />
39+
<stop offset="50%" stopColor="#38bdf8" />
40+
<stop offset="100%" stopColor="#c3dafe" />
41+
</linearGradient>
42+
</defs>
43+
<path
44+
d="M4 12h16m-6-6l6 6-6 6"
45+
stroke="url(#gradient)"
46+
strokeWidth="2"
47+
strokeLinecap="round"
48+
strokeLinejoin="round"
49+
/>
50+
</svg>
51+
</div>
52+
<span className="absolute inset-x-0 bottom-0 h-0.5 scale-x-0 bg-gradient-to-r from-indigo-200 via-sky-400 to-indigo-200 transition-transform duration-300 group-hover:scale-x-90" />
53+
</Link>
54+
</div>
55+
</div>
56+
)
5557
}

0 commit comments

Comments
 (0)