From b171165fcba6d76aee25a7e13892e1411415d7a8 Mon Sep 17 00:00:00 2001 From: pradeeptosarkar Date: Thu, 25 Jul 2024 17:07:56 +0530 Subject: [PATCH] navbar responsiveness issues --- src/components/Navbar/Navbar.jsx | 48 +++++++++++++++++++------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index b0e3604e..7874e467 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -1,7 +1,7 @@ import styled from "styled-components"; import React, { useState, useEffect, useRef } from "react"; import { Link, useLocation } from "react-router-dom"; -import { Squash as Hamburger } from 'hamburger-react'; +import { Squash as Hamburger } from "hamburger-react"; const NavbarContainer = styled.nav` width: 100%; @@ -23,7 +23,7 @@ const LeftContainer = styled.div` display: flex; align-items: center; justify-content: space-around; - backdrop-filter: blur(8px); + backdrop-filter: blur(8px); transition: backdrop-filter 0.5s ease; z-index: 999; box-shadow: inset 0px -1px #1d2d44; @@ -34,7 +34,7 @@ const LeftContainer = styled.div` const NavbarInnerContainer = styled.div` width: 100%; - height: 80px; + height: 100px; display: flex; `; @@ -76,7 +76,7 @@ const DropdownMenu = styled.div` left: 0; background-color: rgba(0, 0, 0, 0.8); border-radius: 0 0 10px 10px; - display: ${({ show }) => (show ? 'block' : 'none')}; + display: ${({ show }) => (show ? "block" : "none")}; z-index: 1000; width: 200px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); @@ -262,7 +262,9 @@ function Navbar() { to="http://blog.namespacecomm.in/" target="_blank" className={ - activeNavLink === "/http://blog.namespacecomm.in/" ? "active" : "" + activeNavLink === "/http://blog.namespacecomm.in/" + ? "active" + : "" } >
@@ -311,20 +313,26 @@ function Navbar() { */} - - - - - +
+ + + + + - - - - - - - - + + + + + + + + +
{isOpen && ( @@ -335,7 +343,9 @@ function Navbar() { Programs Team Resources - Blog + + Blog + TechXcelerate HACKHAZARDS