How mohammadatifhossain/portfolio works
Project Type and Purpose
• This is a static, single-page portfolio website built with HTML5, CSS3, and vanilla JavaScript.
• Its goal is to showcase professional experience, projects, skills, and provide a contact form via EmailJS.
File Structure Analysis
• Top-level files:
• index.html – the entry point and main HTML document
• README.md – project description and usage instructions
• assets/ directory:
• css/styles.css – global styles, theming via CSS variables, layout with Grid/Flexbox
• js/main.js – client-side logic, animations (ScrollReveal.js), EmailJS integration
• img/ – images such as profile picture and portfolio screenshots
• pdf/ – downloadable resume file
• No backend code or server-side logic is present.
Architecture Overview
• Core components:
A. Client (Web Browser)
B. Static Hosting (Netlify, Vercel, GitHub Pages) + optional CDN layer
C. Asset Store (CSS, JS, Images, PDF)
D. External Service: EmailJS API for contact form emails
• Data Flow:
1. Browser requests index.html from the static host.
2. Browser fetches CSS, JS, images, PDF from the same host or CDN.
3. main.js initializes UI animations (ScrollReveal) and theme toggles, handles section navigation.
4. On contact form submission, main.js calls EmailJS REST API (service ID, template ID, public key) to send email.
5. EmailJS responds directly to the client; form success/failure is handled in the browser.
Important Patterns and Technologies
• Static Site Hosting Pattern: no dedicated backend, relies on client-side code and third-party APIs.
• Layout Patterns – CSS Grid and Flexbox for responsive sections.
• Third-Party Integration – EmailJS for contact form.
Key Takeaways
• Static-site hosting pattern and EmailJS integration.