How alejocolazurda/tienda-ciberseguridad works
Project Type and Purpose
• A static, frontend-only e-commerce demo (“MiTienda Ciber”) built with HTML, SCSS/CSS, and vanilla JavaScript.
• Hosted on GitHub Pages; no custom backend or database.
• Showcases a product catalog, sticky navbar/footer, responsive design, SweetAlert2 notifications, and LinkedIn-powered contact form.
File Structure Analysis
• Top-level HTML pages: index.html, about.html, cart.html, faq.html, hype.html.
• SCSS source under /scss; main.scss imports partials (_variables.scss, _base.scss, _layout.scss, etc.)
• Compiled CSS under /css (styles.css, source map, backup).
• /img holds static assets.
• package.json + node_modules indicate an optional local toolchain for SCSS compilation or npm-based asset management.
README Insights
• Frontend stack: HTML5, CSS3 (Grid/Flex), basic JS, SweetAlert2, Font Awesome.
• Deployed via GitHub Pages.
• No runtime API or database—interactivity is entirely client-side.
a. Main Components
• Developer Environment (IDE, Node.js toolchain, SCSS compiler)
• GitHub Repository (source control)
• Build Step (SCSS → CSS; optionally bundling JS)
• GitHub Pages (static site host / CDN for HTML, CSS, JS, images)
• External Services:
– SweetAlert2 (notifications, local or CDN)
– LinkedIn API (contact form submission link)
• End User Browser (renders HTML/CSS, executes JS)
b. Relationships & Data Flow
1. Developer writes/updates .html, .scss, .js locally.
2. SCSS compiler (npm script or tool) transforms /scss → /css/styles.css.
3. Developer pushes commits to GitHub repo.
4. GitHub Pages automatically serves the updated static build.
5. User’s browser requests pages/assets from GitHub Pages.
6. Browser loads external CSS/JS from Font Awesome CDN and SweetAlert2 CDN.
7. On contact form submit, browser interacts with LinkedIn’s public API/URL.
8. Browser triggers SweetAlert2 notifications on user actions.
c. Architectural Patterns & Principles
• Static Site Hosting: No server-side logic; assets delivered via CDN.
• Componentized Styles: SCSS partials for modularity (variables, layouts, components).
• Mobile-First, Responsive Design.
• Client-side enhancement only (progressive enhancement).
d. Key Technologies
• SCSS (source) → CSS3 (grid/flex)
• HTML5 Semantic Pages
• JavaScript + SweetAlert2
• Git/GitHub + GitHub Pages