An interactive, high-fidelity landing page and administrative console built for modern dairy supply chain management. This portal features responsive WebGL simulations, glossy glassmorphism styling, a floating 3D product showcase, and native integration templates for Microsoft Power Pages (Power Apps CRM).
- 🥛 Interactive Curvy 3D Bottle Showcase: A curved hourglass glass milk bottle rendered live on canvas using Three.js, complete with white liquid fills, metallic caps, rising condensation bubbles, and cursor-reactive tilt dynamics.
- 🌊 3D Milk Ocean Wave Background: A full-page, perspective-depth WebGL grid mesh that oscillates naturally like rich creamy milk. Viewport coordinate mapping projects cursor movements to deform the mesh, sending ripple wave wakes trailing behind the pointer.
- 🛡️ Secure Administrative Control Lock: An admin dashboard containing database controls for products, order queues, active subscriptions, and routes. It is protected behind a frosted-glass overlay that requires Admin credentials to unlock.
- 🔑 Sliding Switcher Login Modal: An overlay authentication modal supporting fast Tab switching (Customer vs. Administrator profiles) with local browser session persistence.
- 💎 Premium Parallax Hover Effects: Subtle 3D card transforms (
translateY,rotateX,rotateY,translateZ) coupled with dual-layered, theme-color matched under-glow shadow rings and porcelain edge sheens. - 🔌 Power Pages CRM Ready: Secure Liquid authorization code blocks and DOMContentLoaded check systems designed to drop directly into Microsoft PowerApps portals.
- Core Structure: HTML5, Semantic DOM, SVG Icons
- Visual Styles: Vanilla CSS3, Glassmorphic Layering, CSS Variables (HSL), Parallax Transforms
- 3D Graphics: Three.js (WebGL library)
- Target Platform: Power Pages CRM / Standalone Web Browser
milkstore-landing/
├── index.html # Main webpage markup, auth modals, and viewport canvases
├── styles.css # Premium stylesheets, variable tokens, and hover states
├── three-scene.js # Hero 3D glass bottle geometry and lighting controllers
└── milk-splash.js # Full-screen 3D waves plane and direct ripple projection mathsSince this project uses WebGL canvases and custom script imports, running it via a local web server is recommended (though opening index.html directly in Chrome/Edge works fine).
- Open the project folder in VS Code.
- Click Go Live in the status bar (using the Live Server extension).
If you have Python installed, navigate to the folder in your terminal and run:
python -m http.server 8000Then, open http://localhost:8000 in your web browser.
If you have Node.js installed, run:
npx serve .Then, open the provided local URL in your browser.
To load these assets in your Power Pages portal editor (VS Code for Web):
- HTML Content: Copy index.html contents into your webpage's copy markup file (
<> webpage.copy.html). Keep the CDN loader tag for Three.js but remove local script links (three-scene.jsandmilk-splash.js). - CSS Styles: Copy the styles from styles.css into your webpage's CSS override file (
# webpage.customcss.css). - JavaScript Controllers: Open your webpage's JS file (
JS webpage.customjs.js). Copy and paste the contents of three-scene.js first, and paste milk-splash.js directly underneath it. (Both scripts are enclosed in isolated closures(function(){})()and will compile side-by-side without naming collisions).