f69efb67ad
- Tauri desktop app (apps/desktop) - Python Django API service (services/api) - Deployment scripts and docs
242 lines
12 KiB
HTML
242 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html class="light" lang="en"><head>
|
|
<meta charset="utf-8"/>
|
|
<meta content="width=device-width, initial-scale=1.0, viewport-fit=cover" name="viewport"/>
|
|
<title>NetGuard Workspace - Connected</title>
|
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"on-tertiary-fixed-variant": "#7b2e00",
|
|
"secondary-container": "#6bfd6a",
|
|
"on-tertiary-container": "#fffbff",
|
|
"on-secondary": "#ffffff",
|
|
"secondary-fixed-dim": "#4ee253",
|
|
"on-secondary-fixed-variant": "#00530e",
|
|
"primary-fixed": "#dbe1ff",
|
|
"on-secondary-fixed": "#002203",
|
|
"tertiary-fixed": "#ffdbcc",
|
|
"surface-container": "#ebeef6",
|
|
"inverse-on-surface": "#eef1f9",
|
|
"tertiary-fixed-dim": "#ffb695",
|
|
"primary": "#0050d6",
|
|
"tertiary": "#9e3e00",
|
|
"on-primary": "#ffffff",
|
|
"surface": "#f8f9ff",
|
|
"secondary-fixed": "#72ff70",
|
|
"surface-container-low": "#f1f3fc",
|
|
"on-secondary-container": "#007317",
|
|
"on-primary-fixed-variant": "#003ea8",
|
|
"surface-bright": "#f8f9ff",
|
|
"error": "#ba1a1a",
|
|
"on-primary-container": "#fefcff",
|
|
"on-error-container": "#93000a",
|
|
"surface-tint": "#0053db",
|
|
"surface-container-high": "#e5e8f0",
|
|
"primary-fixed-dim": "#b4c5ff",
|
|
"on-tertiary-fixed": "#351000",
|
|
"secondary": "#006e16",
|
|
"outline-variant": "#c3c6d8",
|
|
"primary-container": "#2a6af9",
|
|
"tertiary-container": "#c64f00",
|
|
"on-error": "#ffffff",
|
|
"outline": "#737687",
|
|
"on-primary-fixed": "#00174b",
|
|
"on-tertiary": "#ffffff",
|
|
"surface-variant": "#dfe2eb",
|
|
"surface-container-highest": "#dfe2eb",
|
|
"background": "#f8f9ff",
|
|
"on-surface-variant": "#424655",
|
|
"inverse-primary": "#b4c5ff",
|
|
"error-container": "#ffdad6",
|
|
"surface-container-lowest": "#ffffff",
|
|
"on-surface": "#181c22",
|
|
"on-background": "#181c22",
|
|
"surface-dim": "#d7dae2",
|
|
"inverse-surface": "#2d3137"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"xs": "4px",
|
|
"sm": "8px",
|
|
"xl": "32px",
|
|
"lg": "24px",
|
|
"xxl": "48px",
|
|
"md": "16px"
|
|
},
|
|
"fontFamily": {
|
|
"h1": ["Inter"], "body-lg": ["Inter"], "caption": ["Inter"], "label-sm": ["Inter"], "label-md": ["Inter"], "h2": ["Inter"], "body-md": ["Inter"], "display": ["Inter"]
|
|
},
|
|
"fontSize": {
|
|
"h1": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"caption": ["12px", {"lineHeight": "18px", "fontWeight": "400"}],
|
|
"label-sm": ["12px", {"lineHeight": "18px", "fontWeight": "500"}],
|
|
"label-md": ["14px", {"lineHeight": "20px", "fontWeight": "500"}],
|
|
"h2": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"body-md": ["14px", {"lineHeight": "22px", "fontWeight": "400"}],
|
|
"display": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "600"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
display: inline-block;
|
|
line-height: 1;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
word-wrap: normal;
|
|
white-space: nowrap;
|
|
direction: ltr;
|
|
}
|
|
.glow-ring {
|
|
box-shadow: 0 0 30px 2px rgba(107, 253, 106, 0.4);
|
|
}
|
|
body {
|
|
background-color: #F5F6F7;
|
|
}
|
|
</style>
|
|
<style>
|
|
body {
|
|
min-height: max(884px, 100dvh);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="font-body-md text-on-surface">
|
|
<!-- TopAppBar -->
|
|
<header class="bg-white/95 dark:bg-gray-900/95 backdrop-blur-md border-b border-gray-100 dark:border-gray-800 shadow-[0_2px_8px_rgba(31,35,41,0.05)] flex justify-between items-center w-full px-5 h-14 fixed top-0 z-50">
|
|
<div class="flex items-center gap-md">
|
|
<div class="w-8 h-8 rounded-full bg-surface-container-high overflow-hidden">
|
|
<img alt="User Profile" class="w-full h-full object-cover" data-alt="close up professional headshot of a friendly software engineer in a neutral modern workspace environment" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAQG9CPq5pjfC-F-JVvJFS8Lnm2VNZJirLA0IwizTwKsyRyxcl74mSOUy2QBCjIpSzAIJ0HMCKTnAM-TM20XHjhe8jrZMh30nysyP1OYTmEWV2pCeSXeiEVk_4_ALk0bhRxaMboa3g8TNtY625q6ulVJyw_ERncbwfljlrHxJ2azLkhDfS22OnJvisgcjghdjx1WLhT5ySBwHpQRsRcD7-mdd3w0_1YtcBKPH5AMZh8Bx4EIcP-8OpnX2lka-1wLsnFKVpoSGKVCOjd"/>
|
|
</div>
|
|
<h1 class="font-['Inter'] text-lg font-semibold tracking-tight text-gray-900 dark:text-gray-100">NetGuard Workspace</h1>
|
|
</div>
|
|
<button class="w-10 h-10 flex items-center justify-center rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors active:opacity-70">
|
|
<span class="material-symbols-outlined text-gray-500" data-icon="settings">settings</span>
|
|
</button>
|
|
</header>
|
|
<!-- Main Content Canvas -->
|
|
<main class="pt-20 pb-24 px-lg max-w-lg mx-auto space-y-lg">
|
|
<!-- Connection Status & Button Hero -->
|
|
<section class="flex flex-col items-center justify-center py-lg space-y-md">
|
|
<!-- Connection Ring Visualization -->
|
|
<div class="relative flex items-center justify-center">
|
|
<div class="absolute w-56 h-56 rounded-full border-2 border-secondary-container/20 animate-pulse"></div>
|
|
<div class="absolute w-48 h-48 rounded-full border border-secondary-container/30"></div>
|
|
<button class="relative w-40 h-40 bg-white rounded-full flex flex-col items-center justify-center shadow-xl border-4 border-secondary-container glow-ring active:scale-95 transition-all duration-150">
|
|
<span class="material-symbols-outlined text-secondary text-[48px] mb-xs" data-icon="power_settings_new" data-weight="fill" style="font-variation-settings: 'FILL' 1;">power_settings_new</span>
|
|
<span class="font-label-md text-on-surface tracking-wide">Disconnect</span>
|
|
</button>
|
|
</div>
|
|
<div class="text-center space-y-xs">
|
|
<div class="flex items-center justify-center gap-xs">
|
|
<div class="w-2 h-2 rounded-full bg-secondary"></div>
|
|
<p class="font-h2 text-secondary">VPN Connected</p>
|
|
</div>
|
|
<p class="font-caption text-outline">Secure tunnel established via WireGuard</p>
|
|
</div>
|
|
</section>
|
|
<!-- IP Display Card -->
|
|
<div class="bg-white rounded-xl p-lg shadow-[0_2px_12px_rgba(31,35,41,0.04)] border border-gray-50">
|
|
<div class="flex items-center justify-between">
|
|
<div>
|
|
<p class="font-caption text-outline mb-xs">Virtual IP Address</p>
|
|
<p class="font-display text-primary tracking-tight">10.8.0.42</p>
|
|
</div>
|
|
<div class="p-md bg-primary-fixed rounded-lg">
|
|
<span class="material-symbols-outlined text-primary" data-icon="vpn_lock">vpn_lock</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Bento Stats Grid -->
|
|
<div class="grid grid-cols-2 gap-md">
|
|
<!-- Uptime Card -->
|
|
<div class="bg-white rounded-xl p-md shadow-[0_2px_12px_rgba(31,35,41,0.04)] border border-gray-50 flex flex-col">
|
|
<div class="flex items-center gap-xs mb-sm">
|
|
<span class="material-symbols-outlined text-outline text-body-lg" data-icon="schedule">schedule</span>
|
|
<span class="font-label-sm text-outline">Uptime</span>
|
|
</div>
|
|
<p class="font-h2 text-on-surface">04:12:15</p>
|
|
</div>
|
|
<!-- Transfer Speed Card -->
|
|
<div class="bg-white rounded-xl p-md shadow-[0_2px_12px_rgba(31,35,41,0.04)] border border-gray-50 flex flex-col">
|
|
<div class="flex items-center gap-xs mb-sm">
|
|
<span class="material-symbols-outlined text-outline text-body-lg" data-icon="speed">speed</span>
|
|
<span class="font-label-sm text-outline">Transfer Speed</span>
|
|
</div>
|
|
<p class="font-h2 text-on-surface">1.2 MB/s</p>
|
|
</div>
|
|
</div>
|
|
<!-- Recent Activity -->
|
|
<section class="space-y-md">
|
|
<div class="flex items-center justify-between">
|
|
<h3 class="font-h2 text-on-surface">Recent Activity</h3>
|
|
<button class="text-primary font-label-md">View All</button>
|
|
</div>
|
|
<div class="bg-white rounded-xl overflow-hidden shadow-[0_2px_12px_rgba(31,35,41,0.04)] border border-gray-50">
|
|
<!-- Activity Item 1 -->
|
|
<div class="flex items-center gap-md p-md border-b border-gray-50 hover:bg-gray-50 transition-colors">
|
|
<div class="w-10 h-10 rounded-lg bg-surface-container-low flex items-center justify-center">
|
|
<span class="material-symbols-outlined text-outline" data-icon="laptop_mac">laptop_mac</span>
|
|
</div>
|
|
<div class="flex-1">
|
|
<p class="font-label-md text-on-surface">MacBook Pro 16"</p>
|
|
<p class="font-caption text-outline">Connected 5m ago • Office</p>
|
|
</div>
|
|
<span class="material-symbols-outlined text-secondary" data-icon="check_circle" data-weight="fill" style="font-variation-settings: 'FILL' 1;">check_circle</span>
|
|
</div>
|
|
<!-- Activity Item 2 -->
|
|
<div class="flex items-center gap-md p-md hover:bg-gray-50 transition-colors">
|
|
<div class="w-10 h-10 rounded-lg bg-surface-container-low flex items-center justify-center">
|
|
<span class="material-symbols-outlined text-outline" data-icon="smartphone">smartphone</span>
|
|
</div>
|
|
<div class="flex-1">
|
|
<p class="font-label-md text-on-surface">iPhone 15 Pro</p>
|
|
<p class="font-caption text-outline">Connected 12m ago • Mobile</p>
|
|
</div>
|
|
<span class="material-symbols-outlined text-secondary" data-icon="check_circle" data-weight="fill" style="font-variation-settings: 'FILL' 1;">check_circle</span>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<!-- BottomNavBar -->
|
|
<nav class="bg-white dark:bg-gray-900 border-t border-gray-100 dark:border-gray-800 shadow-[0_-2px_10px_rgba(31,35,41,0.03)] fixed bottom-0 w-full z-50 pb-safe">
|
|
<div class="flex justify-around items-center h-16 w-full px-2">
|
|
<!-- Connection (Active) -->
|
|
<div class="flex flex-col items-center justify-center text-[#3370FF] dark:text-blue-400 active:scale-95 transition-transform duration-150">
|
|
<span class="material-symbols-outlined mb-1" data-icon="security" data-weight="fill" style="font-variation-settings: 'FILL' 1;">security</span>
|
|
<span class="font-['Inter'] text-[11px] font-medium">Connection</span>
|
|
</div>
|
|
<!-- Devices -->
|
|
<div class="flex flex-col items-center justify-center text-gray-500 dark:text-gray-400 hover:text-[#3370FF] active:scale-95 transition-transform duration-150">
|
|
<span class="material-symbols-outlined mb-1" data-icon="devices">devices</span>
|
|
<span class="font-['Inter'] text-[11px] font-medium">Devices</span>
|
|
</div>
|
|
<!-- Logs -->
|
|
<div class="flex flex-col items-center justify-center text-gray-500 dark:text-gray-400 hover:text-[#3370FF] active:scale-95 transition-transform duration-150">
|
|
<span class="material-symbols-outlined mb-1" data-icon="list_alt">list_alt</span>
|
|
<span class="font-['Inter'] text-[11px] font-medium">Logs</span>
|
|
</div>
|
|
<!-- Profile -->
|
|
<div class="flex flex-col items-center justify-center text-gray-500 dark:text-gray-400 hover:text-[#3370FF] active:scale-95 transition-transform duration-150">
|
|
<span class="material-symbols-outlined mb-1" data-icon="person">person</span>
|
|
<span class="font-['Inter'] text-[11px] font-medium">Profile</span>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</body></html> |