A modern, responsive portfolio website with stunning animations, designed specifically for Java Developer & Creative Coder, Punit Kaswan.
π Live Demo: https://pk7.in
- Features
- Sections
- Design
- Mobile Responsiveness
- Installation & Usage
- Customization
- Deployment
- Browser Support
- Project Statistics
- File Structure
- Animated Particle Background - Floating particles (50 on desktop, 20 on mobile)
- Smooth Scroll Animations - Elements fade in as they enter viewport
- Responsive Design - Works perfectly on all devices (5 breakpoints)
- Mobile Menu - Hamburger navigation with smooth slide-in animation
- Visitor Counter - Increments on every page load with animated count-up
- Error Handling - Custom 404 page with automatic redirection
- Touch-Optimized - All interactive elements meet 44px minimum touch targets
- Hero with gradient text and CTA buttons
- About with profile image, education timeline, and skill tags
- Projects grid with status badges (Completed, Working, Upcoming)
- Academic Journey timeline
- Beyond The Code (leadership & interests)
- Certifications showcase
- Contact form with validation
- Professional footer with social links
Hi, I'm Punit Kaswan
Java Developer & Creative Coder
[View My Work] [Get In Touch]
- Large animated title
- Gradient text effects
- Dual CTA buttons
- Animated scroll indicator
- Profile Image: Placeholder for your professional photo
- Education Timeline:
- CGPS, Laxmangarh (2009-2020)
- Prince Academy, Sikar (2020-2022)
- B.Tech, JECRC University (2023-2027)
- Skills: Java, Spring Boot, Microservices, HTML5, CSS3, JavaScript, SQL, Git
3-column grid with animated cards:
| Project | Status | Description |
|---|---|---|
| E-Commerce Platform | Completed | Full-stack shopping platform |
| Microservices Dashboard | In Progress | Monitoring dashboard |
| AI Code Review Tool | Upcoming | AI-powered code analysis |
Timeline layout showing:
- B.Tech at JECRC University (2023-2027)
- +2 at Prince Academy (2020-2022)
- 10+2 at CGPS (2009-2020)
Leadership & interests grid:
- Campus Mantri - Geeks for Geeks, JECRC University (2026-27)
- Head β Aashayein - Social initiative, impacted 500+ lives (2025-26)
- Team Captain β American Football - JECRC University Team (2025-26)
- Head β JU Eagles - Official student forum (2025-26)
Responsive grid:
- Oracle Certified Java Programmer (2024)
- Spring Professional Certification (2024)
- AWS Certified Developer (2023)
- Microsoft Azure Fundamentals (2023)
- Contact information (email, phone, location)
- Contact form with JavaScript validation
- Social links
- Response feedback messages
Desktop (>768px):
[Β© 2024 Punit Kaswan | Crafted with β€οΈ] [π Visitors: 1234]
[π·][π][πΌ][βοΈ][π][π] [Social icons right-aligned]
Mobile (<768px):
Β© 2024 Punit Kaswan
Crafted with β€οΈ
[π·][π][πΌ][βοΈ][π][π] (centered)
π Visitors: 1234
| Element | Color Hex |
|---|---|
| Primary Cyan | #00d9ff |
| Primary Green | #00ff88 |
| Background Dark | #0a0a0a |
| Background Secondary | #1a1a2e |
| Background Tertiary | #16213e |
| Text Primary | #ffffff |
| Text Muted | #cccccc |
| Text Dim | #888888 |
| Completed Badge | #00ff88 (green) |
| Working Badge | #ffc107 (yellow) |
| Upcoming Badge | #00d9ff (cyan) |
linear-gradient(45deg, #00d9ff, #00ff88)- Font Family: Poppins (Google Fonts)
- Hero Title: 3.5rem (desktop), 2rem (mobile)
- Headings: Bold, with gradient effects
- Body: 1rem (responsive)
| Breakpoint | Width | Features |
|---|---|---|
| Extra Small | < 480px | Compact layout, single column |
| Small (Mobile) | 481-768px | Hamburger menu, stacked layouts |
| Medium (Tablet) | 769-1024px | 2-column grids |
| Large (Laptop) | 1025-1440px | Standard desktop layout |
| Extra Large | > 1440px | Max-width container 1400px |
- Hamburger menu slides in from right
- All sections stack vertically
- Touch targets β₯44px
- Reduced particle count (20 vs 50)
- Simplified animations for performance
- No horizontal scrolling
- Footer stacks: Credits β Social β Visitor counter
- Clone or download the project
- Open
index.htmlin your browser
Or use a local server:
# Using Python 3
cd E:\Claude\portfolio_website
python -m http.server 8000
# Open: http://localhost:8000
# Using Node.js
npx serve
# Using PHP
php -S localhost:8000Open DevTools (F12) to:
- Test animations
- Check responsive breakpoints
- Reset visitor counter:
localStorage.removeItem('portfolio_visits');
localStorage.removeItem('portfolio_last_visit');File: index.html
Update these sections:
- Hero name and title (lines 13-21)
- About section with your education (lines 79-106)
- Skills tags (lines 107-122)
- Projects (lines 145-187)
- Certifications (lines 218-255)
- Contact information (lines 287-302)
- Social links in footer (lines 358-373)
File: index.html (around line 72)
<!-- Replace this: -->
<div class="image-placeholder"></div>
<!-- With this: -->
<img src="your-photo.jpg" alt="Punit Kaswan" class="profile-image">File: styles.css
Search and replace:
#00d9ff(cyan) - Change to your primary color#00ff88(green) - Change to your secondary color
File: index.html (footer, lines 358-373)
Replace yourusername with actual handles:
<a href="https://instagram.com/yourusername" aria-label="Instagram">
<a href="https://x.com/yourusername" aria-label="X (Twitter)">
<a href="https://linkedin.com/in/yourusername" aria-label="LinkedIn">
<a href="mailto:your.email@example.com" aria-label="Email">
<a href="https://github.com/yourusername" aria-label="GitHub">
<a href="https://yourwebsite.com" aria-label="Website">File: script.js (line ~14)
const particleCount = isMobile ? 20 : 50; // Change 50 to your preferenceFile: styles.css
Adjust animation-duration values:
.fade-in { animation-duration: 0.8s; }
.particles { animation-duration: 15s; }- Drag and drop the folder
- Automatic 404 handling
- Global CDN
- Drag and drop the folder
- Add
_redirectsfile for 404:
/* /404.html 404
- Push to GitHub repository
- Enable Pages in Settings
- Select branch/folder
Netlify: Create _redirects in root:
/* /404.html 404
Vercel: Create vercel.json:
{
"rewrites": [
{ "source": "/(.*)", "destination": "/404.html" }
]
}Apache: Add to .htaccess:
ErrorDocument 404 /404.html
NGINX:
error_page 404 /404.html;
location = /404.html { internal; }
- Storage:
localStoragewith keysportfolio_visitsandportfolio_last_visit - Behavior: Increments on every page load/refresh
- Animation: Smooth count-up over 1.5 seconds
- Privacy: No IP tracking, no external calls
- Reset: Clear localStorage or use incognito mode
- Automatic 404 redirection
- Global error listeners
- Promise rejection handling
- Graceful fallbacks
- Lightweight: <150KB total
- GPU-accelerated CSS transforms
- Lazy animations (Intersection Observer API)
- Reduced particles on mobile
- No heavy external libraries (only Google Fonts)
- Minimal HTTP requests
| Browser | Version | Support |
|---|---|---|
| Chrome | 90+ | β Full |
| Firefox | 88+ | β Full |
| Safari | 14+ | β Full |
| Edge | 90+ | β Full |
| Mobile | Latest | β Full |
| Metric | Value |
|---|---|
| Total Files | 9 (3 HTML, 1 CSS, 1 JS, 4+ Docs) |
| Total Size | ~108KB (uncompressed) |
| HTML Lines | ~400 |
| CSS Lines | ~1020 |
| JavaScript Lines | ~554 |
| Sections | 8 |
| Animations | 10+ types |
| Social Icons | 6 (inline SVG) |
| Breakpoints | 5 |
| Development Time | Custom built |
portfolio_website/
βββ index.html # Main portfolio page
βββ 404.html # Custom 404 error page
βββ redirect.html # Generic redirect handler
βββ styles.css # All styling & animations
βββ script.js # Interactive functionality
βββ README.md # This file (main documentation)
βββ FEATURES.md # Feature breakdown
βββ MOBILE_RESPONSIVENESS.md # Mobile testing guide
βββ VISUAL_STRUCTURE.md # Layout diagrams
βββ FINAL_SUMMARY.md # Complete summary
βββ UPDATES.md # Version history
βββ BEYOND_CODE_ADDED.md # Leadership section details
βββ COMPLETE_GUIDE.md # Comprehensive guide
Before deploying, verify:
- Hamburger menu appears and functions
- Menu slides in from right, closes on click/ESC/outside
- No horizontal scrolling
- All touch targets β₯44px
- Footer stacks correctly (credits β social β visitor)
- Social icons sized appropriately (32-36px)
- Single-column layouts throughout
- Font sizes readable on 320px width
- Multi-column layouts work (About: 2fr 1fr, Projects: 3 columns)
- Full navigation menu visible
- Hover effects on cards and buttons
- 50 particles animate smoothly
- Footer: credits left, social center, visitor right
- All navigation links scroll smoothly to sections
- Contact form shows validation feedback
- No console errors in DevTools
- Animations are smooth (no lag)
- Visitor counter animates on page load
- Custom 404 page works (test by visiting non-existent URL)
- Visitor Counter - Client-side only, resets if localStorage cleared
- Contact Form - No backend (add Formspree, Netlify Forms, or custom API)
- Images - Placeholder images used (replace with your actual photos)
- SEO - Basic meta tags only (add Open Graph, structured data)
/* In styles.css */
linear-gradient(45deg, #00d9ff, #00ff88)
/* Replace hex values */<!-- In index.html footer -->
Β© 2025 Punit Kaswan <!-- Change year -->/* In styles.css */
.fade-in { animation-duration: 0.8s; }localStorage.clear();FEATURES.md- Complete feature listMOBILE_RESPONSIVENESS.md- Mobile testing guideVISUAL_STRUCTURE.md- Layout diagramsUPDATES.md- Version history and changesBEYOND_CODE_ADDED.md- Leadership section details
- MDN Web Docs - HTML/CSS/JS reference
- CSS-Tricks - CSS techniques
- Can I Use - Browser compatibility
Free to use, modify, and distribute for personal and commercial projects.
Attribution is appreciated but not required.
- Design & Development: Punit Kaswan
- Icons: Simple Icons (CC0)
- Fonts: Google Fonts - Poppins
- Template: Custom built from scratch
- β Added Academic Journey section
- β Added Beyond The Code section with leadership roles
- β Right-aligned footer layout (credits left, visitors right)
- β Removed IP address tracking (privacy-friendly)
- β Simplified visitor counter (increments on every load)
- β Mobile-optimized footer (stacked layout)
- β SVG social icons with brand colors
Ready to showcase your Java development skills! π
Built with β€οΈ using HTML, CSS, and JavaScript