From ecbf9f5388b976032cb407f0f6b8d8f6f244e31e Mon Sep 17 00:00:00 2001 From: Ahmed Elsakaan Date: Wed, 29 May 2024 00:31:46 +0100 Subject: [PATCH] feat: responsiveness in landing page --- src/app/(marketing)/_components/navbar.tsx | 14 +++++++++++- src/app/(marketing)/page.tsx | 25 +++++++++++++--------- src/primitives/button.tsx | 2 +- tailwind.config.ts | 2 +- 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/app/(marketing)/_components/navbar.tsx b/src/app/(marketing)/_components/navbar.tsx index c2527515..5a616443 100644 --- a/src/app/(marketing)/_components/navbar.tsx +++ b/src/app/(marketing)/_components/navbar.tsx @@ -60,6 +60,8 @@ export const Navbar = () => { } }; + handleScroll(); + window.addEventListener('scroll', handleScroll); return () => { window.removeEventListener('scroll', handleScroll); @@ -79,7 +81,7 @@ export const Navbar = () => { Noodle - + Features @@ -148,6 +150,16 @@ export const Navbar = () => { Contribute + + + Discord + +
diff --git a/src/app/(marketing)/page.tsx b/src/app/(marketing)/page.tsx index e7d91838..00591842 100644 --- a/src/app/(marketing)/page.tsx +++ b/src/app/(marketing)/page.tsx @@ -12,7 +12,7 @@ import Image from 'next/image'; */ export default function Home() { return ( -
+
-

+

{constants.tagline}

-

- Noodle is an open-source student productivity platform - made to streamline the process students conduct their - studies and organize it. +

+ open-source student productivity platform made to{' '} + streamline the process students conduct their studies + and organize it.

-