How amomad99/effectivewing-landing-page works
Project type and purpose
• From the file tree and README, this is a static front-end “landing page” (effectivewing-landing-page) implemented as a Progressive Web App.
• It has no custom server code—only HTML, CSS, JavaScript, image assets, a web manifest, and client-side test code (TensorFlow.js face-recognition models).
• It uses Vue.js for UI logic, Firebase for user auth/storage, and local ML inference via pre-trained model shards.
File structure
• Top-level files:
• .env, .gitattributes, .vscode (dev config)
• README.md (project description)
• manifest.webmanifest (PWA manifest)
• Directories:
• css/ (styles)
• img/ and svg/ (static assets)
• js/ (core scripts: main.js, footer.js, firebase.js, Vue.js)
• pg/ (static pages: about.html, pricing.html, register.html, signin.html, user.html, etc.)
• test/ (client-side demos using TensorFlow.js; contains HTML test pages and model files)
• effectivewing/index.html, index.html, note.html, test.html (entry points)
• No server or API code—interactions that look “back-end” (e.g. auth) go to Firebase.
Key insights from README
• Very brief: “Effectivewing landing page.”
• Implied focus on marketing pages plus client-side UX demos (face tracking, VR, etc.) and PWA capabilities.
Main components
a. Client / Browser (Mobile or Desktop)
• UI Layer: static HTML pages (index.html, pg/*.html, test/*.html)
• Style Layer: CSS (css/style.css)
• Script Layer:
• App logic: js/main.js, js/footer.js, js/js.js, js/vue.js
• Firebase integration: js/firebase.js
• ML inference: test/js.js + test/models/* (TensorFlow.js)
• PWA Service Worker + Web Manifest (manifest.webmanifest)
b. Hosting / CDN
• Hosts all static assets (HTML/CSS/JS/img/svg)
• Could be GitHub Pages, Firebase Hosting, S3+CloudFront, etc.
c. External Services
• Firebase Authentication / Firestore (for register.html, signin.html, user.html)
• Possibly Firebase Storage (if images or user data)
d. Optional: Analytics or other third-party scripts (not explicitly present but common in landing pages)
Relationships & data flows
• Browser requests static assets from Hosting/CDN → renders UI
• Browser invokes Firebase SDK → communicates with Firebase Auth/DB
• Browser fetches ML model shards from hosted test/models folder → runs TensorFlow.js inference locally
• Service Worker caches assets; handles offline mode for PWA
Architectural patterns & design principles
• Static-first architecture (JAMstack): decoupled front-end, CDN hosting, third-party back-end
• Progressive enhancement: basic HTML pages augmented by Vue.js
• Client-side ML: lightweight inference, model shards delivered over HTTP
• Clear separation of concerns:
• Presentation (HTML/CSS)
• Behavior (JS modules)
• Data (Firebase, local model files)
Final advice
• Be detailed but avoid over-modularizing—this is fundamentally a static-site architecture.
• Essential flows: page load, auth, ML inference, service-worker caching.