From afb617a64d01bd6d1d4d2002ecd4ca334875a408 Mon Sep 17 00:00:00 2001 From: NovaFox161 Date: Mon, 20 Jan 2025 22:19:12 -0600 Subject: [PATCH] Get pages loading now due to link changes in upgrade --- components/footer.tsx | 151 ++++++++++++++++++--------------- components/navbar.tsx | 192 ++++++++++++++++++++++-------------------- pages/index.tsx | 60 +++++++------ 3 files changed, 221 insertions(+), 182 deletions(-) diff --git a/components/footer.tsx b/components/footer.tsx index 2be2d3c..e74dd55 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -57,94 +57,107 @@ const navigation = { function Branding() { - return
- DisCal Bot -

- The ultimate Discord calendar bot. -

-
- {navigation.social.map((item) => ( - - + return ( +
+ DisCal Bot +

+ The ultimate Discord calendar bot. +

+
+ {navigation.social.map((item) => ( + + {item.name} - - ))} + + + ))} +
-
+ ); } function DiscalSection() { - return
-

DisCal

- +
+ ); } function DevelopersSection() { - return
-

Developers

- +
+ ); } function CompanySection() { - return
-

Company

- +
+ ); } function LegalSection() { - return
-

Legal

- +
+ ); } function LinksBlock() { diff --git a/components/navbar.tsx b/components/navbar.tsx index b86e187..12901e0 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -40,42 +40,45 @@ export default function Navbar() { } function BrandingImage() { - return
- - DisCal - DisCal - Homepage - -
+ return ( +
+ + DisCal + DisCal + Homepage + +
+ ); } function DesktopNavigationItems() { - return
-
- {navigation.map((item) => ( - - +
+ {navigation.map((item) => ( + + aria-current={currentPage(router, item.href) ? 'page' : undefined}> {item.name} - - - ))} + + ))} +
-
+ ); } function SupportButton() { @@ -89,75 +92,86 @@ export default function Navbar() { } function LoginButton(): JSX.Element { - return - saveToLocalStorage("previous_page", window.location.href)}> - Login - - + return ( + saveToLocalStorage("previous_page", window.location.href)}> + + Login + + + ); } function ProfileDropdown(props: {user: User}): JSX.Element { - return -
- - Open user menu - Profile Photo - -
- - - -

- {props.user.username}#{props.user.discriminator} -

-
- - - - Sign out - - - -
-
-
+ return ( + +
+ + Open user menu + Profile Photo + +
+ + + +

+ {props.user.username}#{props.user.discriminator} +

+
+ + + + Sign out + + + +
+
+
+ ); } function MobileDropdownNav(): JSX.Element { - return setOpen(!open)}> -
- {navigation.map((item) => ( - - - {item.name} - - - ))} -
-
+ return ( + setOpen(!open)}> +
+ {navigation.map((item) => ( + + + {item.name} + + + ))} +
+
+ ); } return diff --git a/pages/index.tsx b/pages/index.tsx index 2cd07af..f3513ae 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -30,27 +30,37 @@ function Hero(): JSX.Element { function ButtonContainer(): JSX.Element { function GetStartedButton(): JSX.Element { - return
- - - Get Started - - -
+ return ( +
+ + + Get Started + + +
+ ); } function PremiumButton(): JSX.Element { - return
- - - Premium - - -
+ return ( +
+ + + Premium + + +
+ ); } return
@@ -197,12 +207,14 @@ function CTA(): JSX.Element { } function InviteButton(): JSX.Element { - return - - Invite DisCal - - + return ( + + Invite DisCal + + ); } function CTAImage(): JSX.Element {