-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact-2.html
More file actions
66 lines (59 loc) · 2.46 KB
/
contact-2.html
File metadata and controls
66 lines (59 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<meta property="og:title" content="Acromatic's website">
<meta property="og:type" content="website">
<meta property="og:description" content="Click on me!">
<meta property="theme-color" content="#121121">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Acromatic: Contact</title>
<link rel="stylesheet" href="https://its-acromatic.github.io/style.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Rubik+Vinyl&display=swap');
</style>
</head>
<body>
<div class="center">
<div>
<h1><h1 style="font-family: Rubik Vinyl; color: #3328d1">Acromatic</h1>
<br>
<a href="https://its-acromatic.github.io/site-nav"> -Site Navigation- </a>
</div>
<div>
<h4>Contact:</h4>
<a href="https://github.com/its-acromatic/">-> Github - its-acromatic</a> <br>
<a href="https://discord.com/users/1276765112014999557">-> Discord - its_acromatic_arnav.mishra</a> <br>
<a href="mailto:acromatic121@gmail.com">-> Email - acromatic121@gmail.com</a> <br>
<section>
<h2>Contact Us</h2>
<form action="http://its-acromatic.great-site.net/form-handler.php" method="post">
<label for="name">Your Name:</label><br>
<input type="text" id="name" name="name" placeholder="Enter your name" required><br><br>
<label for="email">Your Email:</label><br>
<input type="email" id="email" name="email" placeholder="Enter your email" required><br><br>
<label for="message">Your Message:</label><br>
<textarea id="message" name="message" rows="4" cols="50" placeholder="Type your message here" required></textarea><br><br>
<button type="submit">Send Message</button>
</form>
<p id="statusMessage"></p>
</section>
<script>
document.querySelector("form").addEventListener("submit", function(event) {
event.preventDefault();
let formData = new FormData(this);
fetch(this.action, {
method: "POST",
body: formData
})
.then(response => response.json())
.then(data => {
document.getElementById("statusMessage").textContent = data.message;
})
.catch(error => console.error("Error:", error));
});
</script>
<hr>
<p>Bye Bye! 👋</p>
</div>
</body>
</html>