I'll help you design a personal portfolio website with interactive project showcases and a contact form. I'll provide a comprehensive breakdown of the design, including HTML structure, CSS styling, and JavaScript interactivity.
Project Structure
portfolio/
│
├── index.html
├── css/
│ ├── styles.css
│ └── animations.css
├── js/
│ ├── projects.js
│ └── contact.js
├── images/
│ ├── projects/
│ └── profile.jpg
└── assets/
└── resume.pdf
HTML Structure (index.html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Name - Portfolio</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/animations.css">
</head>
<body>
<header>
<nav>
<div class="logo">Your Name</div>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<!-- Home Section -->
<section id="home">
<div class="hero-content">
<img src="images/profile.jpg" alt="Profile Picture">
<h1>Hi, I'm [Your Name]</h1>
<p>Web Developer | Designer | Creative Problem Solver</p>
</div>
</section>
<!-- About Section -->
<section id="about">
<h2>About Me</h2>
<div class="about-content">
<p>A brief introduction about your professional background, skills, and passion.</p>
<div class="skills">
<h3>Skills</h3>
<div class="skill-tags">
<span>JavaScript</span>
<span>React</span>
<span>Node.js</span>
<!-- Add more skills -->
</div>
</div>
<a href="assets/resume.pdf" download class="btn">Download Resume</a>
</div>
</section>
<!-- Projects Section -->
<section id="projects">
<h2>My Projects</h2>
<div class="project-grid" id="project-container">
<!-- Projects will be dynamically loaded here -->
</div>
</section>
<!-- Contact Section -->
<section id="contact">
<h2>Contact Me</h2>
<form id="contact-form">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Your Message" required></textarea>
<button type="submit" class="btn">Send Message</button>
</form>
</section>
</main>
<footer>
<div class="social-links">
<a href="#" target="_blank">LinkedIn</a>
<a href="#" target="_blank">GitHub</a>
<a href="#" target="_blank">Twitter</a>
</div>
<p>© 2025 Your Name. All Rights Reserved.</p>
</footer>
<script src="js/projects.js"></script>
<script src="js/contact.js"></script>
</body>
</html>
CSS Styling (styles.css)
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--background-color: #f4f4f4;
--text-color: #333;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: var(--background-color);
color: var(--text-color);
}
/* Responsive Navigation */
nav {
display: flex;
justify-content: space-between;
padding: 1rem 5%;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Project Grid */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
}
.project-card {
background-color: white;
border-radius: 10px;
overflow: hidden;
transition: transform 0.3s ease;
}
.project-card:hover {
transform: scale(1.05);
}
/* Contact Form */
#contact-form {
display: flex;
flex-direction: column;
max-width: 500px;
margin: 0 auto;
}
#contact-form input,
#contact-form textarea {
margin-bottom: 1rem;
padding: 0.5rem;
border: 1px solid #ddd;
}
JavaScript for Projects (projects.js)
const projects = [
{
title: "E-commerce Platform",
description: "Full-stack e-commerce website with React and Node.js",
technologies: ["React", "Node.js", "MongoDB"],
imageUrl: "images/projects/ecommerce.jpg",
githubLink: "#"
},
// Add more project objects
];
function renderProjects() {
const projectContainer = document.getElementById('project-container');
projects.forEach(project => {
const projectCard = document.createElement('div');
projectCard.classList.add('project-card');
projectCard.innerHTML = `
<img src="${project.imageUrl}" alt="${project.title}">
<h3>${project.title}</h3>
<p>${project.description}</p>
<div class="project-technologies">
${project.technologies.map(tech => `<span>${tech}</span>`).join('')}
</div>
<a href="${project.githubLink}" target="_blank">View Project</a>
`;
projectContainer.appendChild(projectCard);
});
}
document.addEventListener('DOMContentLoaded', renderProjects);
JavaScript for Contact Form (contact.js)
document.getElementById('contact-form').addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(this);
// In a real-world scenario, you'd send this to a backend service
console.log({
name: formData.get('name'),
email: formData.get('email'),
message: formData.get('message')
});
alert('Message sent successfully!');
this.reset();
});
Key Features
- Responsive design
- Interactive project showcase
- Dynamic project rendering
- Contact form with basic validation
- Clean, modern UI
- Easily customizable
Recommendations for Implementation
- Replace placeholder content with your personal information
- Add your actual projects to the
projects array
- Implement proper backend handling for the contact form
- Add more detailed CSS for responsiveness
- Include actual links to your social media profiles
Would you like me to elaborate on any specific aspect of the portfolio website design?