Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit 031c53c

Browse files
committed
hide 2048 game
1 parent 015177f commit 031c53c

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

components/nav-bar/desktop/nav-bar-desktop.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export default function DesktopNavBar({ links }: { links: NavGroup[] }) {
2626
>
2727
Sponsor Us
2828
</Link>
29+
<Link
30+
href="/2048/leaderboard"
31+
className="mx-2 whitespace-nowrap text-lg xl:text-xl bg-[length:0%_2px] bg-no-repeat bg-left-bottom transition-all duration-200 bg-gradient-to-r from-hackrpi-primary-blue to-hackrpi-primary-blue hover:bg-[length:100%_2px]"
32+
>
33+
2048 Leaderboard
34+
</Link>
2935
<Link
3036
href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf"
3137
className="mx-2 whitespace-nowrap text-lg xl:text-xl bg-[length:0%_2px] bg-no-repeat bg-left-bottom transition-all duration-200 bg-gradient-to-r from-hackrpi-primary-blue to-hackrpi-primary-blue hover:bg-[length:100%_2px]"

components/nav-bar/mobile/nav-bar-mobile.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ export default function MobileNavBar({ links }: { links: NavGroup[] }) {
6161
>
6262
Sponsor Us
6363
</Link>
64+
<Link
65+
href="/2048/leaderboard"
66+
className="w-11/12 whitespace-nowrap text-2xl p-2 bg-[length:0%_4px] bg-no-repeat bg-left-bottom transition-all duration-200 bg-gradient-to-r from-hackrpi-primary-blue to-hackrpi-primary-blue hover:bg-[length:100%_4px]"
67+
>
68+
2048 Leaderboard
69+
</Link>
6470
<Link
6571
href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf"
6672
className="w-11/12 whitespace-nowrap text-2xl p-2 bg-[length:0%_4px] bg-no-repeat bg-left-bottom transition-all duration-200 bg-gradient-to-r from-hackrpi-primary-blue to-hackrpi-primary-blue hover:bg-[length:100%_4px]"

components/nav-bar/nav-bar.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ export const links: NavGroup[] = [
4040
{ href: "/resources#submissions", children: "Submitting Your Project" },
4141
],
4242
},
43-
{
44-
name: "2048",
45-
links: [
46-
{ href: "/2048", children: "Play" },
47-
{ href: "/2048/leaderboard", children: "Leaderboard" },
48-
],
49-
},
5043
];
5144

5245
export default function NavBar({ showOnScroll }: { showOnScroll: boolean }) {

0 commit comments

Comments
 (0)