Files
smart-city-digital-twin-mar…/smart-app-city/design/10-wallet-v2.html
Eric FELIXINE e30ae8ed09 feat(smart-app): implement complete mobile app MVP
- App.tsx: full navigation (Auth stack + Main tabs with 5 screens)
- Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen
- HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors
- MapScreen: interactive map with layer toggles (6 layers)
- MarketplaceScreen: categories (6), products (5), search
- ChatScreen: AI chat with quick prompts (4), bot responses
- ProfileScreen: user info, stats, menu (9 items), logout
- AlertsScreen: alert list with severity, acknowledge
- SensorsScreen: sensor list with type filters (6 types), search
- ZonesScreen: zone cards with stats
- SettingsScreen: language picker (FR/EN/ES/DE), privacy, about
- Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n
- Hooks: useSensors, useAlerts, useNotifications, useLocation
- Components: Card, Button, LoadingSpinner, ErrorBoundary, Header
- Services: iotService, notificationService (with axios API client)
- Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN)
- Theme: colors.ts with full design system (Blue Ocean palette)
- Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
2026-06-01 18:00:35 -04:00

206 lines
8.4 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart App City v2 — 10 Wallet DPI</title>
<link rel="stylesheet" href="shared-blue.css">
<style>
.wallet-header {
padding: 20px 16px;
background: linear-gradient(135deg, var(--primary-700), var(--indigo-600));
color: white;
text-align: center;
}
.wallet-balance-label { font-size: var(--text-sm); opacity: 0.8; margin-bottom: 4px; }
.wallet-balance { font-size: var(--text-4xl); font-weight: var(--weight-bold); margin-bottom: 4px; }
.wallet-balance-sub { font-size: var(--text-xs); opacity: 0.6; }
.wallet-actions {
display: flex; justify-content: center;
gap: 24px; margin-top: 20px;
}
.wallet-action {
display: flex; flex-direction: column;
align-items: center; gap: 6px;
cursor: pointer;
}
.wallet-action-icon {
width: 48px; height: 48px;
border-radius: var(--radius-full);
background: rgba(255,255,255,0.15);
display: flex; align-items: center; justify-content: center;
font-size: 22px;
backdrop-filter: blur(4px);
}
.wallet-action-label { font-size: 10px; opacity: 0.8; }
.tx-item {
display: flex; gap: 12px;
padding: 14px 16px;
background: white;
border-bottom: 1px solid var(--neutral-100);
align-items: center;
}
.tx-icon {
width: 40px; height: 40px;
border-radius: var(--radius-full);
display: flex; align-items: center; justify-content: center;
font-size: 18px;
flex-shrink: 0;
}
.tx-info { flex: 1; }
.tx-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.tx-sub { font-size: var(--text-xs); color: var(--neutral-500); }
.tx-amount { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.tx-amount.credit { color: var(--alert-success); }
.tx-amount.debit { color: var(--alert-danger); }
.qr-card {
margin: 16px;
background: white;
border-radius: var(--radius-xl);
padding: 20px;
text-align: center;
box-shadow: var(--shadow-md);
border: 1px solid var(--neutral-100);
}
.qr-placeholder {
width: 120px; height: 120px;
margin: 0 auto 12px;
background: linear-gradient(135deg, var(--primary-50), var(--indigo-50));
border-radius: var(--radius-lg);
display: flex; align-items: center; justify-content: center;
font-size: 48px;
}
/* Fixed viewport for PDF/iframe embedding */
html, body { width: 390px !important; height: 844px !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
</style>
</head>
<body>
<div class="mobile-frame">
<div class="status-bar"><span>9:41</span></div>
<!-- Wallet Header -->
<div class="wallet-header">
<div class="wallet-balance-label">Solde Wallet</div>
<div class="wallet-balance">247.50 €</div>
<div class="wallet-balance-sub">Mis à jour il y a 2 min · Wallet DPI</div>
<div class="wallet-actions">
<div class="wallet-action">
<div class="wallet-action-icon">📤</div>
<span class="wallet-action-label">Envoyer</span>
</div>
<div class="wallet-action">
<div class="wallet-action-icon">📥</div>
<span class="wallet-action-label">Recevoir</span>
</div>
<div class="wallet-action">
<div class="wallet-action-icon">💳</div>
<span class="wallet-action-label">Payer</span>
</div>
<div class="wallet-action">
<div class="wallet-action-icon">🔄</div>
<span class="wallet-action-label">Échanger</span>
</div>
</div>
</div>
<!-- Content -->
<div class="content-area" style="top:210px;background:var(--neutral-50);">
<!-- QR Code -->
<div class="qr-card">
<div class="qr-placeholder">📱</div>
<div style="font-weight:700;font-size:var(--text-sm);margin-bottom:4px;">Mon QR Code</div>
<div style="font-size:11px;color:var(--neutral-500);">Scannez pour payer · OTN Identity</div>
</div>
<!-- DID Card -->
<div style="margin:0 16px 16px;background:linear-gradient(135deg,#1565C0,#3949AB);border-radius:var(--radius-xl);padding:16px;color:white;">
<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;">
<div style="font-size:var(--text-sm);font-weight:700;">Identité Décentralisée</div>
<div style="background:rgba(255,255,255,0.2);padding:3px 10px;border-radius:var(--radius-full);font-size:9px;font-weight:600;">DID</div>
</div>
<div style="font-size:11px;opacity:0.8;font-family:var(--font-family-mono);word-break:break-all;">
did:otn:mq:0x7a3...f92d
</div>
<div style="margin-top:10px;display:flex;gap:8px;">
<button class="btn" style="background:rgba(255,255,255,0.2);color:white;padding:6px 14px;font-size:12px;min-height:34px;">Copier</button>
<button class="btn" style="background:rgba(255,255,255,0.2);color:white;padding:6px 14px;font-size:12px;min-height:34px;">Vérifier</button>
</div>
</div>
<!-- Transactions -->
<div style="display:flex;justify-content:space-between;align-items:center;padding:0 16px 10px;">
<div style="font-size:var(--text-md);font-weight:700;">Transactions récentes</div>
<div style="font-size:var(--text-sm);color:var(--primary-500);font-weight:500;">Tout voir →</div>
</div>
<div class="tx-item">
<div class="tx-icon" style="background:#E8F5E9;">🥭</div>
<div class="tx-info">
<div class="tx-name">Marché Sainte-Marie</div>
<div class="tx-sub">Mangue José · Il y a 2h</div>
</div>
<div class="tx-amount debit">-4.50 €</div>
</div>
<div class="tx-item">
<div class="tx-icon" style="background:#E3F2FD;">🚌</div>
<div class="tx-info">
<div class="tx-name">Bus Ligne A1</div>
<div class="tx-sub">Ticket mobile · Il y a 5h</div>
</div>
<div class="tx-amount debit">-1.80 €</div>
</div>
<div class="tx-item">
<div class="tx-icon" style="background:#FFF3E0;"></div>
<div class="tx-info">
<div class="tx-name">Recharge Borne</div>
<div class="tx-sub">Borne Centre-ville · Hier</div>
</div>
<div class="tx-amount debit">-3.20 €</div>
</div>
<div class="tx-item">
<div class="tx-icon" style="background:#E0F7FA;">📥</div>
<div class="tx-info">
<div class="tx-name">Reçu de Marie L.</div>
<div class="tx-sub">Remboursement · Hier</div>
</div>
<div class="tx-amount credit">+15.00 €</div>
</div>
<div class="tx-item">
<div class="tx-icon" style="background:#E8EAF6;">🏛️</div>
<div class="tx-info">
<div class="tx-name">Taxe Ville Verte</div>
<div class="tx-sub">Points convertis · 2 jours</div>
</div>
<div class="tx-amount credit">+25.00 €</div>
</div>
<div style="height:16px;"></div>
</div>
<!-- Bottom Nav -->
<div class="bottom-nav">
<div class="bottom-nav-item">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z"/><polyline points="9 22 9 12 15 12 15 22" fill="none" stroke="currentColor" stroke-width="2"/></svg><span>Accueil</span>
</div>
<div class="bottom-nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"/><line x1="8" y1="2" x2="8" y2="18"/><line x1="16" y1="6" x2="16" y2="22"/></svg><span>Carte</span>
</div>
<div class="bottom-nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg><span>AI Chat</span>
</div>
<div class="bottom-nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg><span>Marché</span>
</div>
<div class="bottom-nav-item active">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg><span>Profil</span>
</div>
</div>
<div style="position:absolute;bottom:88px;left:0;right:0;text-align:center;font-size:10px;color:var(--neutral-400);">10 — Wallet DPI v2 / Blue</div>
</div>
</body>
</html>