How otabek996/responsive-to-website works
Project Type and Purpose
• This is a single-page React portfolio website. It lives entirely in the browser as a static app, built with Node/NPM and deployed (e.g., to GitHub Pages). Its purpose is to showcase résumé details, works, and contact links with SEO/meta tags, responsive layout, and dark‑mode support.
Key Architectural Components
a. Build & Deployment Pipeline
• Node.js / NPM (package.json, package-lock.json)
• Bundler (create‑react‑app or similar, hidden in node_modules)
• Output: static assets in “build” folder (HTML, JS, CSS, images)
• Deployment target: GitHub Pages or any static‑host (netlify, Vercel)
b. Public Shell
• public/index.html
• SEO/social‑share meta tags, manifest.json, robots.txt
c. React Front‑End
• Entry point: src/index.js → renders <App /> into DOM
• Routing: src/utils/routes.js + src/components/Routes/Routes.jsx (React Router)
• Theme hook: src/utils/use-theme.js (manages dark mode via CSS variables)
• Data modules: src/utils/techData.js (static tech & social links)
• Components tree:
– <App /> wraps Header, Sidebar, Routes
– <Header /> (site title, theme toggle)
– <Sidebar /> (nav links)
– <Routes /> defines pages: <Home />, <Works />, <Resume />
– <Card /> used within <Works /> for portfolio items
• Styles: CSS Modules per component (under src/styles) + global.css, variables.css
d. Static Assets
• src/images (logos, AVIFs used by components)
Relationships and Data Flow
• User’s Browser loads index.html → loads bundled JS/CSS
• React bootstrap: index.js → App
• App uses React Router to pick current page
• Components import techData & theme hook for content and styling
• CSS Modules applied at component-level; global.css sets resets/variables
Architectural Patterns & Principles
• Component‑based UI (React)
• Single‑Page Application (SPA) with client‑side routing
• Separation of concerns:
• Public vs. src
• Components vs. utils vs. styles
• Build-time assets vs. runtime code
• Theming via CSS variables and a custom hook