<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - Rockstar Entertainment</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.contact-container {
width: 100%;
max-width: 600px;
margin: 50px auto;
background: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
margin-top: 0;
color: #333;
}
p {
color: #666;
}
label {
display: block;
margin-bottom: 5px;
color: #333;
}
input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 10px 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#statusMessage {
margin-top: 20px;
color: green;
}
</style>
</head>
<body>
<div class="contact-container">
<h1>Contact Us</h1>
<p>If you have any questions, suggestions, or just want to say hi, please reach out to us using the form below.</p>
<form id="contactForm">
<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="6" required></textarea>
<button type="submit">Send Message</button>
</form>
<p id="statusMessage"></p>
</div>
<script>
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;
// Simple form validation
if (name === "" || email === "" || message === "") {
alert("All fields are required.");
return;
}
// Simulate form submission
document.getElementById('statusMessage').innerText = "Thank you for your message, " + name + "! We will get back to you soon.";
// Reset form
document.getElementById('contactForm').reset();
});
</script>
</body>
</html>