Merge pull request 'fix: show recommended sensing tier first on mobile' (#5) from feat/playground into main
ci / check (push) Successful in 1m12s

Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
Noel committed 2026-11-14 20:19:48 +00:00
commit 78d1f0e308
1 file changed
+7 -2
+7 -2
View File
@@ -51,6 +51,10 @@ const tiers = [
},
] as const
// On phones the privacy spectrum reads best-to-worst, so the recommended
// Tier 4 card comes first. Desktop keeps the original left-to-right order.
const tierMobileOrder = ['order-4', 'order-3', 'order-2'] as const
const comparisonRows = [
{
tier: 'Tier 1: Sniffing',
@@ -164,9 +168,10 @@ const comparisonRows = [
<h2 class="sr-only">Sensing architecture tiers</h2>
<!-- TIER 1 -->
<article
v-for="tier in tiers"
v-for="(tier, index) in tiers"
:key="tier.id"
class="flex flex-col bg-[#0e2233] border border-[#1e3a52] rounded-xl p-space-lg shadow-sm hover:border-[#334e68] transition-all relative overflow-hidden"
:class="[tierMobileOrder[index], 'md:order-none']"
>
<div class="flex items-center justify-between mb-space-md">
<span class="font-label-sm text-[11px] text-[#94A3B8] uppercase tracking-wider">{{ tier.tier }}</span>
@@ -213,7 +218,7 @@ const comparisonRows = [
</article>
<!-- TIER 4 (RECOMMENDED) -->
<article class="flex flex-col bg-[#0e2233] rounded-xl p-space-lg shadow-[0_0_30px_rgba(0,195,205,0.22)] relative overflow-hidden -mt-2 lg:-mt-3 ring-2 ring-[#00C3CD] border border-[#00C3CD]">
<article class="order-1 md:order-none flex flex-col bg-[#0e2233] rounded-xl p-space-lg shadow-[0_0_30px_rgba(0,195,205,0.22)] relative overflow-hidden mt-0 md:-mt-2 lg:-mt-3 ring-2 ring-[#00C3CD] border border-[#00C3CD]">
<!-- Top Banner -->
<div class="bg-[#132b40] text-[#00C3CD] -mx-space-lg -mt-space-lg px-space-lg py-2 flex items-center justify-between gap-2 mb-space-md border-b border-[#00C3CD]/40">
<div class="flex items-center gap-1 text-[9px] font-label-sm uppercase tracking-wide font-bold whitespace-nowrap">