<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Product Landing Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<div class="logo">AI Product</div>
<ul>
<li><a href="#features">Features</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section id="hero">
<h1>Welcome to AI Product</h1>
<p>Revolutionizing the future with AI technology.</p>
<button id="learn-more">Learn More</button>
</section>
<section id="features">
<h2>Features</h2>
<div class="feature">
<h3>Feature 1</h3>
<p>Description of feature 1.</p>
</div>
<div class="feature">
<h3>Feature 2</h3>
<p>Description of feature 2.</p>
</div>
<div class="feature">
<h3>Feature 3</h3>
<p>Description of feature 3.</p>
</div>
</section>
<section id="about">
<h2>About Us</h2>
<p>Information about the AI product and the team behind it.</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
<form id="contact-form">
<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" required></textarea>
<button type="submit">Submit</button>
</form>
</section>
<footer>
<p>© 2024 AI Product. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
color: #333;
}
header {
background-color: #4CAF50;
padding: 20px;
text-align: center;
color: white;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 10px;
}
nav a {
color: white;
text-decoration: none;
}
#hero {
background-color: #f4f4f4;
padding: 100px 20px;
text-align: center;
}
#hero h1 {
margin: 0 0 20px;
}
#features, #about, #contact {
padding: 50px 20px;
}
.feature {
margin-bottom: 20px;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
}
document.getElementById('learn-more').addEventListener('click', function() {
document.getElementById('features').scrollIntoView({ behavior: 'smooth' });
});
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;
alert(`Thank you, ${name}. We have received your message.`);
// Here you can add code to send the form data to your server
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.