How devomondi/portfolio works
Project type and purpose
• This is a front-end single-page application (SPA) built with React and Vite.
File structure
• Top-level files:
– index.html: SPA container
– package.json & lock: npm dependencies & scripts
– Vite, PostCSS, Tailwind, ESLint, .env examples, gitignore
• src/ directory:
– main.jsx: React bootstrapping entry point
– App.jsx: root component
– Components/: UI building blocks (Header, Footer, Projects, Skills, Contact, WhatsAppButton, SuccessToast)
– assets/: static files (resume PDF)
– index.css: global styles
• Config files:
– vite.config.js: build & dev server config
– tailwind.config.js & postcss.config.js: styling pipeline
– .eslintrc.cjs: linting rules
README for additional insights
• Purpose: minimal React+Vite template with HMR (hot module replacement)
• Plugins: @vitejs/plugin-react (Babel Fast Refresh) or swc variant
Main components & relationships
a. Developer environment
– Vite Dev Server with HMR
– ESLint & Prettier (static analysis)
– Tailwind + PostCSS build pipeline
b. Build step
– Transpile JSX via Babel or SWC plugin
– Bundle modules into a single JS file (or code-split chunks)
– Produce index.html + assets (CSS, JS, PDF)
c. Production hosting
– Static file host / CDN (Netlify, Vercel, GitHub Pages)
– Deliver index.html, JS bundles, CSS, static assets
d. Runtime in User Browser
– Browser loads index.html → main.jsx → App → various Components
– Components render UI sections, read static assets (resume), invoke external links (WhatsApp API, mailto)
– SuccessToast for form feedback
Architectural patterns & design principles
• Component-based UI (Atomic design)
• Single responsibility per component (Header, ProjectCard, Contact)
• Unidirectional data flow (props passed top-down in React)
• Build-time separation from runtime (dev/build/host)
Technologies, frameworks & libraries
• React & JSX
• Vite (ESM dev server, Rollup-based bundler)
• @vitejs/plugin-react or swc plugin for Fast Refresh
• Tailwind CSS + PostCSS
• ESLint for code quality
• Optional: a static host/CI (Netlify/Vercel)
Detailed breakdown
• Code editor
• ESLint
• tailwind.config.js, postcss.config.js
→ points to Vite Dev Server
• Serves index.html & ESM modules
• HMR plugin (Babel/SWC)
• Vite build → Rollup bundling
• Tailwind CSS → PostCSS processing
• Outputs: index.html, bundle.js, style.css, resume.pdf
• Hosts artifacts
• Loads index.html
• Executes bundle.js
• Renders React App
– App.root
• Header
• Projects → ProjectCard
• Skills
• Contact → triggers SuccessToast
• WhatsAppButton (external API link)
• Footer
– Fetches static assets (resume PDF)
• WhatsApp API
• Mail client (via mailto)