gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
Can you build the one page website for portfolio
- User
Can you build the one page website for portfolio
- Assistant
Can you build the one page website for portfolio
Absolutely! I can help you build a simple, clean, and modern one-page portfolio website. Below is a basic example written in HTML and CSS that you can customize to showcase your work, skills, and contact information.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Your Name - Portfolio</title>
<style>
/* Reset & base styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f7fa;
color: #333;
line-height: 1.6;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Container */
.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
padding: 60px 20px 40px;
}
header h1 {
font-size: 3rem;
margin-bottom: 10px;
color: #222;
}
header p {
font-size: 1.2rem;
color: #666;
}
nav {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 50px;
}
nav a {
font-weight: 600;
font-size: 1.1rem;
padding: 8px 12px;
border-radius: 4px;
transition: background-color 0.3s ease;
}
nav a:hover {
background-color: #3498db;
color: white;
}
section {
margin-bottom: 60px;
}
h2 {
font-size: 2rem;
margin-bottom: 20px;
border-bottom: 3px solid #3498db;
display: inline-block;
padding-bottom: 5px;
color: #222;
}
/* About */
#about p {
max-width: 700px;
margin: 0 auto;
font-size: 1.1rem;
color: #555;
}
/* Skills */
#skills ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
}
#skills li {
background-color: #3498db;
color: white;
padding: 10px 20px;
border-radius: 20px;
font-weight: 600;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Portfolio */
#portfolio .projects {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
gap: 25px;
}
.project-card {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
padding: 15px;
text-align: center;
transition: transform 0.3s ease;
}
.project-card:hover {
transform: translateY(-5px);
}
.project-card img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 6px;
margin-bottom: 15px;
}
.project-card h3 {
margin-bottom: 10px;
color: #222;
}
.project-card p {
font-size: 0.95rem;
color: #666;
}
/* Contact */
#contact form {
max-width: 500px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 15px;
}
#contact label {
font-weight: 600;
margin-bottom: 5px;
color: #222;
}
#contact input,
#contact textarea {
padding: 10px;
border: 2px solid #ccc;
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
#contact input:focus,
#contact textarea:focus {
border-color: #3498db;
outline: none;
}
#contact button {
background-color: #3498db;
color: white;
border: none;
padding: 12px;
font-size: 1.1rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#contact button:hover {
background-color: #2980b9;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
border-top: 1px solid #ddd;
color: #888;
font-size: 0.9rem;
}
/* Smooth scroll */
html {
scroll-behavior: smooth;
}
/* Responsive */
@media (max-width: 600px) {
header h1 {
font-size: 2.2rem;
}
nav {
flex-direction: column;
gap: 10px;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Your Name</h1>
<p>Web Developer | Designer | Programmer</p>
</header>
<nav>
<a href="#about">About</a>
<a href="#skills">Skills</a>
<a href="#portfolio">Portfolio</a>
<a href="#contact">Contact</a>
</nav>
<section id="about">
<h2>About Me</h2>
<p>
Hello! I’m a passionate web developer with experience in creating dynamic and beautiful web pages.
I enjoy turning complex problems into simple, beautiful, and intuitive designs.
When I’m not coding, I love hiking and exploring new technologies.
</p>
</section>
<section id="skills">
<h2>Skills</h2>
<ul>
<li>HTML5</li>
<li>CSS3</li>
<li>JavaScript</li>
<li>React</li>
<li>Node.js</li>
<li>Python</li>
<li>Git & GitHub</li>
</ul>
</section>
<section id="portfolio">
<h2>Portfolio</h2>
<div class="projects">
<div class="project-card">
<img src="https://via.placeholder.com/300x150.png?text=Project+1" alt="Project 1" />
<h3>Project One</h3>
<p>A web app that helps users track their tasks efficiently.</p>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x150.png?text=Project+2" alt="Project 2" />
<h3>Project Two</h3>
<p>An e-commerce website that offers a seamless shopping experience.</p>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x150.png?text=Project+3" alt="Project 3" />
<h3>Project Three</h3>
<p>A mobile-responsive portfolio site for a graphic designer.</p>
</div>
</div>
</section>
<section id="contact">
<h2>Contact Me</h2>
<form onsubmit="event.preventDefault(); alert('Thank you for your message!'); this.reset();">
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<label for="email">Email</label>
<input type="email" id="email" name="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<button type="submit">Send</button>
</form>
</section>
<footer>
© <span id="year"></span> Your Name. All rights reserved.
</footer>
</div>
<script>
// Set current year in footer
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</body>
</html>
index.html on your computer.If you'd like me to help you add specific features (like a resume download button, animations, or a dark mode toggle), just let me know!