Radar: Techy angular mobile design with more info
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

This commit is contained in:
2025-12-13 13:56:40 +01:00
parent 4568679f01
commit a88719e02d

View File

@ -21,7 +21,6 @@ import {
TrendingUp, TrendingUp,
Settings, Settings,
Clock, Clock,
Wifi,
ChevronRight, ChevronRight,
Sparkles, Sparkles,
Radio, Radio,
@ -32,7 +31,7 @@ import {
Shield, Shield,
LogOut, LogOut,
Crown, Crown,
ChevronDown ExternalLink
} from 'lucide-react' } from 'lucide-react'
import clsx from 'clsx' import clsx from 'clsx'
import Link from 'next/link' import Link from 'next/link'
@ -104,7 +103,6 @@ export default function RadarPage() {
}, []) }, [])
useEffect(() => { useEffect(() => {
// Wait for auth check to complete, then load data
if (!authLoading) { if (!authLoading) {
if (isAuthenticated) { if (isAuthenticated) {
loadDashboardData() loadDashboardData()
@ -216,40 +214,42 @@ export default function RadarPage() {
<main className="lg:pl-[240px]"> <main className="lg:pl-[240px]">
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE HEADER - Premium App Style */} {/* MOBILE HEADER - Techy Angular */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
<header <header
className="lg:hidden sticky top-0 z-40 bg-[#020202]/80 backdrop-blur-xl border-b border-white/[0.06]" className="lg:hidden sticky top-0 z-40 bg-[#020202]/95 backdrop-blur-md border-b border-white/[0.08]"
style={{ paddingTop: 'env(safe-area-inset-top)' }} style={{ paddingTop: 'env(safe-area-inset-top)' }}
> >
<div className="px-4 py-3 flex items-center justify-between"> <div className="px-4 py-3">
{/* Brand */} {/* Top Row: Brand + Menu */}
<div className="flex items-center gap-3"> <div className="flex items-center justify-between mb-3">
<div className="relative"> <div className="flex items-center gap-2">
<div className="w-9 h-9 bg-accent/10 border border-accent/20 rounded-xl flex items-center justify-center shadow-[0_0_15px_-3px_rgba(16,185,129,0.3)]"> <div className="w-1.5 h-1.5 bg-accent animate-pulse" />
<Radio className="w-4 h-4 text-accent" /> <span className="text-[10px] font-mono tracking-[0.2em] text-accent uppercase">Domain Radar</span>
</div>
<div className="absolute -top-0.5 -right-0.5 w-2 h-2 bg-accent rounded-full animate-pulse shadow-[0_0_8px_rgba(16,185,129,0.8)]" />
</div> </div>
<div> <div className="flex items-center gap-2 text-[10px] font-mono text-white/40">
<h1 className="text-base font-bold text-white tracking-tight leading-none">Radar</h1> <span>{marketStats.totalAuctions.toLocaleString()} auctions</span>
<p className="text-[10px] text-white/40 font-medium tracking-wide mt-0.5">Live Intelligence</p> <span className="text-accent">{marketStats.endingSoon} ending</span>
</div> </div>
</div> </div>
{/* Stats Pills - Compact */} {/* Stats Grid */}
<div className="flex items-center gap-2"> <div className="grid grid-cols-4 gap-2">
<div className="px-2.5 py-1 bg-white/[0.03] border border-white/[0.08] rounded-lg"> <div className="bg-white/[0.02] border border-white/[0.08] p-2">
<div className="flex items-center gap-1.5"> <div className="text-lg font-bold text-white tabular-nums">{totalDomains}</div>
<Target className="w-3 h-3 text-white/40" /> <div className="text-[9px] font-mono text-white/30 uppercase tracking-wider">Tracked</div>
<span className="text-xs font-bold text-white tabular-nums">{totalDomains}</span>
</div>
</div> </div>
<div className="px-2.5 py-1 bg-accent/10 border border-accent/20 rounded-lg"> <div className="bg-accent/[0.05] border border-accent/20 p-2">
<div className="flex items-center gap-1.5"> <div className="text-lg font-bold text-accent tabular-nums">{availableDomains.length}</div>
<CheckCircle2 className="w-3 h-3 text-accent" /> <div className="text-[9px] font-mono text-accent/60 uppercase tracking-wider">Available</div>
<span className="text-xs font-bold text-accent tabular-nums">{availableDomains.length}</span> </div>
</div> <div className="bg-white/[0.02] border border-white/[0.08] p-2">
<div className="text-lg font-bold text-white tabular-nums">{marketStats.totalAuctions}</div>
<div className="text-[9px] font-mono text-white/30 uppercase tracking-wider">Auctions</div>
</div>
<div className="bg-orange-500/[0.05] border border-orange-500/20 p-2">
<div className="text-lg font-bold text-orange-400 tabular-nums">{marketStats.endingSoon}</div>
<div className="text-[9px] font-mono text-orange-400/60 uppercase tracking-wider">Ending</div>
</div> </div>
</div> </div>
</div> </div>
@ -258,11 +258,11 @@ export default function RadarPage() {
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* SEARCH SECTION */} {/* SEARCH SECTION */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-4 lg:px-10 pt-4 lg:pt-10 pb-6"> <section className="px-4 lg:px-10 pt-4 lg:pt-10 pb-4">
{/* Desktop Hero Text */} {/* Desktop Hero Text */}
<div className="hidden lg:block mb-8"> <div className="hidden lg:block mb-8">
<div className="flex items-center gap-3 mb-4"> <div className="flex items-center gap-3 mb-4">
<div className="w-1.5 h-1.5 bg-accent rounded-full animate-pulse" /> <div className="w-1.5 h-1.5 bg-accent animate-pulse" />
<span className="text-[10px] font-mono tracking-[0.2em] text-accent uppercase">Intelligence Hub</span> <span className="text-[10px] font-mono tracking-[0.2em] text-accent uppercase">Intelligence Hub</span>
</div> </div>
<h1 className="font-display text-[2.5rem] leading-[1] tracking-[-0.02em] text-white mb-2"> <h1 className="font-display text-[2.5rem] leading-[1] tracking-[-0.02em] text-white mb-2">
@ -278,27 +278,27 @@ export default function RadarPage() {
{/* Desktop Glow */} {/* Desktop Glow */}
<div className="hidden lg:block absolute -inset-6 bg-gradient-to-tr from-accent/5 via-transparent to-accent/5 blur-3xl opacity-50 pointer-events-none" /> <div className="hidden lg:block absolute -inset-6 bg-gradient-to-tr from-accent/5 via-transparent to-accent/5 blur-3xl opacity-50 pointer-events-none" />
<div className="relative bg-transparent lg:bg-[#0A0A0A] lg:border border-white/[0.08] overflow-hidden lg:rounded-none rounded-2xl"> <div className="relative bg-[#0A0A0A] border border-white/[0.08] overflow-hidden">
{/* Terminal Header - Desktop only */} {/* Terminal Header */}
<div className="hidden lg:flex items-center justify-between px-5 py-3 border-b border-white/[0.06] bg-black/40"> <div className="flex items-center justify-between px-4 py-2 border-b border-white/[0.06] bg-black/40">
<span className="text-[10px] font-mono text-white/40 flex items-center gap-2"> <span className="text-[10px] font-mono text-white/40 flex items-center gap-2">
<Crosshair className="w-3 h-3 text-accent" /> <Crosshair className="w-3 h-3 text-accent" />
Domain Search Domain Search
</span> </span>
<div className="flex gap-1.5"> <div className="flex gap-1.5">
<div className="w-2 h-2 rounded-full bg-white/10" /> <div className="w-2 h-2 bg-white/10" />
<div className="w-2 h-2 rounded-full bg-white/10" /> <div className="w-2 h-2 bg-white/10" />
<div className="w-2 h-2 rounded-full bg-accent/50" /> <div className="w-2 h-2 bg-accent/50" />
</div> </div>
</div> </div>
{/* Search Input - App Style */} {/* Search Input */}
<div className="lg:p-6"> <div className="p-4 lg:p-6">
<div className={clsx( <div className={clsx(
"relative border transition-all duration-300 rounded-xl lg:rounded-none overflow-hidden", "relative border-2 transition-all duration-200",
searchFocused searchFocused
? "border-accent/50 bg-accent/[0.03] shadow-[0_0_20px_-5px_rgba(16,185,129,0.15)]" ? "border-accent/50 bg-accent/[0.02]"
: "border-white/[0.08] bg-white/[0.03]" : "border-white/[0.08] bg-white/[0.02]"
)}> )}>
<div className="flex items-center"> <div className="flex items-center">
<Search className={clsx( <Search className={clsx(
@ -312,8 +312,8 @@ export default function RadarPage() {
onChange={(e) => setSearchQuery(e.target.value)} onChange={(e) => setSearchQuery(e.target.value)}
onFocus={() => setSearchFocused(true)} onFocus={() => setSearchFocused(true)}
onBlur={() => setSearchFocused(false)} onBlur={() => setSearchFocused(false)}
placeholder="Search domain..." placeholder="example.com"
className="flex-1 bg-transparent px-3 py-4 text-base lg:text-lg text-white placeholder:text-white/20 outline-none font-medium" className="flex-1 bg-transparent px-3 py-4 text-base lg:text-lg text-white placeholder:text-white/20 outline-none font-mono"
/> />
{searchQuery && ( {searchQuery && (
<button <button
@ -328,65 +328,61 @@ export default function RadarPage() {
{/* Search Result */} {/* Search Result */}
{searchResult && ( {searchResult && (
<div className="mt-3 animate-in fade-in slide-in-from-bottom-4 duration-300"> <div className="mt-4 animate-in fade-in slide-in-from-bottom-2 duration-200">
{searchResult.loading ? ( {searchResult.loading ? (
<div className="flex items-center justify-center gap-3 py-6 bg-white/[0.02] border border-white/[0.06] rounded-xl lg:rounded-none"> <div className="flex items-center justify-center gap-3 py-8 bg-white/[0.02] border border-white/[0.06]">
<Loader2 className="w-5 h-5 animate-spin text-accent" /> <Loader2 className="w-5 h-5 animate-spin text-accent" />
<span className="text-sm text-white/50 font-medium">Scanning network...</span> <span className="text-sm text-white/50 font-mono">Scanning...</span>
</div> </div>
) : ( ) : (
<div className={clsx( <div className={clsx(
"border overflow-hidden rounded-xl lg:rounded-none shadow-2xl", "border-2 overflow-hidden",
searchResult.is_available searchResult.is_available
? "border-accent/30 bg-[#0A0A0A]" ? "border-accent/40 bg-accent/[0.03]"
: "border-white/[0.08] bg-[#0A0A0A]" : "border-white/[0.08] bg-white/[0.02]"
)}> )}>
{/* Result Header */} {/* Result Header */}
<div className={clsx( <div className={clsx(
"px-5 py-4 flex items-center justify-between border-b", "px-4 py-3 flex items-center justify-between",
searchResult.is_available ? "bg-accent/[0.03] border-accent/10" : "bg-white/[0.01] border-white/[0.04]" searchResult.is_available ? "bg-accent/[0.05]" : "bg-white/[0.02]"
)}> )}>
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
{searchResult.is_available ? ( {searchResult.is_available ? (
<div className="w-10 h-10 bg-accent/10 border border-accent/20 rounded-full flex items-center justify-center shrink-0"> <CheckCircle2 className="w-5 h-5 text-accent" />
<CheckCircle2 className="w-5 h-5 text-accent" />
</div>
) : ( ) : (
<div className="w-10 h-10 bg-white/5 border border-white/10 rounded-full flex items-center justify-center shrink-0"> <XCircle className="w-5 h-5 text-white/30" />
<XCircle className="w-5 h-5 text-white/30" />
</div>
)} )}
<div className="min-w-0"> <div>
<div className="text-base lg:text-lg font-bold text-white truncate">{searchResult.domain}</div> <div className="text-base font-bold text-white font-mono">{searchResult.domain}</div>
{!searchResult.is_available && searchResult.registrar && ( {!searchResult.is_available && searchResult.registrar && (
<div className="text-xs text-white/40 truncate">via {searchResult.registrar}</div> <div className="text-[10px] text-white/40 font-mono">Registrar: {searchResult.registrar}</div>
)} )}
</div> </div>
</div> </div>
<span className={clsx( <span className={clsx(
"text-[10px] font-bold px-2.5 py-1 rounded-full uppercase tracking-wider shrink-0", "text-[10px] font-bold px-2 py-1 uppercase tracking-wider",
searchResult.is_available searchResult.is_available
? "bg-accent/10 text-accent border border-accent/20" ? "bg-accent text-black"
: "bg-white/5 text-white/40 border border-white/10" : "bg-white/10 text-white/50"
)}> )}>
{searchResult.is_available ? 'Available' : 'Taken'} {searchResult.is_available ? 'Available' : 'Taken'}
</span> </span>
</div> </div>
{/* Actions */} {/* Actions */}
<div className="p-4 flex flex-col gap-3"> <div className="p-4 flex gap-3">
<button <button
onClick={handleAddToWatchlist} onClick={handleAddToWatchlist}
disabled={addingToWatchlist} disabled={addingToWatchlist}
className={clsx( className={clsx(
"w-full py-3.5 text-sm font-bold rounded-lg flex items-center justify-center gap-2 transition-all active:scale-[0.98]", "flex-1 py-3 text-sm font-bold flex items-center justify-center gap-2 transition-all active:scale-[0.98]",
searchResult.is_available searchResult.is_available
? "bg-white/5 text-white border border-white/10 hover:bg-white/10" ? "border border-white/20 text-white hover:bg-white/5"
: "bg-accent/10 text-accent border border-accent/20 hover:bg-accent/20" : "border-2 border-accent text-accent hover:bg-accent/10"
)} )}
> >
{addingToWatchlist ? <Loader2 className="w-4 h-4 animate-spin" /> : <Eye className="w-4 h-4" />} {addingToWatchlist ? <Loader2 className="w-4 h-4 animate-spin" /> : <Eye className="w-4 h-4" />}
{searchResult.is_available ? 'Add to Watchlist' : 'Track Availability'} {searchResult.is_available ? 'Track' : 'Monitor'}
</button> </button>
{searchResult.is_available && ( {searchResult.is_available && (
@ -394,9 +390,9 @@ export default function RadarPage() {
href={`https://www.namecheap.com/domains/registration/results/?domain=${searchResult.domain}`} href={`https://www.namecheap.com/domains/registration/results/?domain=${searchResult.domain}`}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="w-full py-3.5 bg-accent text-[#020202] text-sm font-bold rounded-lg flex items-center justify-center gap-2 hover:bg-white active:scale-[0.98] transition-all shadow-[0_0_20px_-5px_rgba(16,185,129,0.4)]" className="flex-1 py-3 bg-accent text-black text-sm font-bold flex items-center justify-center gap-2 hover:bg-white active:scale-[0.98] transition-all"
> >
Register Now Register
<ArrowRight className="w-4 h-4" /> <ArrowRight className="w-4 h-4" />
</a> </a>
)} )}
@ -408,8 +404,8 @@ export default function RadarPage() {
{/* Hint */} {/* Hint */}
{!searchResult && ( {!searchResult && (
<p className="text-xs text-white/30 mt-3 text-center lg:text-left font-medium"> <p className="text-[10px] text-white/30 mt-3 font-mono">
Type a domain to check status instantly Enter domain to check availability
</p> </p>
)} )}
</div> </div>
@ -417,113 +413,67 @@ export default function RadarPage() {
</div> </div>
</section> </section>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* QUICK ACTIONS - Mobile Grid */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="lg:hidden px-4 pb-6">
<div className="grid grid-cols-3 gap-3">
{[
{ href: '/terminal/watchlist', icon: Eye, label: 'Watchlist', badge: availableDomains.length, color: 'text-emerald-400', bg: 'bg-emerald-400/10', border: 'border-emerald-400/20' },
{ href: '/terminal/market', icon: Gavel, label: 'Market', color: 'text-blue-400', bg: 'bg-blue-400/10', border: 'border-blue-400/20' },
{ href: '/terminal/intel', icon: TrendingUp, label: 'Intel', color: 'text-amber-400', bg: 'bg-amber-400/10', border: 'border-amber-400/20' },
].map((item) => (
<Link
key={item.href}
href={item.href}
className={clsx(
"relative flex flex-col items-center justify-center gap-2 py-4 rounded-xl border transition-all active:scale-[0.96]",
"bg-[#0A0A0A] border-white/[0.08]"
)}
>
<div className={clsx("w-10 h-10 rounded-full flex items-center justify-center", item.bg)}>
<item.icon className={clsx("w-5 h-5", item.color)} />
</div>
<span className="text-[11px] font-medium text-white/70">{item.label}</span>
{item.badge !== undefined && item.badge > 0 && (
<span className="absolute -top-1.5 -right-1.5 min-w-[20px] h-[20px] px-1 bg-accent text-[#020202] text-[10px] font-bold rounded-full flex items-center justify-center border-2 border-[#020202]">
{item.badge}
</span>
)}
</Link>
))}
</div>
</section>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* STATUS BAR */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-4 lg:px-10">
<div className="flex items-center justify-between py-3 lg:py-4 border-y border-white/[0.06] bg-white/[0.01]">
<div className="flex items-center gap-2">
<div className="relative flex h-2 w-2">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-accent opacity-75"></span>
<span className="relative inline-flex rounded-full h-2 w-2 bg-accent"></span>
</div>
<span className="text-xs text-white/50 font-medium">Live Feed</span>
</div>
<div className="flex items-center gap-4 text-xs font-mono">
<span className="text-white/30">{marketStats.totalAuctions.toLocaleString()} total</span>
<span className="text-accent">{marketStats.endingSoon} ending</span>
</div>
</div>
</section>
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* WATCHLIST PREVIEW */} {/* WATCHLIST PREVIEW */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{domains && domains.length > 0 && ( {domains && domains.length > 0 && (
<section className="px-4 lg:px-10 py-6"> <section className="px-4 lg:px-10 py-4">
<div className="flex items-center justify-between mb-4"> <div className="flex items-center justify-between mb-3">
<h2 className="text-sm font-bold text-white uppercase tracking-wider flex items-center gap-2"> <div className="flex items-center gap-2">
<Eye className="w-4 h-4 text-accent" /> <Eye className="w-4 h-4 text-accent" />
Your Watchlist <span className="text-xs font-bold text-white uppercase tracking-wider">Your Watchlist</span>
</h2> <span className="text-[10px] font-mono text-white/30">({domains.length})</span>
<Link href="/terminal/watchlist" className="text-xs font-medium text-accent hover:text-white active:text-white transition-colors flex items-center gap-1"> </div>
<Link href="/terminal/watchlist" className="text-[10px] font-mono text-accent hover:text-white transition-colors flex items-center gap-1">
Manage Manage
<ChevronRight className="w-3 h-3" /> <ChevronRight className="w-3 h-3" />
</Link> </Link>
</div> </div>
<div className="grid grid-cols-1 lg:grid-cols-3 gap-3"> {/* Domain Grid */}
<div className="space-y-px bg-white/[0.04] border border-white/[0.08]">
{domains.slice(0, 6).map((domain) => ( {domains.slice(0, 6).map((domain) => (
<Link <Link
key={domain.id} key={domain.id}
href="/terminal/watchlist" href="/terminal/watchlist"
className={clsx( className={clsx(
"flex items-center gap-3 p-4 bg-[#0A0A0A] border rounded-xl lg:rounded-none transition-all active:scale-[0.99] group", "flex items-center justify-between p-3 bg-[#020202] hover:bg-white/[0.02] active:bg-white/[0.03] transition-all",
domain.is_available domain.is_available && "bg-accent/[0.02]"
? "border-accent/30 bg-accent/[0.03]"
: "border-white/[0.06]"
)} )}
> >
<div className={clsx( <div className="flex items-center gap-3">
"w-10 h-10 rounded-lg lg:rounded-none flex items-center justify-center shrink-0", <div className={clsx(
domain.is_available "w-8 h-8 flex items-center justify-center border",
? "bg-accent/10 border border-accent/20" domain.is_available
: "bg-white/[0.03] border border-white/[0.06]" ? "bg-accent/10 border-accent/20"
)}> : "bg-white/[0.02] border-white/[0.06]"
{domain.is_available ? ( )}>
<CheckCircle2 className="w-5 h-5 text-accent" /> {domain.is_available ? (
) : ( <CheckCircle2 className="w-4 h-4 text-accent" />
<Eye className="w-5 h-5 text-white/30" /> ) : (
)} <Eye className="w-4 h-4 text-white/30" />
</div> )}
<div className="flex-1 min-w-0">
<div className="text-sm font-bold text-white truncate group-hover:text-accent transition-colors">
{domain.name}
</div> </div>
<div>
<div className="text-sm font-bold text-white font-mono">{domain.name}</div>
<div className="text-[10px] font-mono text-white/30">
{domain.registrar || 'Unknown registrar'}
</div>
</div>
</div>
<div className="text-right">
<div className={clsx( <div className={clsx(
"text-[10px] font-bold uppercase tracking-wider", "text-[10px] font-bold uppercase tracking-wider",
domain.is_available ? "text-accent" : "text-white/30" domain.is_available ? "text-accent" : "text-white/30"
)}> )}>
{domain.is_available ? 'Available!' : 'Monitoring'} {domain.is_available ? 'AVAILABLE' : 'TAKEN'}
</div> </div>
{domain.last_checked && (
<div className="text-[9px] font-mono text-white/20">
{new Date(domain.last_checked).toLocaleDateString()}
</div>
)}
</div> </div>
{domain.is_available && (
<span className="px-2 py-1 bg-accent text-[#020202] text-[9px] font-bold rounded-sm shrink-0">
GET IT
</span>
)}
</Link> </Link>
))} ))}
</div> </div>
@ -531,7 +481,7 @@ export default function RadarPage() {
{domains.length > 6 && ( {domains.length > 6 && (
<Link <Link
href="/terminal/watchlist" href="/terminal/watchlist"
className="mt-4 flex items-center justify-center gap-2 py-3 border border-white/[0.08] rounded-xl lg:rounded-none text-white/50 text-xs font-medium hover:text-white hover:border-white/20 active:bg-white/[0.02] transition-all" className="mt-2 flex items-center justify-center gap-2 py-2 border border-white/[0.08] text-white/40 text-[10px] font-mono uppercase tracking-wider hover:text-white hover:border-white/20 active:bg-white/[0.02] transition-all"
> >
View all {domains.length} domains View all {domains.length} domains
<ArrowRight className="w-3 h-3" /> <ArrowRight className="w-3 h-3" />
@ -541,16 +491,17 @@ export default function RadarPage() {
)} )}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* HOT AUCTIONS - Feed Style */} {/* HOT AUCTIONS */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-4 lg:px-10 py-6 pb-28 lg:pb-10"> <section className="px-4 lg:px-10 py-4 pb-28 lg:pb-10">
<div className="flex items-center justify-between mb-4"> <div className="flex items-center justify-between mb-3">
<h2 className="text-sm font-bold text-white uppercase tracking-wider flex items-center gap-2"> <div className="flex items-center gap-2">
<Activity className="w-4 h-4 text-accent" /> <Activity className="w-4 h-4 text-accent" />
Live Auctions <span className="text-xs font-bold text-white uppercase tracking-wider">Live Auctions</span>
</h2> <span className="text-[10px] font-mono text-white/30">({hotAuctions.length})</span>
<Link href="/terminal/market" className="text-xs font-medium text-accent hover:text-white active:text-white transition-colors flex items-center gap-1"> </div>
See all <Link href="/terminal/market" className="text-[10px] font-mono text-accent hover:text-white transition-colors flex items-center gap-1">
View all
<ChevronRight className="w-3 h-3" /> <ChevronRight className="w-3 h-3" />
</Link> </Link>
</div> </div>
@ -560,44 +511,47 @@ export default function RadarPage() {
<Loader2 className="w-6 h-6 text-accent animate-spin" /> <Loader2 className="w-6 h-6 text-accent animate-spin" />
</div> </div>
) : hotAuctions.length > 0 ? ( ) : hotAuctions.length > 0 ? (
<div className="grid grid-cols-1 lg:grid-cols-2 gap-3 lg:gap-px lg:bg-white/[0.06] lg:border lg:border-white/[0.06]"> <div className="space-y-px bg-white/[0.04] border border-white/[0.08]">
{hotAuctions.map((auction, i) => ( {hotAuctions.map((auction, i) => (
<a <a
key={i} key={i}
href={auction.affiliate_url || '#'} href={auction.affiliate_url || '#'}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="flex items-center gap-4 p-4 bg-[#0A0A0A] border border-white/[0.06] rounded-xl lg:rounded-none lg:border-0 hover:bg-white/[0.02] active:scale-[0.99] transition-all group shadow-sm" className="flex items-center justify-between p-3 bg-[#020202] hover:bg-white/[0.02] active:bg-white/[0.03] transition-all group"
> >
<div className="w-10 h-10 lg:w-12 lg:h-12 bg-white/[0.03] border border-white/[0.06] rounded-lg lg:rounded-none flex items-center justify-center shrink-0 group-hover:border-accent/20 group-hover:bg-accent/5 transition-all"> <div className="flex items-center gap-3 min-w-0 flex-1">
<Gavel className="w-4 h-4 lg:w-5 lg:h-5 text-white/40 group-hover:text-accent" /> <div className="w-8 h-8 bg-white/[0.02] border border-white/[0.06] flex items-center justify-center shrink-0">
</div> <Gavel className="w-4 h-4 text-white/40 group-hover:text-accent transition-colors" />
<div className="flex-1 min-w-0">
<div className="text-sm lg:text-base font-bold text-white truncate group-hover:text-accent transition-colors">
{auction.domain}
</div> </div>
<div className="flex items-center gap-2 text-[11px] text-white/40 mt-0.5"> <div className="min-w-0 flex-1">
<span className="uppercase tracking-wider">{auction.platform}</span> <div className="text-sm font-bold text-white font-mono truncate group-hover:text-accent transition-colors">
<span className="text-white/10"></span> {auction.domain}
<span className="flex items-center gap-1 text-white/60"> </div>
<Clock className="w-3 h-3" /> <div className="flex items-center gap-2 text-[10px] font-mono text-white/30">
{auction.time_remaining} <span className="uppercase">{auction.platform}</span>
</span> <span className="text-white/10">|</span>
<span className="flex items-center gap-1">
<Clock className="w-3 h-3" />
{auction.time_remaining}
</span>
</div>
</div> </div>
</div> </div>
<div className="text-right shrink-0"> <div className="text-right shrink-0 ml-3">
<div className="text-base lg:text-lg font-bold text-accent font-mono"> <div className="text-base font-bold text-accent font-mono">
${auction.current_bid.toLocaleString()} ${auction.current_bid.toLocaleString()}
</div> </div>
<div className="text-[9px] font-bold text-white/20 uppercase tracking-wider">current bid</div> <div className="text-[9px] font-mono text-white/20 uppercase">Current Bid</div>
</div> </div>
<ExternalLink className="w-4 h-4 text-white/10 group-hover:text-accent ml-3 shrink-0" />
</a> </a>
))} ))}
</div> </div>
) : ( ) : (
<div className="text-center py-12 border border-dashed border-white/[0.08] rounded-xl"> <div className="text-center py-12 border border-dashed border-white/[0.08]">
<Gavel className="w-8 h-8 text-white/10 mx-auto mb-3" /> <Gavel className="w-8 h-8 text-white/10 mx-auto mb-3" />
<p className="text-white/30 text-sm">No active auctions</p> <p className="text-white/30 text-sm font-mono">No active auctions</p>
</div> </div>
)} )}
@ -627,110 +581,107 @@ export default function RadarPage() {
</section> </section>
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE BOTTOM NAV - Frosted Glass */} {/* MOBILE BOTTOM NAV */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
<nav <nav
className="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#020202]/90 backdrop-blur-xl border-t border-white/[0.08]" className="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#020202] border-t border-white/[0.08]"
style={{ paddingBottom: 'env(safe-area-inset-bottom)' }} style={{ paddingBottom: 'env(safe-area-inset-bottom)' }}
> >
<div className="flex items-stretch h-[60px]"> <div className="flex items-stretch h-14">
{mobileNavItems.map((item) => ( {mobileNavItems.map((item) => (
<Link <Link
key={item.href} key={item.href}
href={item.href} href={item.href}
className={clsx( className={clsx(
"flex-1 flex flex-col items-center justify-center gap-1 relative transition-colors active:scale-95", "flex-1 flex flex-col items-center justify-center gap-0.5 relative transition-colors",
item.active ? "text-accent" : "text-white/40 active:text-white/80" item.active ? "text-accent" : "text-white/40 active:text-white/80"
)} )}
> >
{item.active && ( {item.active && (
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-accent shadow-[0_0_10px_rgba(16,185,129,0.8)]" /> <div className="absolute top-0 left-1/2 -translate-x-1/2 w-10 h-0.5 bg-accent" />
)} )}
<item.icon className={clsx("w-5 h-5 transition-transform", item.active && "scale-110")} /> <item.icon className="w-5 h-5" />
<span className="text-[10px] font-medium">{item.label}</span> <span className="text-[9px] font-mono uppercase tracking-wider">{item.label}</span>
</Link> </Link>
))} ))}
{/* Menu Button */} {/* Menu Button */}
<button <button
onClick={() => setMenuOpen(true)} onClick={() => setMenuOpen(true)}
className="flex-1 flex flex-col items-center justify-center gap-1 text-white/40 active:text-white/80 active:scale-95 transition-all" className="flex-1 flex flex-col items-center justify-center gap-0.5 text-white/40 active:text-white/80 transition-all"
> >
<Menu className="w-5 h-5" /> <Menu className="w-5 h-5" />
<span className="text-[10px] font-medium">Menu</span> <span className="text-[9px] font-mono uppercase tracking-wider">Menu</span>
</button> </button>
</div> </div>
</nav> </nav>
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE DRAWER MENU - Slide Over */} {/* MOBILE DRAWER */}
{/* ═══════════════════════════════════════════════════════════════════════ */} {/* ═══════════════════════════════════════════════════════════════════════ */}
{menuOpen && ( {menuOpen && (
<div className="lg:hidden fixed inset-0 z-[100]"> <div className="lg:hidden fixed inset-0 z-[100]">
{/* Backdrop */} {/* Backdrop */}
<div <div
className="absolute inset-0 bg-black/60 backdrop-blur-sm animate-in fade-in duration-300" className="absolute inset-0 bg-black/80 animate-in fade-in duration-200"
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
/> />
{/* Drawer Panel */} {/* Drawer Panel */}
<div className="absolute top-0 right-0 bottom-0 w-[85%] max-w-[320px] bg-[#0A0A0A] border-l border-white/[0.08] shadow-2xl animate-in slide-in-from-right duration-300 flex flex-col" style={{ paddingTop: 'env(safe-area-inset-top)', paddingBottom: 'env(safe-area-inset-bottom)' }}> <div className="absolute top-0 right-0 bottom-0 w-[80%] max-w-[300px] bg-[#0A0A0A] border-l border-white/[0.08] animate-in slide-in-from-right duration-300 flex flex-col" style={{ paddingTop: 'env(safe-area-inset-top)', paddingBottom: 'env(safe-area-inset-bottom)' }}>
{/* Drawer Header */} {/* Drawer Header */}
<div className="flex items-center justify-between p-5 border-b border-white/[0.08]"> <div className="flex items-center justify-between p-4 border-b border-white/[0.08]">
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<Image src="/pounce-puma.png" alt="Pounce" width={32} height={32} className="object-contain" /> <Image src="/pounce-puma.png" alt="Pounce" width={28} height={28} className="object-contain" />
<div> <div>
<h2 className="text-sm font-bold text-white tracking-wide">POUNCE</h2> <h2 className="text-sm font-bold text-white tracking-wider">POUNCE</h2>
<p className="text-[10px] text-white/40 font-mono tracking-widest uppercase">Terminal</p> <p className="text-[9px] text-white/40 font-mono uppercase tracking-widest">Terminal v1.0</p>
</div> </div>
</div> </div>
<button <button
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
className="w-10 h-10 flex items-center justify-center bg-white/5 rounded-full text-white/60 hover:text-white active:scale-95 transition-all" className="w-8 h-8 flex items-center justify-center border border-white/10 text-white/60 hover:text-white active:bg-white/5 transition-all"
> >
<X className="w-5 h-5" /> <X className="w-4 h-4" />
</button> </button>
</div> </div>
{/* Navigation Sections */} {/* Navigation Sections */}
<div className="flex-1 overflow-y-auto py-6 space-y-8"> <div className="flex-1 overflow-y-auto py-4">
{drawerNavSections.map((section) => ( {drawerNavSections.map((section) => (
<div key={section.title}> <div key={section.title} className="mb-4">
<div className="flex items-center gap-2 px-6 mb-3"> <div className="flex items-center gap-2 px-4 mb-2">
<div className="w-1 h-3 bg-accent rounded-full" /> <div className="w-1 h-3 bg-accent" />
<span className="text-[11px] font-bold text-white/40 uppercase tracking-[0.2em]">{section.title}</span> <span className="text-[9px] font-bold text-white/30 uppercase tracking-[0.2em]">{section.title}</span>
</div> </div>
<div className="space-y-1"> <div>
{section.items.map((item: any) => ( {section.items.map((item: any) => (
<Link <Link
key={item.href} key={item.href}
href={item.href} href={item.href}
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
className="flex items-center gap-4 px-6 py-3.5 text-white/70 active:text-white active:bg-white/[0.03] transition-colors border-l-2 border-transparent active:border-accent" className="flex items-center gap-3 px-4 py-2.5 text-white/60 active:text-white active:bg-white/[0.03] transition-colors border-l-2 border-transparent active:border-accent"
> >
<item.icon className="w-5 h-5 text-white/40" /> <item.icon className="w-4 h-4 text-white/30" />
<span className="text-sm font-medium flex-1">{item.label}</span> <span className="text-sm font-medium flex-1">{item.label}</span>
{item.isNew && ( {item.isNew && (
<span className="px-2 py-0.5 text-[9px] font-bold bg-accent text-[#020202] rounded-sm"> <span className="px-1.5 py-0.5 text-[8px] font-bold bg-accent text-black">NEW</span>
NEW
</span>
)} )}
<ChevronRight className="w-4 h-4 text-white/10" />
</Link> </Link>
))} ))}
</div> </div>
</div> </div>
))} ))}
{/* Settings Group */} {/* Settings */}
<div className="pt-4 border-t border-white/[0.08] mx-6"> <div className="pt-3 border-t border-white/[0.08] mx-4">
<Link <Link
href="/terminal/settings" href="/terminal/settings"
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
className="flex items-center gap-3 py-3 text-white/60 active:text-white transition-colors" className="flex items-center gap-3 py-2.5 text-white/50 active:text-white transition-colors"
> >
<Settings className="w-5 h-5" /> <Settings className="w-4 h-4" />
<span className="text-sm font-medium">Settings</span> <span className="text-sm font-medium">Settings</span>
</Link> </Link>
@ -738,33 +689,26 @@ export default function RadarPage() {
<Link <Link
href="/admin" href="/admin"
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
className="flex items-center gap-3 py-3 text-amber-500/80 active:text-amber-400 transition-colors" className="flex items-center gap-3 py-2.5 text-amber-500/70 active:text-amber-400 transition-colors"
> >
<Shield className="w-5 h-5" /> <Shield className="w-4 h-4" />
<span className="text-sm font-medium">Admin Panel</span> <span className="text-sm font-medium">Admin</span>
</Link> </Link>
)} )}
</div> </div>
</div> </div>
{/* User Card - Bottom */} {/* User Card */}
<div className="p-5 bg-white/[0.02] border-t border-white/[0.08]"> <div className="p-4 bg-white/[0.02] border-t border-white/[0.08]">
<div className="flex items-center gap-3 mb-4"> <div className="flex items-center gap-3 mb-3">
<div className="w-10 h-10 bg-gradient-to-br from-accent/20 to-accent/5 rounded-full flex items-center justify-center border border-accent/20"> <div className="w-8 h-8 bg-accent/10 border border-accent/20 flex items-center justify-center">
<TierIcon className="w-5 h-5 text-accent" /> <TierIcon className="w-4 h-4 text-accent" />
</div> </div>
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
<p className="text-sm font-bold text-white truncate"> <p className="text-sm font-bold text-white truncate">
{user?.name || user?.email?.split('@')[0] || 'User'} {user?.name || user?.email?.split('@')[0] || 'User'}
</p> </p>
<p className={clsx( <p className="text-[9px] font-mono text-white/40 uppercase tracking-wider">{tierName}</p>
"text-[10px] font-mono uppercase tracking-wider",
tierName === 'Tycoon' ? "text-amber-400" :
tierName === 'Trader' ? "text-accent" :
"text-white/40"
)}>
{tierName} Plan
</p>
</div> </div>
</div> </div>
@ -772,18 +716,18 @@ export default function RadarPage() {
<Link <Link
href="/pricing" href="/pricing"
onClick={() => setMenuOpen(false)} onClick={() => setMenuOpen(false)}
className="flex items-center justify-center gap-2 w-full py-3 bg-white text-black text-sm font-bold rounded-lg active:scale-[0.98] transition-all mb-3 shadow-lg" className="flex items-center justify-center gap-2 w-full py-2.5 bg-accent text-black text-xs font-bold uppercase tracking-wider active:scale-[0.98] transition-all mb-2"
> >
<Sparkles className="w-4 h-4 text-accent" /> <Sparkles className="w-3 h-3" />
Upgrade Now Upgrade
</Link> </Link>
)} )}
<button <button
onClick={() => { logout(); setMenuOpen(false) }} onClick={() => { logout(); setMenuOpen(false) }}
className="flex items-center justify-center gap-2 w-full py-3 border border-white/10 rounded-lg text-white/50 text-xs font-bold uppercase tracking-wider hover:text-white active:bg-white/5 transition-all" className="flex items-center justify-center gap-2 w-full py-2 border border-white/10 text-white/40 text-[10px] font-mono uppercase tracking-wider active:bg-white/5 transition-all"
> >
<LogOut className="w-4 h-4" /> <LogOut className="w-3 h-3" />
Sign out Sign out
</button> </button>
</div> </div>