This commit is contained in:
Robert
2025-01-30 15:28:40 +00:00
parent 077cc558d0
commit 0eb3a604f6
4 changed files with 106 additions and 11 deletions
+62
View File
@@ -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;
}
+29 -1
View File
@@ -4,4 +4,32 @@
<a href="https://scratch.mit.edu/projects/922703647/">My Broken Scratch Website</a> <a href="https://scratch.mit.edu/projects/922703647/">My Broken Scratch Website</a>
<link rel="stylesheet" href="Contact.css"> <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://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> <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>
+10 -10
View File
@@ -1,12 +1,12 @@
document.getElementById('contactForm').addEventListener('submit', functie(gebeurtenis) { document.getElementById('contactForm').addEventListener('submit', function(event) {
gebeurtenis.preventDefault(); event.preventDefault();
const naam = document.getElementById('naam').value; const name = document.getElementById('name').value;
const email = document.getElementById('email').value; const email = document.getElementById('email').value;
const bericht = document.getElementById('bericht').value; const message = document.getElementById('message').value;
als (naam && e-mail && bericht) { if (name && email && message) {
document.getElementById('statusMessage').textContent = 'Bedankt voor uw bericht, ' + name + '! We nemen zo snel mogelijk contact met u op.'; document.getElementById('statusMessage').textContent = 'Thank you for reaching out, ' + name + '! We will get back to you soon.';
} anders { } else {
document.getElementById('statusMessage').textContent = 'Vul alle velden in.'; document.getElementById('statusMessage').textContent = 'Please fill out all fields.';
} }
}); });
+5
View File
@@ -80,6 +80,11 @@ const mainContentData = [
image: "/gamestooadd.jpeg", image: "/gamestooadd.jpeg",
link: "/gametoadd.html", link: "/gametoadd.html",
}, },
{
name: "Contact Us",
image: "/gamestooadd.jpeg",
link: "/gametoadd.html",
}
]; ];
mainContentData.forEach(item => { mainContentData.forEach(item => {
let newDiv = ` let newDiv = `