design: apply user-provided soft green pastel color palette variables to root theme and Three.js 3D silo
Browse filesFiles changed (2)
- frontend/app.js+8-8
- frontend/style.css+15-15
1083 unmodified lines108410851086108710881089109010911092109310941095109610971098109911001101110241 unmodified lines114411451146114711481149115029 unmodified lines11801181118211831184118511866 unmodified lines11931194119511961197119811991083 unmodified linesc.style.boxShadow = "none";});entry.target.style.borderColor = "var(--cyan)";entry.target.style.background = "rgba(5, 150, 105, 0.03)";entry.target.style.boxShadow = "0 4px 15px rgba(5, 150, 105, 0.05)";// Get parametersconst targetHeight = entry.target.getAttribute("data-height");const targetTons = entry.target.getAttribute("data-tons");// Determine 3D color based on stage heightlet colorHex = 0x059669; // Emerald green (stage 1)if (targetHeight === "55") {colorHex = 0xd97706; // Amber (stage 2)} else if (targetHeight === "95") {colorHex = 0xef4444; // Crimson red (stage 3)}// Update Three.js 3D silo height and color41 unmodified lineslet isTabActive = true;let target3DHeight = 0.1; // 10% initiallylet current3DHeight = 0.1;let targetColorHex = 0x059669;window.addEventListener("blur", () => { isTabActive = false; });window.addEventListener("focus", () => { isTabActive = true; });29 unmodified lines// 1. Silo Outer Wireframe Cylinderconst siloGeo = new THREE.CylinderGeometry(0.7, 0.7, 2, 16, 1, true);const siloMat = new THREE.MeshBasicMaterial({color: 0x059669,wireframe: true,transparent: true,opacity: 0.186 unmodified lineswasteGeo.translate(0, 1, 0); // Translate origin pivot to bottomconst wasteMat = new THREE.MeshPhongMaterial({color: 0x059669,transparent: true,opacity: 0.7,shininess: 40,1083 unmodified lines108410851086108710881089109010911092109310941095109610971098109911001101110241 unmodified lines114411451146114711481149115029 unmodified lines11801181118211831184118511866 unmodified lines11931194119511961197119811991083 unmodified linesc.style.boxShadow = "none";});entry.target.style.borderColor = "var(--cyan)";entry.target.style.background = "rgba(84, 130, 53, 0.03)";entry.target.style.boxShadow = "0 4px 15px rgba(84, 130, 53, 0.05)";// Get parametersconst targetHeight = entry.target.getAttribute("data-height");const targetTons = entry.target.getAttribute("data-tons");// Determine 3D color based on stage heightlet colorHex = 0x548235; // Soft green (stage 1)if (targetHeight === "55") {colorHex = 0xC59124; // Soft Gold Amber (stage 2)} else if (targetHeight === "95") {colorHex = 0xC53929; // Soft Crimson Red (stage 3)}// Update Three.js 3D silo height and color41 unmodified lineslet isTabActive = true;let target3DHeight = 0.1; // 10% initiallylet current3DHeight = 0.1;let targetColorHex = 0x548235;window.addEventListener("blur", () => { isTabActive = false; });window.addEventListener("focus", () => { isTabActive = true; });29 unmodified lines// 1. Silo Outer Wireframe Cylinderconst siloGeo = new THREE.CylinderGeometry(0.7, 0.7, 2, 16, 1, true);const siloMat = new THREE.MeshBasicMaterial({color: 0x548235,wireframe: true,transparent: true,opacity: 0.186 unmodified lineswasteGeo.translate(0, 1, 0); // Translate origin pivot to bottomconst wasteMat = new THREE.MeshPhongMaterial({color: 0x548235,transparent: true,opacity: 0.7,shininess: 40,
12345678910111213141516171819202122/* CSS Variables for Bright Eco-Sustainability Theming */:root {--bg-void: #F8FAFC; /* Clean bright slate */--bg-panel: #FFFFFF; /* Pure White Card */--border-color: #E2E8F0; /* Soft border */--border-hover: #CBD5E1; /* Darker border on hover */--text-main: #0F172A; /* Slate 900 (Charcoal) */--text-muted: #64748B; /* Slate 500 (Muted) *//* Professional Eco-Urban Colors */--cyan: #059669; /* Eco Emerald Green (Primary Accent) */--cyan-glow: rgba(5, 150, 105, 0.15);--green: #10B981; /* Mint Green */--green-glow: rgba(16, 185, 129, 0.1);--yellow: #D97706; /* Warning Amber Orange */--yellow-glow: rgba(217, 119, 6, 0.1);--red: #EF4444; /* Critical Crimson Red */--red-glow: rgba(239, 68, 68, 0.15);/* Fonts */--font-display: 'Outfit', 'Space Grotesk', system-ui, sans-serif;12345678910111213141516171819202122/* CSS Variables for Bright Eco-Sustainability Theming */:root {--bg-void: #EAF4E8; /* Lightest soft mint green (warm, no glare) */--bg-panel: #FFFFFF; /* Pure White Card for high contrast surface */--border-color: #D0E7CD; /* Soft leaf border */--border-hover: #A9D08E; /* Meadow green on hover */--text-main: #2C402B; /* Dark forest green (professional, soft on the eyes) */--text-muted: #688566; /* Muted olive-sage green *//* Professional Eco-Urban Colors based on custom palette */--cyan: #548235; /* Dark Leaf Green (Primary Accent) */--cyan-glow: rgba(84, 130, 53, 0.15);--green: #70AD47; /* Meadow Green */--green-glow: rgba(112, 173, 71, 0.1);--yellow: #C59124; /* Soft Gold Amber */--yellow-glow: rgba(197, 145, 36, 0.1);--red: #C53929; /* Soft Crimson Red */--red-glow: rgba(197, 57, 41, 0.15);/* Fonts */--font-display: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
frontend/app.js+8-8
frontend/style.css+15-15