How piyushg3803/myntra-clone works
Project type and purpose
• This is a frontend-only, static website project: a responsive single-page clone of the Myntra homepage built with pure HTML, CSS and JavaScript.
• There is no backend or database—only static assets (HTML, CSS, JS, images) served to the user’s browser.
File structure
• Top-level files:
• index.html – the single entry point and main HTML structure
• index.js – JavaScript that drives dynamic behavior (e.g., menu toggles, sliders)
• css/
– style.css (main styling and layout rules)
– utilities.css (utility classes, responsive helpers)
• img/ – static image assets (logos, product thumbnails, banners)
README for additional insights
• The README confirms it’s purely frontend, responsive, and used to showcase HTML/CSS/JS skills.
• No mention of any external APIs or build tools—assume it is deployed as static files (e.g., GitHub Pages or an S3 bucket).
a. Main components
• Client (Web Browser)
• Static Asset Server (e.g., GitHub Pages, nginx, S3)
• Assets: HTML, CSS, JS, Images
b. Relationships & interactions
• Browser issues HTTP GET to the asset server for index.html
• HTML references CSS and JS files—browser fetches them in parallel
• CSS applies styling and responsive layout rules
• JS attaches event listeners and handles user interactions (e.g., dropdowns, slideshows)
• Images are requested on demand as the HTML/CSS reference them
c. Architectural patterns / design principles
• Singlepage static site pattern (all assets delivered upfront)
• Separation of concerns: HTML for structure, CSS for presentation, JS for behavior
• Responsive design via utility CSS classes and media queries
d. Technologies and frameworks
• HTML5
• CSS3 (Flexbox/Grid, media queries)
• Vanilla JavaScript (ES6+)