How kyle-schwartz-yang/uacenter works
Project type and purpose
• This is a front‑end, multi‑page static website (“UACENTER”) built with Pug templates, SCSS, and vanilla JavaScript.
• It follows Feature‑Sliced Design (FSD) to organize UI components and logic into layers (pages, features, entities, shared, widgets).
• The build tool is Prepros (prepros.config), which compiles Pug→HTML, SCSS→CSS, bundles and minifies JS, and runs a live‑reload server.
File structure
• Top‑level “_source” directory contains all source code, subdivided by FSD layers:
• components/pages – page‑specific templates & styles
• components/features – reusable feature blocks (e.g., TabbedSystem)
• components/entities – domain components (e.g., CardProduct)
• components/shared – global UI kit & utilities (common and project‑specific)
• components/widgets – higher‑order widgets (Header, Footer, Modals, GoogleMaps, Sidebar, Store‑category)
• scripts/ and _source/scripts contain JS modules (initAnimation, initModals, initSearchLive, initValidateForm) and library wrappers (_Swiper).
• prepros.config and package.json describe the build configuration and dependencies.
• Builds output static HTML/CSS/JS to the project root (index.html, about.html, css/main.css, script/app.js).
README for additional insights
• Confirms FSD architecture, vanilla JS, responsive design, dark theme toggle.
• Emphasizes Prepros features (compilation, minification, image optimization, live reload).