-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmockup.html
More file actions
305 lines (286 loc) · 20.3 KB
/
mockup.html
File metadata and controls
305 lines (286 loc) · 20.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MedTracker Aesthetic Mockup</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lexend:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
/* Default: Palette 1 - Serene Sage */
--primary: #7DAA92;
--primary-light: #E8F3ED;
--secondary: #F4F1DE;
--bg: #FAFAF9;
--text-main: #3D405B;
--text-muted: #6B7280;
--card-bg: #FFFFFF;
--font-family: 'Inter', sans-serif;
}
body {
background-color: var(--bg);
color: var(--text-main);
font-family: var(--font-family);
}
.btn-primary {
background-color: var(--primary);
color: white;
transition: all 0.2s;
}
.btn-primary:hover {
filter: brightness(0.9);
transform: translateY(-1px);
}
.stat-card {
background-color: var(--card-bg);
border: 1px solid rgba(0,0,0,0.05);
transition: all 0.3s;
}
.stat-card:hover {
box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
transform: translateY(-2px);
}
.pill-badge {
background-color: var(--primary-light);
color: var(--primary);
}
</style>
</head>
<body class="min-h-screen">
<!-- Sidebar Navigation -->
<aside class="fixed left-0 top-0 h-full w-20 md:w-64 bg-white border-r border-slate-100 flex flex-col items-center md:items-start py-8 px-4 z-50">
<div class="mb-12 px-2">
<div class="w-10 h-10 rounded-xl bg-[var(--primary)] flex items-center justify-center text-white font-bold text-xl">M</div>
</div>
<nav class="flex-1 space-y-6 w-full">
<a href="#" class="flex items-center gap-4 px-4 py-3 rounded-xl bg-[var(--primary-light)] text-[var(--primary)] font-semibold">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>
<span class="hidden md:block">Dashboard</span>
</a>
<a href="#" class="flex items-center gap-4 px-4 py-3 rounded-xl text-slate-400 hover:text-slate-600 hover:bg-slate-50 transition-all">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="hidden md:block">Inventory</span>
</a>
<a href="#" class="flex items-center gap-4 px-4 py-3 rounded-xl text-slate-400 hover:text-slate-600 hover:bg-slate-50 transition-all">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span class="hidden md:block">Reports</span>
</a>
</nav>
<div class="mt-auto w-full px-2">
<div class="flex items-center gap-3 p-2 rounded-xl border border-slate-100 bg-slate-50">
<div class="w-8 h-8 rounded-full bg-slate-200"></div>
<div class="hidden md:block overflow-hidden">
<p class="text-xs font-bold truncate">David Miller</p>
<p class="text-[10px] text-slate-400">Premium Plan</p>
</div>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="ml-20 md:ml-64 p-6 md:p-12 pb-24">
<!-- Header -->
<header class="flex flex-col md:flex-row md:items-end justify-between gap-6 mb-12">
<div>
<span class="text-xs font-bold text-slate-400 uppercase tracking-widest mb-1 block">Wednesday, Feb 18</span>
<h1 class="text-4xl md:text-5xl font-extrabold tracking-tight">Daily Wellness</h1>
</div>
<div class="flex gap-4">
<button class="px-6 py-3 rounded-2xl border border-slate-200 bg-white font-semibold text-sm hover:bg-slate-50 transition-all">Export</button>
<button class="px-6 py-3 rounded-2xl btn-primary font-bold text-sm shadow-lg shadow-[var(--primary)]/20">+ Add Entry</button>
</div>
</header>
<!-- Stats Grid -->
<section class="grid grid-cols-2 lg:grid-cols-4 gap-6 mb-12">
<div class="stat-card p-6 rounded-[2rem] flex flex-col justify-between h-40">
<span class="text-xs font-bold text-slate-400 uppercase">Adherence</span>
<div class="flex items-baseline gap-2">
<span class="text-4xl font-black text-[var(--primary)]">94%</span>
<span class="text-xs font-bold text-emerald-500">↑ 2%</span>
</div>
</div>
<div class="stat-card p-6 rounded-[2rem] flex flex-col justify-between h-40">
<span class="text-xs font-bold text-slate-400 uppercase">Next Dose</span>
<div class="flex flex-col">
<span class="text-2xl font-black">12:30 PM</span>
<span class="text-xs font-medium text-slate-400">Lisinopril</span>
</div>
</div>
<div class="stat-card p-6 rounded-[2rem] flex flex-col justify-between h-40">
<span class="text-xs font-bold text-slate-400 uppercase">Stock Alerts</span>
<div class="flex items-baseline gap-2">
<span class="text-4xl font-black text-rose-500">2</span>
<span class="text-xs font-medium text-slate-400">Refill soon</span>
</div>
</div>
<div class="stat-card p-6 rounded-[2rem] flex flex-col justify-between h-40">
<span class="text-xs font-bold text-slate-400 uppercase">Health Score</span>
<div class="flex items-baseline gap-2">
<span class="text-4xl font-black text-blue-500">8.4</span>
<span class="text-xs font-medium text-slate-400">/ 10</span>
</div>
</div>
</section>
<!-- Main Layout Split -->
<div class="grid grid-cols-1 xl:grid-cols-3 gap-12">
<!-- Left: Schedule -->
<div class="xl:col-span-2">
<div class="flex items-center justify-between mb-8">
<h2 class="text-2xl font-bold">Today's Regimen</h2>
<div class="flex gap-2">
<button class="w-8 h-8 rounded-full border border-slate-200 flex items-center justify-center text-slate-400 hover:text-slate-600">←</button>
<button class="w-8 h-8 rounded-full border border-slate-200 flex items-center justify-center text-slate-400 hover:text-slate-600">→</button>
</div>
</div>
<div class="space-y-4">
<!-- Morning -->
<div class="relative pl-8 border-l-2 border-slate-100 pb-8">
<div class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-white border-2 border-[var(--primary)]"></div>
<p class="text-xs font-black text-slate-400 uppercase tracking-widest mb-4">Morning</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Med Item -->
<div class="bg-white p-5 rounded-3xl border border-slate-50 shadow-sm flex items-center justify-between group hover:border-[var(--primary)] transition-all">
<div class="flex items-center gap-4">
<div class="w-12 h-12 rounded-2xl bg-slate-50 flex items-center justify-center text-[var(--primary)]">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L5.596 15.12a2 2 0 00-1.022.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L5.596 15.12a2 2 0 00-1.022.547l.547 2.736a2 2 0 002.57 1.503l.547-.182a2 2 0 001.503-2.57l-.547-2.736z" /></svg>
</div>
<div>
<h4 class="font-bold">Aspirin</h4>
<p class="text-xs text-slate-400">100mg • 08:00 AM</p>
</div>
</div>
<div class="w-8 h-8 rounded-full bg-emerald-50 text-emerald-500 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /></svg>
</div>
</div>
<!-- Med Item -->
<div class="bg-white p-5 rounded-3xl border border-slate-50 shadow-sm flex items-center justify-between group hover:border-[var(--primary)] transition-all">
<div class="flex items-center gap-4">
<div class="w-12 h-12 rounded-2xl bg-slate-50 flex items-center justify-center text-blue-500">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" /></svg>
</div>
<div>
<h4 class="font-bold">Omega 3</h4>
<p class="text-xs text-slate-400">1000mg • 08:30 AM</p>
</div>
</div>
<div class="w-8 h-8 rounded-full bg-emerald-50 text-emerald-500 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /></svg>
</div>
</div>
</div>
</div>
<!-- Lunch -->
<div class="relative pl-8 border-l-2 border-slate-100 pb-8">
<div class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-white border-2 border-blue-500"></div>
<p class="text-xs font-black text-slate-400 uppercase tracking-widest mb-4">Midday</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Med Item -->
<div class="bg-[var(--primary-light)] p-5 rounded-3xl border border-[var(--primary)] shadow-md flex items-center justify-between group transition-all">
<div class="flex items-center gap-4">
<div class="w-12 h-12 rounded-2xl bg-white flex items-center justify-center text-[var(--primary)] shadow-sm">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" /></svg>
</div>
<div>
<h4 class="font-bold">Lisinopril</h4>
<p class="text-xs text-[var(--primary)] font-semibold">10mg • 12:30 PM</p>
</div>
</div>
<button class="px-4 py-2 rounded-xl bg-[var(--primary)] text-white text-xs font-bold hover:shadow-lg transition-all">Log Dose</button>
</div>
</div>
</div>
</div>
</div>
<!-- Right: Insights & Supply -->
<div class="space-y-12">
<!-- Smart Insight -->
<div class="bg-indigo-600 rounded-[2.5rem] p-8 text-white relative overflow-hidden">
<div class="absolute -right-8 -top-8 w-32 h-32 bg-white/10 rounded-full blur-2xl"></div>
<div class="relative z-10">
<div class="w-10 h-10 rounded-xl bg-white/20 flex items-center justify-center mb-6">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>
</div>
<h3 class="text-xl font-bold mb-2">Smart Insight</h3>
<p class="text-sm text-indigo-100 leading-relaxed mb-6">You've been 100% compliant with your Lisinopril for 14 days straight. Great consistency!</p>
<button class="text-xs font-bold uppercase tracking-widest text-white border-b border-white/30 pb-1">View Details</button>
</div>
</div>
<!-- Supply -->
<div>
<h3 class="text-xl font-bold mb-6">Stock Inventory</h3>
<div class="space-y-6 bg-white p-8 rounded-[2.5rem] border border-slate-100 shadow-sm">
<div class="space-y-2">
<div class="flex justify-between items-center text-xs">
<span class="font-bold">Metformin</span>
<span class="text-rose-500 font-bold">5 left</span>
</div>
<div class="h-2 w-full bg-slate-100 rounded-full overflow-hidden">
<div class="h-full bg-rose-500 w-[15%] rounded-full"></div>
</div>
</div>
<div class="space-y-2">
<div class="flex justify-between items-center text-xs">
<span class="font-bold">Lisinopril</span>
<span class="text-slate-400 font-bold">28 left</span>
</div>
<div class="h-2 w-full bg-slate-100 rounded-full overflow-hidden">
<div class="h-full bg-[var(--primary)] w-[90%] rounded-full"></div>
</div>
</div>
<button class="w-full py-4 rounded-2xl bg-slate-50 text-slate-500 text-xs font-bold hover:bg-slate-100 transition-all uppercase tracking-widest">Order Refills</button>
</div>
</div>
</div>
</div>
</main>
<!-- Palette Info overlay (Internal helper) -->
<div class="fixed bottom-6 left-1/2 -translate-x-1/2 bg-white/90 backdrop-blur-md border border-slate-200 px-6 py-4 rounded-full shadow-2xl z-[100] flex gap-4 items-center max-w-[90vw] overflow-x-auto no-scrollbar">
<span class="text-[10px] font-black uppercase text-slate-400 whitespace-nowrap">Suggested Palettes:</span>
<button onclick="changePalette(1)" class="w-6 h-6 rounded-full bg-[#7DAA92] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(2)" class="w-6 h-6 rounded-full bg-[#0066FF] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(3)" class="w-6 h-6 rounded-full bg-[#E07A5F] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(4)" class="w-6 h-6 rounded-full bg-[#9B5DE5] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(5)" class="w-6 h-6 rounded-full bg-[#2D6A4F] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(6)" class="w-6 h-6 rounded-full bg-[#F28482] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(7)" class="w-6 h-6 rounded-full bg-[#4361EE] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(8)" class="w-6 h-6 rounded-full bg-[#E5989B] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(9)" class="w-6 h-6 rounded-full bg-[#80ED99] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
<button onclick="changePalette(10)" class="w-6 h-6 rounded-full bg-[#1A1A1A] border-2 border-white shadow-sm ring-1 ring-slate-200"></button>
</div>
<script>
const palettes = {
1: { primary: '#7DAA92', light: '#E8F3ED', text: '#3D405B', bg: '#FAFAF9', font: "'Inter', sans-serif" },
2: { primary: '#0066FF', light: '#EEF4FF', text: '#0F172A', bg: '#F8FAFC', font: "'Plus Jakarta Sans', sans-serif" },
3: { primary: '#E07A5F', light: '#FDF2F0', text: '#22223B', bg: '#FDFBF7', font: "'Lexend', sans-serif" },
4: { primary: '#9B5DE5', light: '#F5EEFD', text: '#240046', bg: '#FAF9FF', font: "'Inter', sans-serif" },
5: { primary: '#2D6A4F', light: '#E9F5EF', text: '#081C15', bg: '#F7FCF9', font: "'Outfit', sans-serif" },
6: { primary: '#F28482', light: '#FEF2F2', text: '#4A4E69', bg: '#FFFAF5', font: "'Figtree', sans-serif" },
7: { primary: '#4361EE', light: '#ECF0FF', text: '#2B2D42', bg: '#F8F9FE', font: "'Geist', sans-serif" },
8: { primary: '#E5989B', light: '#F9EDED', text: '#6D6875', bg: '#FFF9F9', font: "'Urbanist', sans-serif" },
9: { primary: '#06D6A0', light: '#E6FBF5', text: '#073B4C', bg: '#F4FEFB', font: "'Public Sans', sans-serif" },
10: { primary: '#1A1A1A', light: '#F3F4F6', text: '#111827', bg: '#FFFFFF', font: "'Inter', sans-serif" }
};
function changePalette(id) {
const p = palettes[id];
const root = document.documentElement;
root.style.setProperty('--primary', p.primary);
root.style.setProperty('--primary-light', p.light);
root.style.setProperty('--text-main', p.text);
root.style.setProperty('--bg', p.bg);
root.style.setProperty('--font-family', p.font);
// Re-apply button shadow if primary changed
const btn = document.querySelector('.btn-primary');
if(btn) btn.style.boxShadow = `0 10px 15px -3px ${p.primary}33`;
}
</script>
</body>
</html>