-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
78 lines (74 loc) · 2.97 KB
/
Copy pathcontact.html
File metadata and controls
78 lines (74 loc) · 2.97 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
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="David, Cool, The Best!" />
<meta name="description" content="My website is so cool!" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="CSSfiles/contact.css" />
<link rel="shortcut icon" href="image/D.png" type="image/x-icon" />
<title>Contact</title>
</head>
<body>
<header>
<div class="navbar">
<div class="logo"><a href="index.html">DevColaDavid</a></div>
<ul class="links">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<a href="Quiz/quiz.html" class="action_btn">Play</a>
<div class="toggle_btn">
<i class="fa-solid fa-bars"></i>
</div>
</div>
<div class="dropdown_menu">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">about</a></li>
<li><a href="contact.html">Contract</a></li>
<li><a href="Quiz/quiz.html" class="action_btn">Play</a></li>
</div>
</header>
<main>
<section class="contact">
<div class="contact-container">
<form action="https://api.web3forms.com/submit" method="POST" class="contact-left">
<div class="contact-left-title">
<h2>Get in touch</h2>
<hr>
</div>
<input type="hidden" name="access_key" value="f01d9393-f4e5-4020-b422-9b83c9b7bc80">
<input type="text" name="name" placeholder="Your Name" class="contact-inputs" required>
<input type="email" name="email" placeholder="Your Email" class="contact-inputs" required>
<textarea name="message" placeholder="Your Message" class="contact-inputs" required></textarea>
<button type="submit">Submit <img src="image/arrow_icon.png" alt=""></button>
</form>
<div class="contact-right">
<img src="image/right_img.png" alt="">
</div>
</div>
</section>
</main>
<script>
const toggleBtn = document.querySelector(".toggle_btn");
const toggleBtnIcon = document.querySelector(".toggle_btn i");
const dropDownMenu = document.querySelector(".dropdown_menu");
toggleBtn.onclick = function () {
dropDownMenu.classList.toggle("open");
const isOpen = dropDownMenu.classList.contains("open");
toggleBtnIcon.classList = isOpen
? "fa-solid fa-xmark"
: "fa-solid fa-bars";
};
</script>
</body>
</html>