How shronal/portfolio- works
Project type and purpose
• This is a static personal portfolio website built with plain HTML, CSS, and JavaScript, hosted on GitHub Pages (with Cloudflare as CDN and a custom domain). It showcases the author’s bio, projects, skills, and contact form.
File structure
• Top-level HTML pages:
• index.html (home/about)
• project.html, retrievalhub.html, hotelreservation.html, tree_traversal.html (individual project pages)
• Styles and scripts:
• project.css, style.css
• script.js
• Static assets:
• videos/ (demo mp4)
• doc/cv.pdf
• Deployment config:
• .github/workflows/static.yml (CI for GitHub Pages)
• CNAME (custom domain)
Key insights from README
• Tech Stack: HTML, CSS, JS, Bootstrap
• Hosted on GitHub Pages behind Cloudflare CDN
• Fully responsive, mobile-friendly
• No backend components (purely client-side)
Main components
a. Client (web browser)
b. DNS & CDN layer (Cloudflare + CNAME)
c. Static hosting (GitHub Pages origin)
d. Static asset storage (HTML, CSS, JS, images, videos, PDF)
e. External services (optional contact-form mail service or GitHub Actions CI)
Relationships & data flows
• User opens browser → DNS lookup (register.com.np) → Cloudflare CDN →
→ CDN serves cached static files or fetches from GitHub Pages origin →
→ Browser downloads HTML, CSS, JS, assets → renders portfolio →
• If contact form is implemented as third-party JS call → Browser → external email API
Architectural patterns & design principles
• Static site architecture (no server-side code)
• CDN caching for performance and DDoS protection
• Component separation:
• Content (HTML)
• Presentation (CSS, Bootstrap)
• Behavior (JavaScript)
• Assets (images, videos, PDF)
• GitOps deployment via GitHub Actions
• DNS lookup → “register.com.np / Cloudflare DNS”
• CDN layer → “Cloudflare CDN (cache)”
• Origin hosting → “GitHub Pages”
• (Optional) “Contact Form API” external service