Skip to content

Commit 426fba2

Browse files
committed
removed bottom border in the navbar
1 parent adc9009 commit 426fba2

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

Client/src/components/Layout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const AppLayout = () => {
3838
</div>
3939

4040
{/* Sticky Navbar with top spacing */}
41-
<div className="sticky top-0 z-50 w-full bg-background/80 backdrop-blur-md supports-backdrop-filter:bg-background/60 border-b border-border">
41+
<div className="sticky top-0 z-50 w-full bg-background/80 supports-backdrop-filter:bg-background/60 border-border">
4242
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
4343
<Navbar />
4444
</div>

Client/src/components/Layout/Navbar.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
22
import { navLogo } from "../../assets/images";
33
import { Moon, Sun, Bell, Search } from "lucide-react";
44
import { Avatar, AvatarImage, AvatarFallback } from "../ui/avatar";
5+
import { useNavigate } from "react-router-dom";
56

67
const Navbar = () => {
78
const [isDark, setIsDark] = useState(() => {
@@ -35,19 +36,22 @@ const Navbar = () => {
3536
window.addEventListener("scroll", handleScroll);
3637
return () => window.removeEventListener("scroll", handleScroll);
3738
}, []);
38-
39+
const navigate = useNavigate();
3940
return (
4041
<div className="sticky top-4 z-50 w-full px-4">
4142
<nav
42-
className={`mx-auto max-w-6xl transition-all duration-300 ${
43+
className={`mx-auto mt-7 max-w-6xl transition-all duration-300 ${
4344
isScrolled
4445
? "bg-card/90 backdrop-blur-xl border border-border shadow-lg"
4546
: "bg-card/80 backdrop-blur-lg border border-border"
4647
} rounded-2xl py-3 px-6`}
4748
>
4849
<div className="flex items-center justify-between">
4950
{/* Logo */}
50-
<div className="flex items-center gap-3">
51+
<div
52+
className="flex items-center gap-3 cursor-pointer"
53+
onClick={() => navigate("/")}
54+
>
5155
<div className="relative">
5256
<img
5357
src={navLogo.logo1}
@@ -58,7 +62,9 @@ const Navbar = () => {
5862
<div className="hidden sm:block">
5963
<h1 className="text-xl font-bold">
6064
<span className="text-primary">Brain</span>
61-
<span className="text-muted-foreground">Vector</span>
65+
<span className="text-muted-foreground italic ml-0.5">
66+
Vector
67+
</span>
6268
</h1>
6369
</div>
6470
</div>

0 commit comments

Comments
 (0)