diff --git a/web/app/globals.css b/web/app/globals.css index fdef0bd..d4c5ee4 100644 --- a/web/app/globals.css +++ b/web/app/globals.css @@ -5,19 +5,22 @@ box-sizing: border-box; } -.horizontal-section, .horizontal-section2 { +.horizontal-section, +.horizontal-section2 { padding: 100px 0; background-color: pink; } -.sticky-wrapper, .sticky-wrapper2 { +.sticky-wrapper, +.sticky-wrapper2 { position: sticky; top: 100px; width: 100%; overflow: hidden; } -.element-wrapper, .element-wrapper2 { +.element-wrapper, +.element-wrapper2 { position: relative; display: flex; } @@ -34,11 +37,11 @@ /* height: 0%; */ width: 100%; position: fixed; - z-index: 1; + z-index: 50; top: 0; left: 0; - background-color: rgb(0,0,0); - background-color: rgba(0,0,0, 0.95); + background-color: rgb(0, 0, 0); + background-color: rgba(0, 0, 0, 0.95); overflow-y: hidden; transition: 0.5s; } @@ -57,7 +60,8 @@ transition: 0.3s; } -.overlay a:hover, .overlay a:focus { +.overlay a:hover, +.overlay a:focus { color: #f1f1f1; } diff --git a/web/components/Navbar.tsx b/web/components/Navbar.tsx index 9e00f73..1987045 100644 --- a/web/components/Navbar.tsx +++ b/web/components/Navbar.tsx @@ -5,71 +5,71 @@ import { FC, useState } from 'react'; import { motion } from 'framer-motion'; import socials from "@/content/social.json" import Icon from './Icons'; -import {scroller} from 'react-scroll' +import { scroller } from 'react-scroll' import { useRouter } from 'next/navigation'; interface Props { - theme: "light" | "dark" - landing?: boolean + theme: "light" | "dark" + landing?: boolean } const Navbar: FC = ({ theme = "light", landing }) => { const router = useRouter() - const [menu, setMenu] = useState(false) - const scrollToSection = (section:string) => { - setMenu(false) - router.push("/") - scroller.scrollTo(section, { - duration: 1500, - delay: 150, - smooth: true, - containerId: 'main-thing', - // offset: 50, - }) - } - return ( - <> - {landing? ( - - Logo - - - ) : ( -
- Logo - -
- ) - - } -
-
-

scrollToSection("home")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Home -

-

scrollToSection("fame")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Achievements -

-

scrollToSection("events")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Events -

-

scrollToSection("team")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Team -

-

scrollToSection("projects")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Projects -

-

scrollToSection("blogs")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Blogs -

-

scrollToSection("footer")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> - Contact Us -

-
- {/*
+ const [menu, setMenu] = useState(false) + const scrollToSection = (section: string) => { + setMenu(false) + router.push("/") + scroller.scrollTo(section, { + duration: 1500, + delay: 150, + smooth: true, + containerId: 'main-thing', + // offset: 50, + }) + } + return ( + <> + {landing ? ( + + Logo + + + ) : ( +
+ Logo + +
+ ) + + } +
+
+

scrollToSection("home")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Home +

+

scrollToSection("fame")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Achievements +

+

scrollToSection("events")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Events +

+

scrollToSection("team")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Team +

+

scrollToSection("projects")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Projects +

+

scrollToSection("blogs")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Blogs +

+

scrollToSection("footer")} className='font-sans text-[3rem] font-extrabold w-min text-grey hover:text-pastel_red mb-5 cursor-pointer'> + Contact Us +

+
+ {/*
{socials.map((social, i) => )}
*/} -
- - ); +
+ + ); } export default Navbar;