Skip to content
Draft
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
10 changes: 5 additions & 5 deletions dashboard/src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function LoginPage() {
))}
</div>

<div className="relative z-10 w-full max-w-6xl mx-auto px-4 py-12">
<div className="relative z-10 w-full max-w-6xl mx-auto px-3 sm:px-4 py-8 sm:py-12">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
{/* Left Side - Branding & Info */}
<motion.div
Expand All @@ -95,7 +95,7 @@ export default function LoginPage() {
</div>
</div>

<h2 className="text-3xl lg:text-4xl font-bold text-white leading-tight">
<h2 className="text-2xl sm:text-3xl lg:text-4xl font-bold text-white leading-tight">
Enterprise Zero-Knowledge<br />
<span className="text-tactical-cyan">Privacy Protocol</span>
</h2>
Expand Down Expand Up @@ -147,7 +147,7 @@ export default function LoginPage() {
initial={{ opacity: 0, x: 50 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.6, delay: 0.2 }}
className="tactical-glass p-8 lg:p-12 border border-white/10 rounded-2xl backdrop-blur-xl"
className="tactical-glass p-6 sm:p-8 lg:p-12 border border-white/10 rounded-2xl backdrop-blur-xl"
>
<div className="space-y-8">
<div className="text-center space-y-3">
Expand All @@ -165,7 +165,7 @@ export default function LoginPage() {
whileTap={{ scale: 0.98 }}
onClick={handleConnect}
disabled={connecting}
className="w-full btn-primary py-6 text-lg font-bold uppercase tracking-widest flex items-center justify-center gap-3 shadow-[0_0_30px_rgba(0,243,255,0.3)] disabled:opacity-50 disabled:cursor-not-allowed"
className="w-full btn-primary py-4 sm:py-6 text-base sm:text-lg font-bold uppercase tracking-widest flex items-center justify-center gap-2 sm:gap-3 shadow-[0_0_30px_rgba(0,243,255,0.3)] disabled:opacity-50 disabled:cursor-not-allowed"
>
<Wallet className="w-6 h-6" />
{connecting ? 'Connecting...' : 'Connect Wallet'}
Expand All @@ -181,7 +181,7 @@ export default function LoginPage() {
</div>
</div>

<div className="grid grid-cols-3 gap-3">
<div className="grid grid-cols-3 gap-2 sm:gap-3">
{['Phantom', 'Solflare', 'Coinbase'].map((wallet) => (
<div
key={wallet}
Expand Down
19 changes: 14 additions & 5 deletions dashboard/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { TacticalOperations } from "@/components/TacticalOperations";
import { PathVisualizer } from "@/components/PathVisualizer";
import { ActivityLedger } from "@/components/ActivityLedger";
import { useToast } from "@/components/Toast";
import { Search, Crosshair, AlertCircle, Shield, Zap, Activity, Wallet, ChevronDown, Menu, Globe } from "lucide-react";
import { Search, Crosshair, AlertCircle, Shield, Zap, Activity, Wallet, ChevronDown, Globe } from "lucide-react";
import { motion, AnimatePresence } from "framer-motion";
import { useWallet, useConnection } from '@solana/wallet-adapter-react';
import { useWalletModal } from '@solana/wallet-adapter-react-ui';
Expand Down Expand Up @@ -348,8 +348,17 @@ export default function Home() {
</div>

<div className="lg:hidden">
<button className="p-2 hover:bg-white/5 rounded-lg transition-colors">
<Menu className="w-5 h-5 text-white/60" />
<button
onClick={() => {
if (!connected) { handleWalletConnect(); } else { handleWalletDisconnect(); }
}}
className="flex items-center gap-2 px-3 py-2 bg-white/5 rounded-lg border border-white/10 hover:bg-white/10 transition-colors"
disabled={connecting}
>
<Wallet className="w-4 h-4 text-white/60" />
<span className="text-xs text-white/80 font-mono">
{connecting ? '...' : connected && address ? truncateAddress(sanitizeInput(address)) : 'Connect'}
</span>
</button>
</div>
</header>
Expand All @@ -364,15 +373,15 @@ export default function Home() {
<input
type="text"
placeholder="Paste wallet or transaction to analyze privacy exposure"
className={`input-primary pl-12 pr-32 text-lg h-16 sm:h-18 ${searchError ? 'error' : ''}`}
className={`input-primary pl-12 pr-28 sm:pr-32 text-sm sm:text-lg h-12 sm:h-16 ${searchError ? 'error' : ''}`}
value={searchInput}
onChange={(e) => {
setSearchInput(e.target.value);
setSearchError("");
}}
/>
<div className="absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-2">
<motion.button whileHover={{ scale: 1.02 }} whileTap={{ scale: 0.98 }} type="submit" disabled={loading || !!searchError} className="btn-primary px-6 py-3 text-base font-medium min-w-[140px]">
<motion.button whileHover={{ scale: 1.02 }} whileTap={{ scale: 0.98 }} type="submit" disabled={loading || !!searchError} className="btn-primary px-3 sm:px-6 py-2 sm:py-3 text-xs sm:text-base font-medium min-w-[100px] sm:min-w-[140px]">
{loading ? "Scanning..." : "Run Forensic Scan"}
</motion.button>
</div>
Expand Down