also looking at this
refactor(ui): adopt shared workspace badges
#17
5 files
+118
-9
| @@ -11,7 +11,7 @@ const contacts = [ | ||
| 11 | 11 | <div class="mx-auto max-w-[1500px]"> |
| 12 | 12 | <header class="flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between mb-7"> |
| 13 | 13 | <div> |
| 14 | <p class="font-bold text-[#b8402f] dark:text-[#ff8c79] text-[11px] tracking-[0.2em] uppercase">Audience</p> | |
| 14 | <p class="font-bold text-[#b8402f] text-[11px] tracking-[0.2em] uppercase dark:text-[#ff8c79]">Audience</p> | |
| 15 | 15 | <h1 class="mt-2 font-semibold text-4xl tracking-[-0.04em]">People, not rows.</h1> |
| 16 | 16 | <p class="mt-2 max-w-2xl text-[#666a63] text-sm dark:text-[#aaa9a3]">One profile across email, SMS, purchases, consent, and publication membership.</p> |
| 17 | 17 | </div> |
| @@ -33,17 +33,17 @@ const contacts = [ | ||
| 33 | 33 | <label class="relative"><span class="sr-only">Search contacts</span><span aria-hidden="true" class="absolute left-3 top-3 h-4 w-4 text-[#5f635d] dark:text-[#bcbab5] i-hugeicons-search-01"></span><input type="search" class="pl-9 pr-4 min-h-11 w-full sm:w-auto text-sm bg-transparent border border-[#171916]/12 rounded-full dark:border-white/15 focus:border-[#bf4936] focus:outline-none" placeholder="Search people"></label> |
| 34 | 34 | </div> |
| 35 | 35 | |
| 36 | <div class="sm:hidden divide-y divide-[#171916]/10 dark:divide-white/10"> | |
| 36 | <div class="sm:hidden divide-[#171916]/10 divide-y dark:divide-white/10"> | |
| 37 | 37 | @foreach(contacts as contact) |
| 38 | 38 | <article class="p-5"> |
| 39 | 39 | <div class="flex gap-3 items-start justify-between"> |
| 40 | 40 | <div class="min-w-0"><h3 class="font-bold text-sm">{{ contact.name }}</h3><p class="mt-0.5 break-all text-[#5f635d] text-xs dark:text-[#bcbab5]">{{ contact.address }}</p></div> |
| 41 | 41 | <button type="button" aria-label="Open contact menu for {{ contact.name }}" class="inline-flex items-center justify-center shrink-0 h-11 w-11 hover:bg-black/5 dark:hover:bg-white/10 rounded-full"><span aria-hidden="true" class="block h-4 w-4 i-hugeicons-more-horizontal"></span></button> |
| 42 | 42 | </div> |
| 43 | <dl class="grid grid-cols-2 gap-3 mt-4 text-xs"> | |
| 43 | <dl class="grid gap-3 grid-cols-2 mt-4 text-xs"> | |
| 44 | 44 | <div><dt class="text-[#5f635d] dark:text-[#bcbab5]">Source</dt><dd class="mt-1 font-medium">{{ contact.source }}</dd></div> |
| 45 | 45 | <div><dt class="text-[#5f635d] dark:text-[#bcbab5]">Revenue</dt><dd class="mt-1 font-bold">{{ contact.value }}</dd></div> |
| 46 | <div class="col-span-2"><dt class="sr-only">Consent</dt><dd class="inline-flex px-2.5 py-1 font-bold text-[#466833] dark:text-[#acd294] bg-[#edf5e8] dark:bg-[#75a65a]/15 rounded-full">{{ contact.state }}</dd></div> | |
| 46 | <div class="col-span-2"><dt class="sr-only">Consent</dt><dd><Badge size="sm" className="audience-consent-badge">{{ contact.state }}</Badge></dd></div> | |
| 47 | 47 | </dl> |
| 48 | 48 | </article> |
| 49 | 49 | @endforeach |
| @@ -57,7 +57,7 @@ const contacts = [ | ||
| 57 | 57 | <tr class="border-[#171916]/8 border-t dark:border-white/8"> |
| 58 | 58 | <td class="px-5 py-4"><p class="font-bold text-sm">{{ contact.name }}</p><p class="mt-0.5 text-[#5f635d] text-xs dark:text-[#bcbab5]">{{ contact.address }}</p></td> |
| 59 | 59 | <td class="px-5 py-4 text-sm">{{ contact.source }}</td> |
| 60 | <td class="px-5 py-4"><span class="px-2.5 py-1 font-bold text-[#466833] text-xs dark:text-[#acd294] bg-[#edf5e8] dark:bg-[#75a65a]/15 rounded-full">{{ contact.state }}</span></td> | |
| 60 | <td class="px-5 py-4"><Badge size="sm" className="audience-consent-badge">{{ contact.state }}</Badge></td> | |
| 61 | 61 | <td class="px-5 py-4 font-bold text-sm">{{ contact.value }}</td> |
| 62 | 62 | <td class="px-5 py-4 text-right"><button type="button" aria-label="Open contact menu for {{ contact.name }}" class="inline-flex items-center justify-center h-11 w-11 hover:bg-black/5 dark:hover:bg-white/10 rounded-full"><span aria-hidden="true" class="block h-4 w-4 i-hugeicons-more-horizontal"></span></button></td> |
| 63 | 63 | </tr> |