Skip to content

Commit d5ef64c

Browse files
feat: updated ProfilePanel, Footer, Navbar, and DashboardLayout components.
1 parent a88cc3d commit d5ef64c

5 files changed

Lines changed: 18 additions & 7 deletions

File tree

apps/web/components/layout/Footer.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import Link from 'next/link';
4+
import { usePathname } from 'next/navigation';
45
import { motion } from 'framer-motion';
56
import { Sparkles, Twitter, Github, Linkedin, Mail, ArrowRight, Heart, ExternalLink } from 'lucide-react';
67
import { SectionContainer } from './SectionContainer';
@@ -33,6 +34,11 @@ const footerLinks = {
3334
};
3435

3536
export function Footer() {
37+
const pathname = usePathname();
38+
const isDashboard = pathname?.startsWith('/dashboard');
39+
40+
if (isDashboard) return null;
41+
3642
return (
3743
<footer className="relative z-10 w-full overflow-hidden bg-[#030303] pt-24">
3844
{/* ── Newsletter / Engagement Section ── */}

apps/web/components/layout/Navbar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export function Navbar() {
1919
const [scrolled, setScrolled] = useState(false);
2020
const pathname = usePathname();
2121

22+
const isDashboard = pathname?.startsWith('/dashboard');
23+
24+
2225
useEffect(() => {
2326
const handleScroll = () => setScrolled(window.scrollY > 20);
2427
window.addEventListener('scroll', handleScroll, { passive: true });
@@ -29,6 +32,8 @@ export function Navbar() {
2932
setIsOpen(false);
3033
}, [pathname]);
3134

35+
if (isDashboard) return null;
36+
3237
return (
3338
<header
3439
className={`fixed top-0 left-0 right-0 z-[100] transition-all duration-500 ${

apps/web/src/components/layout/DashboardLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { GridBackground } from '../../../components/home';
88
export function DashboardLayout({ children, topbarRight }: { children: ReactNode; topbarRight?: ReactNode }) {
99
return (
1010
<AppLayout>
11-
<div className="relative min-h-screen bg-[#030303] overflow-hidden pt-16">
11+
<div className="relative min-h-screen bg-[#030303] overflow-hidden">
1212
{/* Cinematic Backdrop */}
1313
<GridBackground />
1414
<div className="pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-purple-500/[0.01] to-transparent" />

apps/web/src/components/profile/ProfilePanel.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function ProfilePanel({ fallbackUser }: { fallbackUser: AuthUserDto | nul
5454
className="space-y-8 max-w-4xl mx-auto"
5555
>
5656
{/* ── User Identity ── */}
57-
<GlassCard className=" border-white/10 bg-white/[0.02]">
57+
<GlassCard className="p-6 border-white/10 bg-white/[0.02]">
5858
<div className="flex flex-col md:flex-row items-center gap-8 text-center md:text-left">
5959
<div className="h-14 w-14 rounded-2xl bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center shadow-lg border border-white/20">
6060
<span className="text-2xl font-black italic tracking-tighter text-white">
@@ -75,7 +75,7 @@ export function ProfilePanel({ fallbackUser }: { fallbackUser: AuthUserDto | nul
7575
{/* ── Actions ── */}
7676
<div className="grid gap-4 sm:grid-cols-4">
7777
<Link href="/dashboard/settings" className="block h-full">
78-
<GlassCard className=" border-white/5 bg-white/[0.01] hover:bg-white/[0.03] transition-all group flex items-center gap-4">
78+
<GlassCard className="p-6 border-white/5 bg-white/[0.01] hover:bg-white/[0.03] transition-all group flex items-center gap-4">
7979
<div className="h-10 w-10 rounded-xl bg-purple-500/10 text-purple-400 flex items-center justify-center border border-purple-500/20">
8080
<Settings size={18} />
8181
</div>
@@ -87,7 +87,7 @@ export function ProfilePanel({ fallbackUser }: { fallbackUser: AuthUserDto | nul
8787
</Link>
8888

8989
<div className="h-full">
90-
<GlassCard className=" border-white/5 bg-white/[0.01] flex items-center gap-4">
90+
<GlassCard className="p-6 border-white/5 bg-white/[0.01] flex items-center gap-4">
9191
<div className="h-10 w-10 rounded-xl bg-indigo-500/10 text-indigo-400 flex items-center justify-center border border-indigo-500/20">
9292
<ShieldCheck size={18} />
9393
</div>
@@ -99,7 +99,7 @@ export function ProfilePanel({ fallbackUser }: { fallbackUser: AuthUserDto | nul
9999
</div>
100100

101101
<div className="h-full">
102-
<GlassCard className=" border-white/5 bg-white/[0.01] flex items-center gap-4">
102+
<GlassCard className="p-6 border-white/5 bg-white/[0.01] flex items-center gap-4">
103103
<div className="h-10 w-10 rounded-xl bg-zinc-500/10 text-zinc-400 flex items-center justify-center border border-white/5">
104104
<LifeBuoy size={18} />
105105
</div>
@@ -115,7 +115,7 @@ export function ProfilePanel({ fallbackUser }: { fallbackUser: AuthUserDto | nul
115115
disabled={loading}
116116
className="w-full text-left h-full"
117117
>
118-
<GlassCard className=" border-white/5 bg-white/[0.01] hover:bg-rose-500/5 hover:border-rose-500/20 transition-all group flex items-center gap-4">
118+
<GlassCard className="p-6 border-white/5 bg-white/[0.01] hover:bg-rose-500/5 hover:border-rose-500/20 transition-all group flex items-center gap-4">
119119
<div className="h-10 w-10 rounded-xl bg-rose-500/10 text-rose-500 flex items-center justify-center border border-rose-500/20">
120120
<LogOut size={18} />
121121
</div>

apps/web/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)