Thanks for sharing the Figma community design link — it's a beautiful and clean UI/UX portfolio website design. Based on that design, I’ll give you a complete HTML, CSS, and JavaScript code bundle that replicates the core layout and functionality of the design.
✅ Overview of What We’ll Build:
🎯 Features Included:
Sticky Header with Navigation
Hero Section with CTA
About Section
Projects Section (with cards)
Contact Section with Form
Scroll Animation (Fade-in)
Dark Mode Toggle
Responsive Design (Mobile Friendly)
⚠️ Note: Since the Figma link is a community design , I’ll replicate the visual structure and style , not the actual interactivity (like animations or micro-interactions) unless specified.
📁 File Structure
code Copy code
portfolio-website/
│
├── index.html
├── style.css
└── script.js
🧾 1. index.html – The Full HTML
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Your Name | UI/UX Designer</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Header -->
<header>
<div class="container">
<a href="#" class="logo">Your Name</a>
<button id="menu-toggle" class="menu-toggle" aria-label="Toggle navigation">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</button>
<nav id="nav-menu">
<ul>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
<li>
<div class="dark-mode-switch">
<label for="dark-mode-toggle">Dark Mode</label>
<input type="checkbox" id="dark-mode-toggle">
<span class="slider round"></span>
</div>
</li>
</ul>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero animate-on-scroll">
<div class="container">
<h1>Hello, I’m <span>Your Name</span></h1>
<p>A UI/UX Designer crafting intuitive digital experiences</p>
<a href="#projects" class="btn">View My Work</a>
</div>
</section>
<!-- About Section -->
<section id="about" class="about animate-on-scroll">
<div class="container">
<h2>About Me</h2>
<p>I'm a passionate UI/UX Designer with 3+ years of experience creating beautiful, user-centric interfaces. I love solving complex problems with simple, elegant solutions.</p>
<div class="skills">
<span>Figma</span>
<span>User Research</span>
<span>Prototyping</span>
<span>Wireframing</span>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="projects animate-on-scroll">
<div class="container">
<h2>My Projects</h2>
<div class="project-grid">
<!-- Project 1 -->
<div class="project-card">
<h3>Project One</h3>
<p>A sleek e-commerce mobile app designed for seamless shopping experiences.</p>
<a href="#" class="btn">View Case Study</a>
</div>
<!-- Project 2 -->
<div class="project-card">
<h3>Project Two</h3>
<p>A productivity dashboard that helps teams manage tasks and deadlines efficiently.</p>
<a href="#" class="btn">View Case Study</a>
</div>
<!-- Add more projects here -->
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact animate-on-scroll">
<div class="container">
<h2>Contact Me</h2>
<form id="contact-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required />
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit" class="btn">Send Message</button>
</form>
</div>
</section>
<!-- Footer -->
<footer>
<p>© 2024 Your Name. All rights reserved.</p>
</footer>
<!-- JS -->
<script src="script.js"></script>
</body>
</html>
🎨 2. style.css – The Full CSS
⚙️ 3. script.js – The Full JavaScript
javascript Copy code
document.addEventListener('DOMContentLoaded', () => {
// Hamburger Menu Toggle
const menuToggle = document.getElementById('menu-toggle');
const navMenu = document.getElementById('nav-menu');
const body = document.body;
if (menuToggle && navMenu) {
menuToggle.addEventListener('click', () => {
navMenu.classList.toggle('active');
menuToggle.classList.toggle('active');
body.classList.toggle('no-scroll');
});
// Close menu on nav link click
navMenu.querySelectorAll('a').forEach(link => {
link.addEventListener('click', () => {
navMenu.classList.remove('active');
menuToggle.classList.remove('active');
body.classList.remove('no-scroll');
});
});
}
// Dark Mode Toggle
const darkModeToggle = document.getElementById('dark-mode-toggle');
const savedTheme = localStorage.getItem('theme');
const body = document.body;
if (darkModeToggle) {
// Load saved theme or use system preference
if (savedTheme) {
body.classList.toggle('dark-mode', savedTheme === 'dark');
darkModeToggle.checked = savedTheme === 'dark';
} else {
body.classList.toggle('dark-mode', window.matchMedia('(prefers-color-scheme: dark)').matches);
darkModeToggle.checked = window.matchMedia('(prefers-color-scheme: dark)').matches;
}
// Toggle theme
darkModeToggle.addEventListener('change', () => {
const isDark = darkModeToggle.checked;
body.classList.toggle('dark-mode', isDark);
localStorage.setItem('theme', isDark ? 'dark' : 'light');
});
}
// Smooth Scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if (targetElement) {
targetElement.scrollIntoView({ behavior: 'smooth' });
}
});
});
// Scroll Animation
const animatedElements = document.querySelectorAll('.animate-on-scroll');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.2 });
animatedElements.forEach(el => observer.observe(el));
// Basic Contact Form Validation
const contactForm = document.getElementById('contact-form');
if (contactForm) {
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
const name = document.getElementById('name').value.trim();
const email = document.getElementById('email').value.trim();
const message = document.getElementById('message').value.trim();
if (!name || !email || !message) {
alert('Please fill out all fields.');
return;
}
if (!email.includes('@')) {
alert('Please enter a valid email address.');
return;
}
// Simulate form submission
alert('Thank you! Your message has been sent.');
contactForm.reset();
});
}
});
✅ How to Use
Create a folder called portfolio-website/.
Save the three files inside:
index.html
style.css
script.js
Open index.html in your browser.
Customize the content, colors, and images to match your personal brand.
🌟 Bonus Ideas
Replace placeholder content with your real projects.
Add a blog section to showcase your writing.
Use a tool like Framer Motion or GSAP for advanced animations.
Deploy your site on Netlify , Vercel , or GitHub Pages .
Would you like me to generate a downloadable ZIP of the files or help you deploy it online?