1
This commit is contained in:
+62
@@ -0,0 +1,62 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
label {
|
||||
margin-bottom: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input, textarea {
|
||||
margin-bottom: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: #007BFF;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
#statusMessage {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
color: green;
|
||||
}
|
||||
@@ -5,3 +5,31 @@
|
||||
<link rel="stylesheet" href="Contact.css">
|
||||
<a href="https://www.pixilart.com/penguinboy69/gallery">See Art That Miles maybe will Use</a>
|
||||
<a href="https://penguinrobert1.github.io/uwu.com/">See The Scratch Company Site</a>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Contact Us</title>
|
||||
<link rel="stylesheet" href="Contact.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Contact Us</h1>
|
||||
<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="5" required></textarea>
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
<p id="statusMessage"></p>
|
||||
</div>
|
||||
<script src="Contact.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+9
-9
@@ -1,12 +1,12 @@
|
||||
document.getElementById('contactForm').addEventListener('submit', functie(gebeurtenis) {
|
||||
gebeurtenis.preventDefault();
|
||||
const naam = document.getElementById('naam').value;
|
||||
document.getElementById('contactForm').addEventListener('submit', function(event) {
|
||||
event.preventDefault();
|
||||
const name = document.getElementById('name').value;
|
||||
const email = document.getElementById('email').value;
|
||||
const bericht = document.getElementById('bericht').value;
|
||||
const message = document.getElementById('message').value;
|
||||
|
||||
als (naam && e-mail && bericht) {
|
||||
document.getElementById('statusMessage').textContent = 'Bedankt voor uw bericht, ' + name + '! We nemen zo snel mogelijk contact met u op.';
|
||||
} anders {
|
||||
document.getElementById('statusMessage').textContent = 'Vul alle velden in.';
|
||||
if (name && email && message) {
|
||||
document.getElementById('statusMessage').textContent = 'Thank you for reaching out, ' + name + '! We will get back to you soon.';
|
||||
} else {
|
||||
document.getElementById('statusMessage').textContent = 'Please fill out all fields.';
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -80,6 +80,11 @@ const mainContentData = [
|
||||
image: "/gamestooadd.jpeg",
|
||||
link: "/gametoadd.html",
|
||||
},
|
||||
{
|
||||
name: "Contact Us",
|
||||
image: "/gamestooadd.jpeg",
|
||||
link: "/gametoadd.html",
|
||||
}
|
||||
];
|
||||
mainContentData.forEach(item => {
|
||||
let newDiv = `
|
||||
|
||||
Reference in New Issue
Block a user