<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Portfolio</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #374151;
background-color: #f9fafb;
}
header {
background-color: #1a365d;
color: white;
padding: 1.5rem;
text-align: center;
}
nav a {
color: white;
margin: 0 1rem;
text-decoration: none;
font-weight: 500;
}
nav a:hover {
color: #0d9488;
}
section {
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
}
h2 {
color: #1a365d;
margin-bottom: 1.5rem;
border-bottom: 2px solid #0d9488;
padding-bottom: 0.5rem;
}
/* Projects Section */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.project-card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Contact Form */
.contact-form {
max-width: 600px;
margin: 0 auto;
}
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 4px;
font-size: 1rem;
}
.form-group textarea {
resize: vertical;
min-height: 120px;
}
.submit-btn {
background-color: #0d9488;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
}
.submit-btn:hover {
background-color: #0f766e;
}
/* About Section */
#about p {
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;
}
</style>
</head>
<body>
<header>
<h1>Alex Morgan</h1>
<nav>
<a href="#about">About</a>
<a href="#projects">Projects</a>
<a href="#contact">Contact</a>
</nav>
</header>
<section id="about">
<h2>About Me</h2>
<p>Hello! I'm Alex Morgan, a front-end developer passionate about creating beautiful, user-friendly web experiences. With expertise in HTML, CSS, and JavaScript, I bring ideas to life on the web.</p>
</section>
<section id="projects">
<h2>My Projects</h2>
<div class="projects-grid">
<div class="project-card">
<h3>Responsive Blog</h3>
<p>A mobile-friendly blog template built with modern CSS grid and flexbox for seamless reading across devices.</p>
</div>
<div class="project-card">
<h3>Weather App</h3>
<p>Real-time weather application using OpenWeather API with dynamic background based on current conditions.</p>
</div>
<div class="project-card">
<h3>Portfolio Template</h3>
<p>A clean, customizable portfolio template perfect for showcasing creative work and professional skills.</p>
</div>
</div>
</section>
<section id="contact">
<h2>Contact Me</h2>
<form class="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" required></textarea>
</div>
<button type="submit" class="submit-btn">Send Message</button>
</form>
</section>
</body>
</html>


作者声明:本文包含人工智能生成内容。