Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 7 additions & 66 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions frontend/src/components/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AppLayout: React.FC = () => {
>
{/* Header */}
<header
className="fixed top-0 left-0 right-0 z-50 h-(--header-h) items-center px-16 flex justify-between backdrop-blur-[20px] backdrop-saturate-180 border-b"
className="fixed top-0 left-0 right-0 z-50 h-(--header-h) items-center px-4 md:px-8 lg:px-16 flex justify-between backdrop-blur-[20px] backdrop-saturate-180 border-b"
style={{
background: 'color-mix(in srgb, var(--bg) 85%, transparent)',
borderColor: 'var(--border-hi)',
Expand Down Expand Up @@ -54,15 +54,15 @@ const AppLayout: React.FC = () => {
{/* Main */}
<main className="flex flex-col flex-1 pt-(--header-h)">
<PageWrapper>
<div key={location.pathname} className="flex flex-col flex-1 px-6 py-8">
<div key={location.pathname} className="flex flex-col flex-1 px-4 md:px-6 py-6 md:py-8">
<Outlet />
</div>
</PageWrapper>
</main>

{/* Footer */}
<footer
className="flex flex-wrap justify-between items-center gap-2 px-6 py-5 border-t text-xs font-mono text-(--muted)"
className="flex flex-wrap justify-between items-center gap-2 px-4 md:px-6 py-4 md:py-5 border-t text-xs font-mono text-(--muted)"
style={{ borderColor: 'var(--border-hi)' }}
>
<span>
Expand Down
63 changes: 58 additions & 5 deletions frontend/src/components/AppNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ const AppNav: React.FC = () => {
aria-label="Toggle menu"
aria-expanded={mobileOpen}
onClick={() => setMobileOpen(!mobileOpen)}
className="lg:hidden p-2 rounded-md hover:bg-white/5 transition"
className="lg:hidden p-3 rounded-md hover:bg-white/5 transition touch-manipulation"
style={{ minHeight: '44px', minWidth: '44px' }} // Touch-friendly size
>
{mobileOpen ? <X className="w-5 h-5" /> : <Menu className="w-5 h-5" />}
{mobileOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
</button>

{/* User profile */}
Expand All @@ -219,9 +220,61 @@ const AppNav: React.FC = () => {

{/* Mobile dropdown menu */}
{mobileOpen && (
<div className="lg:hidden absolute left-0 right-0 top-full z-40 bg-white shadow-lg border-t">
<div className="px-4 py-3 flex flex-col gap-2">{navLinks}</div>
</div>
<>
{/* Backdrop overlay */}
<div
className="lg:hidden fixed inset-0 bg-black/50 z-30"
onClick={() => setMobileOpen(false)}
/>

{/* Mobile menu panel */}
<div className="lg:hidden fixed top-0 right-0 bottom-0 w-80 max-w-[85vw] bg-white shadow-xl z-40 transform transition-transform duration-300 ease-in-out">
<div className="flex flex-col h-full">
{/* Mobile menu header */}
<div className="flex items-center justify-between p-4 border-b">
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-lg grid place-items-center font-extrabold text-black text-sm tracking-tight shadow-[0_0_20px_rgba(74,240,184,0.3)] bg-linear-to-br from-(--accent) to-(--accent2)">
P
</div>
<span className="text-lg font-extrabold tracking-tight">
Pay<span className="text-(--accent)">D</span>
</span>
</div>
<button
aria-label="Close menu"
onClick={() => setMobileOpen(false)}
className="p-2 rounded-md hover:bg-gray-100 transition touch-manipulation"
style={{ minHeight: '44px', minWidth: '44px' }}
>
<X className="w-5 h-5" />
</button>
</div>

{/* Mobile menu content */}
<div className="flex-1 overflow-y-auto p-4">
<div className="flex flex-col gap-2">{navLinks}</div>
</div>

{/* Mobile menu footer with user info */}
<div className="p-4 border-t">
<div className="flex items-center gap-3 p-3 bg-gray-50 rounded-lg">
<Avatar
email={currentUser.email}
name={currentUser.name}
imageUrl={currentUser.imageUrl}
size="sm"
/>
<div className="flex-1 min-w-0">
<p className="text-sm font-semibold text-gray-800 truncate">
{currentUser.name}
</p>
<p className="text-xs text-gray-500 truncate">{currentUser.email}</p>
</div>
</div>
</div>
</div>
</div>
</>
)}
</nav>
);
Expand Down
Loading