feat: add saved stations mockup with iconify-icon package
This commit is contained in:
274
.claude/mockup/02-price-alerts-setup.html
Normal file
274
.claude/mockup/02-price-alerts-setup.html
Normal file
@@ -0,0 +1,274 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<title>FuelAlert - Price Alerts Setup</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://code.iconify.design/iconify-icon/1.0.7/iconify-icon.min.js"></script>
|
||||
<link href="https://fonts.googleapis.com" rel="preconnect">
|
||||
<link crossorigin href="https://fonts.gstatic.com" rel="preconnect">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');
|
||||
|
||||
:root {
|
||||
--primary: #bb5b3e;
|
||||
--bg-main: #f5ede5;
|
||||
--bg-card: #faf6f3;
|
||||
--text-main: #4a3f3b;
|
||||
--neutral: #89726c;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background-color: var(--bg-main);
|
||||
color: var(--text-main);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: 'Manrope', sans-serif;
|
||||
}
|
||||
|
||||
.no-scrollbar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.no-scrollbar {
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.toggle-switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
}
|
||||
.toggle-switch input { opacity: 0; width: 0; height: 0; }
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background-color: #e5ded7;
|
||||
transition: .4s; border-radius: 24px;
|
||||
}
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 18px; width: 18px;
|
||||
left: 3px; bottom: 3px;
|
||||
background-color: white;
|
||||
transition: .4s; border-radius: 50%;
|
||||
}
|
||||
input:checked + .slider { background-color: var(--primary); }
|
||||
input:checked + .slider:before { transform: translateX(20px); }
|
||||
</style>
|
||||
<style>sd-component { display: block; }</style>
|
||||
<script defer init src="https://cdn.jsdelivr.net/npm/petite-vue@0.4.1/dist/petite-vue.iife.js"></script>
|
||||
</head>
|
||||
<body class="bg-[#f5ede5]">
|
||||
<div class="w-full h-screen flex flex-col">
|
||||
<!-- Header Component -->
|
||||
<!-- component: Header (2e149317-ab67-4f16-a6d2-0f4569fb7ba4) -->
|
||||
<div v-scope="{ ...{"showProfile":true}, $emit() {} }">
|
||||
<header class="shrink-0 pt-14 px-6 pb-6 bg-[#faf6f3] border-b border-[#e5ded7] flex items-center justify-between shadow-sm relative z-50">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<div class="w-12 h-12 rounded-lg bg-[#bb5b3e] flex items-center justify-center shadow-md">
|
||||
<iconify-icon class="text-white text-2xl" icon="lucide:fuel"></iconify-icon>
|
||||
</div>
|
||||
<h1 class="text-3xl font-black tracking-tighter text-[#bb5b3e]">FuelAlert</h1>
|
||||
</div>
|
||||
<button
|
||||
@click="$emit('profileClick')"
|
||||
class="w-10 h-10 rounded-full bg-[#f5ede5] border border-[#e5ded7] flex items-center justify-center transition-colors hover:bg-[#eeeae5] active:scale-95"
|
||||
v-if="showProfile">
|
||||
<iconify-icon class="text-[#89726c] text-lg" icon="lucide:user"></iconify-icon>
|
||||
</button>
|
||||
</header>
|
||||
</div>
|
||||
<!-- /component: Header (2e149317-ab67-4f16-a6d2-0f4569fb7ba4) -->
|
||||
|
||||
<main class="flex-1 overflow-y-auto pb-10">
|
||||
<!-- Setup Section Title -->
|
||||
<section class="px-6 pt-6 pb-2">
|
||||
<h2 class="text-2xl font-black text-[#4a3f3b] tracking-tight">Price Alerts</h2>
|
||||
<p class="text-sm text-[#89726c] mt-1">Get notified the moment fuel prices drop.</p>
|
||||
</section>
|
||||
|
||||
<!-- Create Alert Form Card -->
|
||||
<section class="px-5 mb-8">
|
||||
<div class="bg-[#faf6f3] p-5 rounded-xl border border-[#e5ded7] shadow-sm space-y-5">
|
||||
<!-- Location Dropdown -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-[10px] font-bold uppercase tracking-widest text-[#89726c]">Location Area</label>
|
||||
<div class="relative">
|
||||
<select class="w-full h-12 pl-4 pr-10 bg-[#f5ede5] border border-[#e5ded7] rounded-lg appearance-none text-sm font-medium focus:ring-2 focus:ring-[#bb5b3e] focus:outline-none">
|
||||
<option>London, SW1A (Current Location)</option>
|
||||
<option>Manchester, M1</option>
|
||||
<option>Birmingham, B1</option>
|
||||
<option>Glasgow, G1</option>
|
||||
</select>
|
||||
<iconify-icon class="absolute right-4 top-1/2 -translate-y-1/2 text-[#89726c]" icon="lucide:chevron-down"></iconify-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Fuel Type Toggle -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-[10px] font-bold uppercase tracking-widest text-[#89726c]">Fuel Type</label>
|
||||
<div class="flex p-1 bg-[#f5ede5] border border-[#e5ded7] rounded-lg">
|
||||
<button class="flex-1 py-2 text-xs font-bold rounded-md bg-[#bb5b3e] text-white shadow-sm">Petrol</button>
|
||||
<button class="flex-1 py-2 text-xs font-bold text-[#89726c]">Diesel</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Price Threshold -->
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-[10px] font-bold uppercase tracking-widest text-[#89726c]">Alert Threshold</label>
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="relative flex-1">
|
||||
<span class="absolute left-4 top-1/2 -translate-y-1/2 text-sm font-bold text-[#89726c]">Below</span>
|
||||
<input class="w-full h-12 pl-16 pr-10 bg-[#f5ede5] border border-[#e5ded7] rounded-lg text-sm font-bold focus:ring-2 focus:ring-[#bb5b3e] focus:outline-none text-right" type="number" value="140">
|
||||
<span class="absolute right-4 top-1/2 -translate-y-1/2 text-sm font-bold">p</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Notifications Preference -->
|
||||
<div class="space-y-3 pt-2">
|
||||
<label class="text-[10px] font-bold uppercase tracking-widest text-[#89726c]">Notification Methods</label>
|
||||
<div class="space-y-2">
|
||||
<div class="flex items-center justify-between p-3 bg-[#f5ede5]/50 border border-[#e5ded7] rounded-lg">
|
||||
<div class="flex items-center gap-3">
|
||||
<iconify-icon class="text-lg text-[#bb5b3e]" icon="lucide:smartphone"></iconify-icon>
|
||||
<span class="text-sm font-medium">Push Notification</span>
|
||||
</div>
|
||||
<label class="toggle-switch">
|
||||
<input checked type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-[#f5ede5]/50 border border-[#e5ded7] rounded-lg">
|
||||
<div class="flex items-center gap-3">
|
||||
<iconify-icon class="text-lg text-[#bb5b3e]" icon="lucide:mail"></iconify-icon>
|
||||
<span class="text-sm font-medium">Email Alert</span>
|
||||
</div>
|
||||
<label class="toggle-switch">
|
||||
<input type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex items-center justify-between p-3 bg-[#f5ede5]/50 border border-[#e5ded7] rounded-lg">
|
||||
<div class="flex items-center gap-3">
|
||||
<iconify-icon class="text-lg text-[#bb5b3e]" icon="lucide:message-square"></iconify-icon>
|
||||
<span class="text-sm font-medium">SMS (Pro Only)</span>
|
||||
</div>
|
||||
<label class="toggle-switch">
|
||||
<input disabled opacity-50 type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Create Button -->
|
||||
<button class="w-full h-14 bg-[#bb5b3e] text-white font-black rounded-lg shadow-lg active:scale-95 transition-transform flex items-center justify-center gap-2 mt-2" id="cta-create-alert">
|
||||
<iconify-icon class="text-xl" icon="lucide:plus-circle"></iconify-icon>
|
||||
Create Alert
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Existing Alerts List -->
|
||||
<section class="px-5 pb-8">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<h3 class="text-lg font-bold text-[#4a3f3b]">Active Alerts</h3>
|
||||
<span class="text-[10px] font-bold uppercase text-[#89726c] tracking-widest px-2 py-0.5 bg-[#e5ded7] rounded">2 Active</span>
|
||||
</div>
|
||||
|
||||
<div class="space-y-3">
|
||||
<!-- Alert Card 1 -->
|
||||
<div class="bg-[#faf6f3] p-4 rounded-xl border border-[#e5ded7] shadow-sm">
|
||||
<div class="flex justify-between items-start">
|
||||
<div class="space-y-1">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="px-1.5 py-0.5 bg-[#bb5b3e]/10 text-[#bb5b3e] text-[10px] font-bold rounded uppercase">Petrol</span>
|
||||
<h4 class="font-bold text-sm">London, SW1A</h4>
|
||||
</div>
|
||||
<p class="text-xs text-[#89726c] font-medium">Threshold: <span class="text-[#4a3f3b] font-bold">Below 140.0p</span></p>
|
||||
</div>
|
||||
<label class="toggle-switch">
|
||||
<input checked type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="mt-4 pt-3 border-t border-[#e5ded7] flex gap-3">
|
||||
<button class="flex-1 flex items-center justify-center gap-2 py-2 bg-[#f5ede5] text-[#4a3f3b] rounded-lg text-xs font-bold active:bg-[#e5ded7]">
|
||||
<iconify-icon icon="lucide:edit-3"></iconify-icon>
|
||||
Edit
|
||||
</button>
|
||||
<button class="flex-1 flex items-center justify-center gap-2 py-2 bg-[#8B4860]/10 text-[#8B4860] rounded-lg text-xs font-bold active:bg-[#8B4860]/20">
|
||||
<iconify-icon icon="lucide:trash-2"></iconify-icon>
|
||||
Delete
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Alert Card 2 -->
|
||||
<div class="bg-[#faf6f3] p-4 rounded-xl border border-[#e5ded7] shadow-sm">
|
||||
<div class="flex justify-between items-start">
|
||||
<div class="space-y-1">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="px-1.5 py-0.5 bg-[#89726c]/10 text-[#89726c] text-[10px] font-bold rounded uppercase">Diesel</span>
|
||||
<h4 class="font-bold text-sm">Manchester, M1</h4>
|
||||
</div>
|
||||
<p class="text-xs text-[#89726c] font-medium">Threshold: <span class="text-[#4a3f3b] font-bold">Below 145.0p</span></p>
|
||||
</div>
|
||||
<label class="toggle-switch">
|
||||
<input checked type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="mt-4 pt-3 border-t border-[#e5ded7] flex gap-3">
|
||||
<button class="flex-1 flex items-center justify-center gap-2 py-2 bg-[#f5ede5] text-[#4a3f3b] rounded-lg text-xs font-bold active:bg-[#e5ded7]">
|
||||
<iconify-icon icon="lucide:edit-3"></iconify-icon>
|
||||
Edit
|
||||
</button>
|
||||
<button class="flex-1 flex items-center justify-center gap-2 py-2 bg-[#8B4860]/10 text-[#8B4860] rounded-lg text-xs font-bold active:bg-[#8B4860]/20">
|
||||
<iconify-icon icon="lucide:trash-2"></iconify-icon>
|
||||
Delete
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Bottom Navigation Component -->
|
||||
<!-- component: BottomNavigation (3a8f5bc1-42a2-4db8-9e3b-d7045f7a7a3a) -->
|
||||
<div v-scope="{ ...{"activeItem":"alerts","pricesHref":"#","alertsHref":"https://draft-06b548ac-4c56-476f-91d1-14673d811f10.preview.superdesign.dev","forecourtsHref":"https://draft-fadb88fb-1d69-4dfa-8290-72bb533bdd76.preview.superdesign.dev","trendsHref":"https://draft-1e6ffee2-7b50-4d1c-8c1c-2570ecfa738c.preview.superdesign.dev"}, $emit() {} }">
|
||||
<footer class="shrink-0 pb-[34px] bg-[#faf6f3] border-t border-[#e5ded7]">
|
||||
<nav class="flex justify-around items-center pt-3">
|
||||
<a :class="{ 'text-[#bb5b3e]': activeItem === 'prices', 'text-[#89726c]': activeItem !== 'prices' }" :href="pricesHref" class="flex flex-col items-center gap-1 transition-colors">
|
||||
<iconify-icon class="text-2xl" icon="lucide:search"></iconify-icon>
|
||||
<span class="text-[9px] font-bold uppercase">Prices</span>
|
||||
</a>
|
||||
<a :class="{ 'text-[#bb5b3e]': activeItem === 'alerts', 'text-[#89726c]': activeItem !== 'alerts' }" :href="alertsHref" class="flex flex-col items-center gap-1 transition-colors">
|
||||
<iconify-icon class="text-2xl" icon="lucide:bell"></iconify-icon>
|
||||
<span class="text-[9px] font-bold uppercase">Alerts</span>
|
||||
</a>
|
||||
<a :class="{ 'text-[#bb5b3e]': activeItem === 'forecourts', 'text-[#89726c]': activeItem !== 'forecourts' }" :href="forecourtsHref" class="flex flex-col items-center gap-1 transition-colors">
|
||||
<iconify-icon class="text-2xl" icon="lucide:map"></iconify-icon>
|
||||
<span class="text-[9px] font-bold uppercase">Forecourts</span>
|
||||
</a>
|
||||
<a :class="{ 'text-[#bb5b3e]': activeItem === 'trends', 'text-[#89726c]': activeItem !== 'trends' }" :href="trendsHref" class="flex flex-col items-center gap-1 transition-colors">
|
||||
<iconify-icon class="text-2xl" icon="lucide:bar-chart-3"></iconify-icon>
|
||||
<span class="text-[9px] font-bold uppercase">Trends</span>
|
||||
</a>
|
||||
</nav>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- /component: BottomNavigation (3a8f5bc1-42a2-4db8-9e3b-d7045f7a7a3a) -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user