Add onboarding/soft-paywall/free-tier design spec + Stitch design reference
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,291 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html class="h-full dark" lang="en"><head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" name="viewport"/>
|
||||
<title>GreenLens - Onboarding Plant Count</title>
|
||||
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></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=Epilogue:wght@500;600;700&family=JetBrains+Mono:wght@500&family=Manrope:wght@400;500;600&display=swap" rel="stylesheet"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
||||
<script id="tailwind-config">
|
||||
tailwind.config = {
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
extend: {
|
||||
"colors": {
|
||||
"on-primary-fixed-variant": "#2e4f00",
|
||||
"inverse-primary": "#41690c",
|
||||
"surface": "#0c160d",
|
||||
"on-tertiary-fixed": "#171d15",
|
||||
"primary-container": "#a6d66f",
|
||||
"on-error-container": "#ffdad6",
|
||||
"surface-dim": "#0c160d",
|
||||
"surface-container-lowest": "#071008",
|
||||
"secondary-fixed-dim": "#b7ccb5",
|
||||
"secondary": "#b7ccb5",
|
||||
"secondary-container": "#394b39",
|
||||
"on-surface": "#dae6d6",
|
||||
"primary-fixed": "#c0f287",
|
||||
"primary": "#c1f388",
|
||||
"on-primary": "#1e3700",
|
||||
"surface-bright": "#313c31",
|
||||
"tertiary-fixed": "#dee5d6",
|
||||
"error-container": "#93000a",
|
||||
"background": "#0c160d",
|
||||
"on-tertiary-fixed-variant": "#42493e",
|
||||
"on-tertiary": "#2c3229",
|
||||
"on-surface-variant": "#c3c9b6",
|
||||
"inverse-surface": "#dae6d6",
|
||||
"on-secondary": "#233424",
|
||||
"on-primary-container": "#365d00",
|
||||
"inverse-on-surface": "#283328",
|
||||
"surface-variant": "#2d372d",
|
||||
"surface-container-low": "#141e14",
|
||||
"surface-container-highest": "#2d372d",
|
||||
"surface-container-high": "#222d22",
|
||||
"tertiary-fixed-dim": "#c2c9bb",
|
||||
"tertiary-container": "#c3cabc",
|
||||
"outline": "#8d9382",
|
||||
"on-background": "#dae6d6",
|
||||
"on-secondary-fixed": "#0f1f10",
|
||||
"on-error": "#690005",
|
||||
"secondary-fixed": "#d3e8d0",
|
||||
"outline-variant": "#43493a",
|
||||
"error": "#ffb4ab",
|
||||
"on-secondary-fixed-variant": "#394b39",
|
||||
"on-tertiary-container": "#4e554a",
|
||||
"surface-tint": "#a5d56e",
|
||||
"tertiary": "#dfe6d8",
|
||||
"surface-container": "#182218",
|
||||
"on-secondary-container": "#a6bba4",
|
||||
"primary-fixed-dim": "#a5d56e",
|
||||
"on-primary-fixed": "#0f2000"
|
||||
},
|
||||
"borderRadius": {
|
||||
"DEFAULT": "0.25rem",
|
||||
"lg": "0.5rem",
|
||||
"xl": "0.75rem",
|
||||
"full": "9999px"
|
||||
},
|
||||
"spacing": {
|
||||
"unit": "8px",
|
||||
"gutter": "24px",
|
||||
"margin-mobile": "16px",
|
||||
"margin-desktop": "64px",
|
||||
"container-max": "1280px",
|
||||
"xs": "8px",
|
||||
"xl": "32px",
|
||||
"base": "4px",
|
||||
"sm": "12px",
|
||||
"md": "16px",
|
||||
"lg": "24px",
|
||||
"container-margin": "20px"
|
||||
},
|
||||
"fontFamily": {
|
||||
"display": [
|
||||
"Epilogue"
|
||||
],
|
||||
"headline-md": [
|
||||
"Epilogue"
|
||||
],
|
||||
"body-lg": [
|
||||
"Manrope"
|
||||
],
|
||||
"headline-lg": [
|
||||
"Epilogue"
|
||||
],
|
||||
"label-sm": [
|
||||
"JetBrains Mono"
|
||||
],
|
||||
"headline-lg-mobile": [
|
||||
"Epilogue"
|
||||
],
|
||||
"body-md": [
|
||||
"Manrope"
|
||||
],
|
||||
"label-lg": ["JetBrains Mono"]
|
||||
},
|
||||
"fontSize": {
|
||||
"display": [
|
||||
"64px",
|
||||
{
|
||||
"lineHeight": "1.1",
|
||||
"letterSpacing": "-0.02em",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
],
|
||||
"headline-md": [
|
||||
"28px",
|
||||
{
|
||||
"lineHeight": "1.3",
|
||||
"fontWeight": "500"
|
||||
}
|
||||
],
|
||||
"body-lg": [
|
||||
"18px",
|
||||
{
|
||||
"lineHeight": "1.6",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
],
|
||||
"headline-lg": [
|
||||
"40px",
|
||||
{
|
||||
"lineHeight": "1.2",
|
||||
"letterSpacing": "-0.01em",
|
||||
"fontWeight": "600"
|
||||
}
|
||||
],
|
||||
"label-sm": [
|
||||
"12px",
|
||||
{
|
||||
"lineHeight": "1.0",
|
||||
"letterSpacing": "0.05em",
|
||||
"fontWeight": "500"
|
||||
}
|
||||
],
|
||||
"headline-lg-mobile": [
|
||||
"32px",
|
||||
{
|
||||
"lineHeight": "1.2",
|
||||
"fontWeight": "600"
|
||||
}
|
||||
],
|
||||
"body-md": [
|
||||
"16px",
|
||||
{
|
||||
"lineHeight": "1.6",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
],
|
||||
"label-lg": ["14px", {"lineHeight": "1.4", "fontWeight": "600"}]
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
background-color: #0c160d; /* Enforced dark mode background */
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
/* Custom styles for precise matching */
|
||||
.card-shadow {
|
||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.progress-track {
|
||||
background-color: #222d22;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
background-color: #c1f388;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.option-card {
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.option-card:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.selected-card {
|
||||
border-color: #c1f388;
|
||||
background-color: rgba(193, 243, 136, 0.15); /* Tint derived from #c1f388 */
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body {
|
||||
min-height: max(884px, 100dvh);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="h-full flex justify-center bg-background font-body-md text-on-surface antialiased">
|
||||
<!-- iPhone 15 Frame Simulator -->
|
||||
<div class="relative w-full max-w-[393px] h-[852px] bg-background sm:rounded-[3rem] sm:shadow-2xl sm:overflow-hidden sm:my-8 flex flex-col">
|
||||
<!-- Status Bar Area (Safe Area Top) -->
|
||||
<div class="h-12 w-full shrink-0"></div>
|
||||
<!-- Top Navigation Area -->
|
||||
<div class="px-container-margin pt-2 pb-4 flex items-center shrink-0 relative">
|
||||
<button aria-label="Go back" class="w-10 h-10 flex items-center justify-center rounded-full bg-surface-container card-shadow active:scale-95 transition-transform text-primary absolute left-container-margin">
|
||||
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 0;">arrow_back</span>
|
||||
</button>
|
||||
<div class="w-full flex justify-center">
|
||||
<div class="w-24 h-2 rounded-full progress-track overflow-hidden">
|
||||
<div class="h-full rounded-full progress-fill"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Main Content Area -->
|
||||
<main class="flex-1 flex flex-col px-container-margin overflow-y-auto pb-24 pt-4">
|
||||
<!-- Header Text -->
|
||||
<div class="text-center mb-xl">
|
||||
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-on-surface mb-xs">
|
||||
How many plants do you have?
|
||||
</h1>
|
||||
<p class="font-body-md text-body-md text-on-surface-variant px-sm">
|
||||
This helps us personalize your care plan.
|
||||
</p>
|
||||
</div>
|
||||
<!-- Options List -->
|
||||
<div class="flex flex-col gap-sm">
|
||||
<!-- Option 1 -->
|
||||
<button class="option-card w-full text-left bg-surface-container card-shadow rounded-[16px] p-lg border-2 border-transparent flex items-center gap-md">
|
||||
<span class="text-[28px] leading-none select-none">🌱</span>
|
||||
<span class="font-body-lg text-body-lg text-on-surface">Just starting (1-3)</span>
|
||||
</button>
|
||||
<!-- Option 2 -->
|
||||
<button class="option-card w-full text-left bg-surface-container card-shadow rounded-[16px] p-lg border-2 border-transparent flex items-center gap-md">
|
||||
<span class="text-[28px] leading-none select-none">🪴</span>
|
||||
<span class="font-body-lg text-body-lg text-on-surface">A few (4-10)</span>
|
||||
</button>
|
||||
<!-- Option 3 (Selected) -->
|
||||
<button class="option-card w-full text-left card-shadow rounded-[16px] p-lg border-2 flex items-center gap-md selected-card">
|
||||
<span class="text-[28px] leading-none select-none">🌿</span>
|
||||
<span class="font-body-lg text-body-lg text-primary font-bold">Quite a jungle (11-25)</span>
|
||||
</button>
|
||||
<!-- Option 4 -->
|
||||
<button class="option-card w-full text-left bg-surface-container card-shadow rounded-[16px] p-lg border-2 border-transparent flex items-center gap-md">
|
||||
<span class="text-[28px] leading-none select-none">🌳</span>
|
||||
<span class="font-body-lg text-body-lg text-on-surface">Full jungle (25+)</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex-1 min-h-[32px]"></div>
|
||||
<!-- Floating Decorative Element (Abstract Blur to keep it visually interesting per styling guidelines) -->
|
||||
<div class="absolute bottom-32 -right-16 w-64 h-64 bg-primary/10 rounded-full blur-[60px] pointer-events-none z-0"></div>
|
||||
</main>
|
||||
<!-- Bottom Action Area -->
|
||||
<div class="px-container-margin pb-10 pt-4 bg-background/90 backdrop-blur-md shrink-0 relative z-10 w-full rounded-b-[3rem]">
|
||||
<button class="w-full h-[56px] bg-primary text-on-primary rounded-[14px] font-label-lg text-label-lg active:scale-98 transition-transform shadow-[0px_8px_16px_rgba(193,243,136,0.1)] flex items-center justify-center">
|
||||
Continue
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Simple JS for interaction demonstration
|
||||
document.querySelectorAll('.option-card').forEach(card => {
|
||||
card.addEventListener('click', function() {
|
||||
// Remove selected class from all
|
||||
document.querySelectorAll('.option-card').forEach(c => {
|
||||
c.classList.remove('selected-card');
|
||||
c.classList.add('bg-surface-container', 'border-transparent');
|
||||
c.querySelector('span:last-child').classList.remove('text-primary', 'font-bold');
|
||||
c.querySelector('span:last-child').classList.add('text-on-surface');
|
||||
});
|
||||
|
||||
// Add to clicked
|
||||
this.classList.add('selected-card');
|
||||
this.classList.remove('bg-surface-container', 'border-transparent');
|
||||
|
||||
let textSpan = this.querySelector('span:last-child');
|
||||
textSpan.classList.remove('text-on-surface');
|
||||
textSpan.classList.add('text-primary', 'font-bold');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Reference in New Issue
Block a user