|
1 | 1 | 'use client' |
2 | 2 |
|
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') |
5 | 5 |
|
6 | 6 | 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 | + } |
11 | 11 |
|
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 | + ) |
55 | 57 | } |
0 commit comments