A modern, responsive single-page portfolio website showcasing professional projects, skills, and contact information. Built with vanilla HTML, CSS, and JavaScript—no build system or dependencies required.
Live Site: https://JHEK675.github.io
- Smooth Scroll Navigation: Seamless anchor-based navigation with active link highlighting
- Responsive Design: Mobile-first approach with breakpoints at 768px and 480px
- Scroll Animations: Intersection Observer API for fade-in effects on project cards and skills
- Modern Gradient UI: Consistent purple gradient theme (#667eea to #764ba2)
- Zero Dependencies: Pure HTML5, CSS3, and vanilla JavaScript—deploy directly to GitHub Pages
- Accessibility: Semantic HTML structure with proper meta tags and alt text support
Simply clone or fork this repository and customize the content:
git clone https://github.com/JHEK675/Silok-Capital.github.io.git
cd Silok-Capital.github.ioOpen index.html in your browser to preview locally.
.
├── index.html # Main HTML file with all sections
├── styles.css # Responsive styling with CSS variables
├── script.js # Interactive features (navigation, animations)
└── README.md # This file
Edit index.html:
- Line 7: Update
<title>and meta description - Lines 18-20: Change logo/name in navbar
- Lines 32-33: Update hero section heading and subtitle
- Lines 46-50: Replace About section content
- Lines 66-94: Modify project cards (title, description, tags, links)
- Lines 113-130: Update skills categories and items
- Lines 139-144: Update contact section and social media links
- Line 149: Update copyright year/name
Edit styles.css (:root section, lines 12-21):
--primary-color: #667eea; /* Main gradient start */
--secondary-color: #764ba2; /* Main gradient end */
--text-dark: #333; /* Text color */
--text-light: #666; /* Secondary text */
--bg-light: #f8f9fa; /* Section backgrounds */
--bg-dark: #1a1a1a; /* Footer background */In script.js, adjust IntersectionObserver settings:
- Line 35:
threshold: 0.1— controls when animation triggers (0-1, lower = earlier) - Line 36:
rootMargin: '0px 0px -50px 0px'— offset for animation trigger - Lines 44-46: Modify
.project-cardanimation properties - Lines 51-53: Modify
.skill-categoryanimation properties
Duplicate a project card block in index.html (lines 63-79):
<div class="project-card">
<div class="project-image" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);"></div>
<h3>Project Name</h3>
<p>Project description</p>
<div class="project-tags">
<span class="tag">Technology</span>
</div>
<a href="#" class="project-link">View Project →</a>
</div>- Add section to
index.html:<section id="section-id" class="section-name"> <div class="container"> <!-- Your content --> </div> </section>
- Add navbar link:
<li><a href="#section-id">Label</a></li> - Create styles in
styles.csswith 80px padding - If scroll animation needed, add observer logic in
script.js
- Fixed sticky navbar with gradient logo text
- Active link highlighting based on scroll position (offset by -200px for sticky nav)
- Smooth scrolling to anchor links (no page reload)
- Hero section text fades in on page load with staggered timing
- Project cards and skill categories fade in as they scroll into view
- Buttons have hover effects with transform and shadow changes
| Breakpoint | Changes |
|---|---|
| 768px and below | Nav gaps reduce, grids switch to single column, heading sizes decrease |
| 480px and below | Smaller fonts, compact navbar spacing, mobile-optimized layout |
- Enable GitHub Pages in repository settings (Settings → Pages)
- Set source to main branch, root directory
- Push changes to main branch—site auto-deploys
- Access at
https://[username].github.io
- Create
CNAMEfile in root with your domain - Configure DNS records to point to GitHub Pages
- HTML5: Semantic markup with proper meta tags
- CSS3: Flexbox, CSS Grid, custom properties, media queries
- JavaScript (ES6+): DOM manipulation, Intersection Observer API
- GitHub Pages: Free hosting and deployment
- Chrome/Edge (Latest)
- Firefox (Latest)
- Safari (Latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
- All images should be optimized (use WebP or compressed PNG/JPEG)
- Keep project descriptions concise for better mobile display
- Test animations at different scroll speeds in DevTools
- Verify responsive design at 768px and 480px breakpoints
Smooth scroll not working?
- Ensure
scroll-behavior: smoothis set onhtml(styles.css, line 25)
Animations not triggering?
- Check IntersectionObserver threshold and rootMargin values
- Verify elements have the correct classes (
.project-card,.skill-category) - Disable browser cache in DevTools and check console for errors
Navigation links not highlighting?
- Confirm section IDs match anchor href values exactly
- The -200px offset accounts for sticky navbar; adjust if needed
© 2026 John Doe. All rights reserved.
Need help? Review the Copilot Instructions for AI-assisted development guidelines.