chore: add visual preview HTML for MonacoUSA visual audit
Build And Push Image / docker (push) Successful in 1m56s Details

This commit is contained in:
Matt 2025-09-05 17:33:59 +02:00
parent 5e5bcdfb4f
commit e54ef9e596
1 changed files with 295 additions and 0 deletions

View File

@ -0,0 +1,295 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>MonacoUSA — Visual Preview (Dashboard / Member)</title>
<style>
/* MonacoUSA Design Tokens (subset) */
:root{
--monaco-red: #dc2626;
--monaco-red-dark: #b91c1c;
--monaco-white: #ffffff;
--monaco-gold: #ffd700;
--neutral-50: #F8FAFC;
--neutral-100: #F1F5F9;
--neutral-300: #CBD5E1;
--neutral-500: #64748B;
--neutral-700: #334155;
--glass-bg: rgba(255,255,255,0.85);
--glass-border: rgba(255,255,255,0.18);
--shadow-soft: 0 10px 30px rgba(17,24,39,0.06);
--radius-lg: 12px;
--radius-xl: 16px;
--max-width: 1200px;
--page-padding: 20px;
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
color: var(--neutral-700);
background: linear-gradient(180deg, var(--neutral-50), #ffffff);
}
body { margin: 0; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.app {
max-width: var(--max-width);
margin: 28px auto;
padding: var(--page-padding);
}
/* Top bar */
.topbar {
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
padding:12px 16px;
border-radius: 12px;
background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(250,250,250,0.9));
box-shadow: var(--shadow-soft);
border: 1px solid rgba(0,0,0,0.03);
}
.brand { display:flex; align-items:center; gap:12px; }
.brand .logo {
width:48px; height:48px; border-radius:10px;
background: linear-gradient(135deg,var(--monaco-red),var(--monaco-red-dark));
display:flex; align-items:center; justify-content:center; color:white; font-weight:700;
box-shadow: 0 8px 20px rgba(185,28,28,0.12);
}
.brand h1 { margin:0; font-size:18px; color:var(--neutral-700); }
.actions { display:flex; gap:8px; align-items:center; }
/* Layout */
.layout { display:grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top:18px; align-items:start; }
/* Sidebar (glass) */
.sidebar {
background: var(--glass-bg);
border-radius: 14px;
padding: 16px;
border: 1px solid var(--glass-border);
box-shadow: 0 8px 32px rgba(31,41,55,0.06);
}
.sidebar .nav { display:flex; flex-direction:column; gap:8px; }
.nav a {
display:flex; align-items:center; gap:8px; padding:10px; border-radius:10px; color:var(--neutral-700);
text-decoration:none; font-weight:600;
}
.nav a.active { background: linear-gradient(90deg, rgba(220,38,38,0.08), rgba(220,38,38,0.04)); color:var(--monaco-red); }
/* Main content cards */
.content { min-height:400px; }
.row { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-bottom:16px; }
.card {
background: var(--glass-bg);
border-radius: var(--radius-lg);
padding:18px;
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-soft);
}
.card h3 { margin:0 0 8px 0; font-size:14px; color:var(--neutral-700); }
.stat { font-size:22px; font-weight:700; color:var(--monaco-red); }
/* Quick actions / buttons */
.btn {
display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:10px; font-weight:600; cursor:pointer;
border: none; background: var(--monaco-red); color:white;
}
.btn.ghost { background:transparent; color:var(--neutral-700); border:1px solid var(--neutral-200); }
/* Member profile mock */
.profile {
display:grid;
grid-template-columns: 200px 1fr;
gap:18px;
align-items:start;
}
.avatar {
width:200px; border-radius:18px; padding:12px; text-align:center; background:linear-gradient(180deg,#fff,#fafafa);
border:1px solid rgba(0,0,0,0.03); box-shadow:0 6px 18px rgba(0,0,0,0.04);
}
.avatar img { width:120px; height:120px; border-radius:16px; object-fit:cover; display:block; margin:8px auto; }
.meta h2 { margin:0 0 6px 0; }
.meta p { margin:0; color:var(--neutral-500); }
/* smaller screens */
@media (max-width:900px){
.layout { grid-template-columns:1fr; }
.row { grid-template-columns: repeat(2, 1fr); }
.profile { grid-template-columns: 1fr; }
}
/* simple toggles in demo */
.views { display:flex; gap:8px; margin-top:16px; }
.views button { padding:8px 12px; border-radius:10px; border:1px solid var(--neutral-200); background:white; cursor:pointer; }
.hidden { display:none; }
footer { margin-top:28px; text-align:center; color:var(--neutral-300); font-size:13px; }
</style>
</head>
<body>
<div class="app">
<div class="topbar" role="banner" aria-label="MonacoUSA topbar">
<div class="brand">
<div class="logo" aria-hidden="true">M</div>
<div>
<h1>MonacoUSA Portal</h1>
<div style="font-size:12px;color:var(--neutral-500)">Admin preview — MonacoUSA theme</div>
</div>
</div>
<div class="actions" role="navigation" aria-label="Global actions">
<button class="btn ghost" onclick="switchView('dashboard')">Preview Dashboard</button>
<button class="btn" onclick="switchView('profile')">Preview Member</button>
</div>
</div>
<div class="layout" role="main">
<aside class="sidebar" aria-label="Sidebar">
<nav class="nav">
<a class="active" href="#" onclick="switchView('dashboard'); return false;">Dashboard</a>
<a href="#" onclick="switchView('members'); return false;">Members</a>
<a href="#" onclick="switchView('events'); return false;">Events</a>
<a href="#" onclick="switchView('payments'); return false;">Payments & Dues</a>
<a href="#" onclick="switchView('settings'); return false;">Settings</a>
</nav>
<div style="margin-top:18px; display:flex; gap:8px;">
<button class="btn" onclick="alert('CTA')">Create Event</button>
<button class="btn ghost" onclick="alert('Export')">Export</button>
</div>
</aside>
<section class="content">
<!-- Dashboard view -->
<div id="dashboard-view">
<div class="row" aria-label="Key stats">
<div class="card">
<h3>Upcoming Events</h3>
<div class="stat">12</div>
<div style="font-size:13px;color:var(--neutral-500)">Next: Business Luncheon — Sept 24</div>
</div>
<div class="card">
<h3>Members</h3>
<div class="stat">1,562</div>
<div style="font-size:13px;color:var(--neutral-500)">Active this month: 52</div>
</div>
<div class="card">
<h3>Dues Outstanding</h3>
<div class="stat">$4,320</div>
<div style="font-size:13px;color:var(--neutral-500)">Overdue: 8 members</div>
</div>
</div>
<div class="card" style="margin-bottom:12px;">
<h3>Quick Actions</h3>
<div style="display:flex; gap:12px; margin-top:12px;">
<button class="btn">Add Member</button>
<button class="btn ghost">Send Announcement</button>
<button class="btn ghost">Upload Document</button>
</div>
</div>
<div class="card">
<h3>Recent Activity</h3>
<ul style="margin:12px 0 0 0; padding-left:18px; color:var(--neutral-500);">
<li>Payment received from Jane D. — $120</li>
<li>Event RSVP updated — Board Meeting</li>
<li>Member profile updated — John Doe</li>
</ul>
</div>
</div>
<!-- Members list view (simple mock) -->
<div id="members-view" class="hidden">
<div class="card">
<h3>Members</h3>
<div style="display:flex;flex-direction:column;gap:8px;margin-top:10px;">
<div style="display:flex;align-items:center;gap:12px;justify-content:space-between;">
<div style="display:flex;align-items:center;gap:12px;">
<div style="width:48px;height:48px;border-radius:8px;background:var(--neutral-100);"></div>
<div>
<div style="font-weight:700">John Doe</div>
<div style="color:var(--neutral-500;font-size:13px)">john.doe@example.com</div>
</div>
</div>
<div>
<button class="btn ghost" onclick="switchView('profile')">View</button>
</div>
</div>
<div style="height:8px;border-bottom:1px dashed rgba(0,0,0,0.04)"></div>
<div style="display:flex;align-items:center;gap:12px;justify-content:space-between;">
<div style="display:flex;align-items:center;gap:12px;">
<div style="width:48px;height:48px;border-radius:8px;background:var(--neutral-100);"></div>
<div>
<div style="font-weight:700">Jane Smith</div>
<div style="color:var(--neutral-500;font-size:13px)">jane.smith@company.com</div>
</div>
</div>
<div>
<button class="btn ghost" onclick="alert('Open')">View</button>
</div>
</div>
</div>
</div>
</div>
<!-- Member profile view -->
<div id="profile-view" class="hidden">
<div class="profile card">
<div class="avatar">
<img src="../public/monaco_high_res.jpg" alt="Member photo" />
<div style="font-weight:700;margin-top:12px;">John Doe</div>
<div style="color:var(--neutral-500);font-size:13px">Member • Premium</div>
<div style="margin-top:10px"><button class="btn">Message</button></div>
</div>
<div class="meta">
<h2>John Doe</h2>
<p style="margin-bottom:8px;color:var(--neutral-500)">CEO • Tech Innovations Inc.</p>
<div style="display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px;">
<div style="background:var(--neutral-100);padding:12px;border-radius:10px;">
<div style="font-size:13px;color:var(--neutral-500)">Email</div>
<div style="font-weight:700">john.doe@example.com</div>
</div>
<div style="background:var(--neutral-100);padding:12px;border-radius:10px;">
<div style="font-size:13px;color:var(--neutral-500)">Phone</div>
<div style="font-weight:700">+1 234 567 8900</div>
</div>
<div style="background:var(--neutral-100);padding:12px;border-radius:10px;">
<div style="font-size:13px;color:var(--neutral-500)">Location</div>
<div style="font-weight:700">Monaco</div>
</div>
<div style="background:var(--neutral-100);padding:12px;border-radius:10px;">
<div style="font-size:13px;color:var(--neutral-500)">Member Since</div>
<div style="font-weight:700">2021</div>
</div>
</div>
<div style="margin-top:18px;">
<h3 style="margin:0 0 8px 0;">Bio</h3>
<p style="color:var(--neutral-500);margin:0;">Passionate about business and innovation. Active member of the Monaco business community. Interested in mentoring and partnerships.</p>
</div>
</div>
</div>
</div>
</section>
</div>
<footer>
Live preview (static HTML) — MonacoUSA visual proposal • Colors and spacing follow the design system.
</footer>
</div>
<script>
function switchView(view){
document.getElementById('dashboard-view').classList.add('hidden');
document.getElementById('members-view').classList.add('hidden');
document.getElementById('profile-view').classList.add('hidden');
if(view === 'dashboard') document.getElementById('dashboard-view').classList.remove('hidden');
if(view === 'members') document.getElementById('members-view').classList.remove('hidden');
if(view === 'profile') document.getElementById('profile-view').classList.remove('hidden');
window.scrollTo(0,0);
}
// default
switchView('dashboard');
</script>
</body>
</html>