Files
Greenlens/design/stitch-onboarding/scan_any_plant_dark_mode/code.html
2026-07-06 12:09:48 +02:00

210 lines
9.7 KiB
HTML

<!DOCTYPE html>
<html class="dark" lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>GreenLens - Onboarding</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Epilogue:wght@500;600;700&amp;family=JetBrains+Mono:wght@500&amp;family=Manrope:wght@400&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;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"
},
"fontFamily": {
"display": [
"Epilogue"
],
"headline-md": [
"Epilogue"
],
"body-lg": [
"Manrope"
],
"headline-lg": [
"Epilogue"
],
"label-sm": [
"JetBrains Mono"
],
"headline-lg-mobile": [
"Epilogue"
],
"body-md": [
"Manrope"
]
},
"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"
}
]
}
},
},
}
</script>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="bg-surface-dim flex items-center justify-center min-h-screen">
<div class="w-full max-w-md h-[884px] md:h-[844px] md:max-h-[839px] bg-background md:rounded-[40px] md:shadow-2xl relative overflow-hidden flex flex-col mx-auto border-0 md:border-[8px] md:border-black">
<!-- Top 60% Image Area -->
<div class="relative flex-grow h-[60%] w-full" data-alt="A high-resolution, bright, natural lighting photograph of a smartphone held in front of a lush, large green Monstera leaf. The style is premium minimalist lifestyle photography, emphasizing crisp details and fresh greenery. Soft cream and white blurred background behind the plant. A clear focus on the phone screen framing the vibrant leaf." style="background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuAUZPCiN64BDhHkPH2NIYPISrIugWbCp_EkjOkaMh3fiNS7ryUPfGspVCfH2uBadQkMHwjferaQCp08IRybFzVTWEwlamSXufp2jVmvwmyX95-xy2emX1T_vA22-KJ47FEjXNZXdiUrcXXe2IcpYPEJKr3kXqYMWWUcIscNC5ML8XENdrXkQHq9gi9oIewApl-N0tazA5Go8VUUuz3bl_OQKf74TXzd38fEAw7m0V4OMkx5rJhirV4ngl-afOe9exyyM2kmWWqfACg'); background-size: cover; background-position: center;">
<!-- Scan Overlay Frame -->
<div class="absolute inset-0 flex items-center justify-center pointer-events-none pb-12">
<div class="w-56 h-56 border-2 border-primary-fixed/50 rounded-2xl relative shadow-[0_0_40px_rgba(43,95,11,0.2)]">
<!-- Corner Accents -->
<div class="absolute -top-[2px] -left-[2px] w-8 h-8 border-t-[3px] border-l-[3px] border-primary-fixed rounded-tl-2xl"></div>
<div class="absolute -top-[2px] -right-[2px] w-8 h-8 border-t-[3px] border-r-[3px] border-primary-fixed rounded-tr-2xl"></div>
<div class="absolute -bottom-[2px] -left-[2px] w-8 h-8 border-b-[3px] border-l-[3px] border-primary-fixed rounded-bl-2xl"></div>
<div class="absolute -bottom-[2px] -right-[2px] w-8 h-8 border-b-[3px] border-r-[3px] border-primary-fixed rounded-br-2xl"></div>
<!-- Scanning line animation simulation -->
<div class="absolute top-1/2 left-0 w-full h-[2px] bg-primary-fixed shadow-[0_0_8px_rgba(182,243,144,0.8)] opacity-70"></div>
</div>
</div>
<!-- Result Chip -->
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 translate-y-[140px] bg-surface-container-lowest/90 backdrop-blur-xl px-4 py-2.5 rounded-full shadow-[0px_8px_24px_rgba(16,28,18,0.12)] flex items-center space-x-2.5 border border-surface-variant">
<span class="material-symbols-outlined text-primary text-[18px]" style="font-variation-settings: 'FILL' 1;">temp_preferences_eco</span>
<span class="font-label-sm text-label-sm text-on-surface uppercase tracking-wider">Monstera identified · 98%</span>
</div>
</div>
<!-- Bottom 40% Sheet -->
<div class="relative h-[40%] bg-surface-container-lowest rounded-t-[32px] w-full px-gutter py-8 flex flex-col justify-between z-10 shadow-[0px_-8px_32px_rgba(16,28,18,0.06)] -mt-8">
<!-- Text Content -->
<div class="flex flex-col space-y-4 text-center mt-4">
<h1 class="font-display text-headline-lg-mobile md:text-display text-on-surface">Scan Any Plant</h1>
<p class="font-body-lg text-body-lg text-on-surface-variant max-w-[300px] mx-auto">
Point your camera at a plant and GreenLens identifies it in seconds.
</p>
</div>
<!-- Bottom Controls -->
<div class="flex flex-col space-y-8 items-center w-full pb-6">
<!-- Progress Dots -->
<div class="flex space-x-2.5">
<div class="w-8 h-2 bg-primary rounded-full transition-all duration-300"></div>
<div class="w-2 h-2 bg-surface-variant rounded-full transition-all duration-300"></div>
<div class="w-2 h-2 bg-surface-variant rounded-full transition-all duration-300"></div>
</div>
<!-- Action Button -->
<button class="w-full h-[56px] bg-primary-container text-on-primary-container rounded-[14px] font-body-md text-body-md font-bold uppercase tracking-widest flex items-center justify-center hover:opacity-90 active:scale-95 transition-all shadow-sm">
CONTINUE
</button>
</div>
</div>
</div>
</body></html>