From 764bec9c12df08d9f8f81887a26550f5fc1ee701 Mon Sep 17 00:00:00 2001 From: harshit-jain52 Date: Mon, 18 Nov 2024 04:54:23 +0530 Subject: [PATCH] styles: snowflakes on only landing page; top left logo is not a link now --- src/App.tsx | 14 ---------- src/components/Navbar.tsx | 56 +++++++++++++++++++-------------------- src/pages/Home.tsx | 15 ++++++++++- src/styles/Navbar.css | 1 - 4 files changed, 41 insertions(+), 45 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b53f89b1..4a9d93df 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,7 +14,6 @@ import MentorDashboard from "./pages/MentorDashboard"; import PastProgramsPage from "./pages/PastProgramsPage"; import StudentDashboard from "./pages/StudentDashboard"; import RegistrationForm from "./pages/RegistrationForm"; -import Snowfall from "react-snowfall"; import { Header } from "./components/Header"; import Footer from "./components/Footer"; @@ -24,19 +23,6 @@ function App() {
- } /> ( )) ) : ( - - LOGIN - + LOGIN )} ); @@ -73,26 +69,20 @@ const Navbar = () => { }, [location.pathname]); function closeNavbar() { - const element = document.getElementById('linkList'); + const element = document.getElementById("linkList"); - if (element) { - element.addEventListener('click', () => { - element.classList.remove('open'); + if (element) { + element.addEventListener("click", () => { + element.classList.remove("open"); }); } setIsOpen(false); } return ( -
-
- - KWoC Logo - +
+
+ KWoC Logo
@@ -102,10 +92,16 @@ const Navbar = () => {
-
- ) -} + ); +}; -export default Navbar \ No newline at end of file +export default Navbar; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index ab1b05ec..f759dd33 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -4,11 +4,24 @@ import { AboutSection } from "../components/About"; import { WhyKWoC } from "../components/WhyKWoC"; import "../styles/Santa.css"; import Testimonials from "../components/Testimonials"; +import { Snowfall } from "react-snowfall"; function Home() { - return (
+ diff --git a/src/styles/Navbar.css b/src/styles/Navbar.css index 24dc3a6b..521b68a9 100644 --- a/src/styles/Navbar.css +++ b/src/styles/Navbar.css @@ -10,7 +10,6 @@ .logo { height: 60px; width: 60px; - cursor: pointer; position: absolute; z-index: 2; top: 50%;