Greenlens/prototype.html

259 lines
8.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GreenLens Premium Prototype</title>
<style>
:root {
--primary: #5fa779;
--primary-dark: #3d7f57;
--bg: #111813;
--surface: rgba(23, 33, 26, 0.8);
--text: #f0f3f1;
}
body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.phone {
width: 375px;
height: 812px;
background: #111813;
border: 8px solid #222;
border-radius: 40px;
position: relative;
box-shadow: 0 50px 100px rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
padding: 20px;
box-sizing: border-box;
background-image:
radial-gradient(circle at 20% 20%, rgba(95, 167, 121, 0.1) 0%, transparent 40%),
radial-gradient(circle at 80% 80%, rgba(78, 127, 179, 0.1) 0%, transparent 40%);
}
.header {
margin-top: 40px;
margin-bottom: 20px;
}
.header h1 {
font-size: 28px;
margin: 0;
font-weight: 700;
}
.header p {
font-size: 16px;
margin: 5px 0 0;
opacity: 0.7;
}
.glass-card {
background: var(--surface);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
opacity: 0;
transform: translateY(20px);
}
@keyframes slideUp {
to {
opacity: 1;
transform: translateY(0);
}
}
.dashboard {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.health-ring-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 180px;
}
.ring-svg {
width: 120px;
height: 120px;
transform: rotate(-90deg);
}
.ring-bg {
fill: none;
stroke: rgba(255,255,255,0.05);
stroke-width: 10;
}
.ring-progress {
fill: none;
stroke: var(--primary);
stroke-width: 10;
stroke-linecap: round;
stroke-dasharray: 283;
stroke-dashoffset: 283;
animation: fillRing 2s ease-out forwards 0.5s;
}
@keyframes fillRing {
to {
stroke-dashoffset: 85; 1
}
}
.ring-text {
position: absolute;
font-size: 24px;
font-weight: 700;
color: var(--primary);
}
.water-wave-container {
height: 180px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 0 !important;
}
.wave-content {
padding: 20px;
position: relative;
z-index: 2;
}
.wave-label {
font-size: 14px;
opacity: 0.8;
margin-bottom: 4px;
}
.wave-value {
font-size: 24px;
font-weight: 700;
}
.wave {
position: absolute;
bottom: 0;
left: 0;
width: 200%;
height: 60%;
background: rgba(95, 167, 121, 0.3);
animation: moveWave 4s linear infinite;
border-radius: 40%;
}
.wave:nth-child(2) {
bottom: 5px;
background: rgba(95, 167, 121, 0.5);
animation: moveWave 6s linear infinite;
opacity: 0.5;
}
@keyframes moveWave {
from { transform: translateX(0) rotate(0deg); }
to { transform: translateX(-50%) rotate(360deg); }
}
.splash-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #111813;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
animation: fadeOut 1s ease-in forwards 2.5s;
pointer-events: none;
}
.logo {
width: 80px;
height: 80px;
background: var(--primary);
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/></svg>');
-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8.13,20C11,20 13.89,18.86 16,17C18.11,18.86 21,20 23.87,20C24.36,20 24.86,19.87 25.34,19.7L26.29,22L28.18,21.34C26.1,16.17 24,10 15,8V5H17V3H15V1H13V3H11V5H13V8C4,10 1.9,16.17 -0.18,21.34L1.71,22L2.66,19.7C3.14,19.87 3.64,20 4.13,20C7,20 9.89,18.86 12,17C14.11,18.86 17,20 19.87,20C20.36,20 20.86,19.87 21.34,19.7L22.29,22L24.18,21.34C22.1,16.17 20,10 11,8V5H13V3H11V1H9V3H7V5H9V8C0,10 -2.1,16.17 -4.18,21.34L-2.29,22L-1.34,19.7C-0.86,19.87 -0.36,20 0.13,20C3,20 5.89,18.86 8,17C10.11,18.86 13,20 15.87,20C16.36,20 16.86,19.87 17.34,19.7L18.29,22L20.18,21.34C18.1,16.17 16,10 7,8V5H9V3H7V1H5V3H3V5H5V8Z"/></svg>');
mask-size: contain;
-webkit-mask-size: contain;
animation: logoBloom 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}
@keyframes logoBloom {
from { transform: scale(0.8) rotate(-10deg); opacity: 0.5; }
to { transform: scale(1.1) rotate(10deg); opacity: 1; }
}
@keyframes fadeOut {
to { opacity: 0; }
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
</style>
</head>
<body>
<div class="phone">
<div class="splash-overlay">
<div class="logo"></div>
</div>
<div class="header">
<h1>My Collection</h1>
<p>12 healthy plants</p>
</div>
<div class="dashboard">
<div class="glass-card health-ring-container stagger-1">
<svg class="ring-svg" viewBox="0 0 100 100">
<circle class="ring-bg" cx="50" cy="50" r="45"></circle>
<circle class="ring-progress" cx="50" cy="50" r="45"></circle>
</svg>
<div class="ring-text">85%</div>
<div style="font-size: 12px; margin-top: 10px; opacity: 0.6;">Care Score</div>
</div>
<div class="glass-card water-wave-container stagger-2">
<div class="wave"></div>
<div class="wave"></div>
<div class="wave-content">
<div class="wave-label">Hydration</div>
<div class="wave-value">72%</div>
</div>
</div>
</div>
<div class="glass-card stagger-3" style="flex: 1; display: flex; align-items: center; justify-content: center;">
<p style="opacity: 0.5;">Plant List goes here...</p>
</div>
</div>
</body>
</html>