-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
151 lines (114 loc) · 4.65 KB
/
contact.html
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php include 'book.php'?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Me</title>
<link rel ='stylesheet' href="index.css">
<!-- swiper link -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css"
/>
<!-- hamburger menu link- font awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- font link -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Text&family=Montserrat:wght@200;700&family=Poppins:wght@200;600&family=Source+Sans+Pro&display=swap" rel="stylesheet">
<!-- javascript code -->
<!-- <script src="script.js"></script> -->
</head>
<body>
<section class = "header">
<a href="index.html" class="logo"><img src ="images/image-removebg-preview.png" alt ="logo"></a>
<nav class="navbar">
<a href="index.html">Home</a>
<a href="about.html" >About</a>
<a href="experiences.html" >Experiences</a>
<a href="bookings.html" >Bookings</a>
<a href="packages.html" >Packages</a>
</nav>
<div id="menu-btn" class="fa fa-bars">
</div>
</section>
<section class ="contact-section" id="contact" >
<div class ="about-content">
<h1 class ="heading-title">Contact us </h1> <hr>
</div>
<div class="box-container">
<div class ="image">
<img src="images/image-removebg-preview.png" alt="logo">
</div>
<form action="book.php" method="post">
<div class="inputBox">
<input name="name" type="text" placeholder="name" required pattern="[A-Za-z]+" >
<input name="subject"type="text" placeholder="subject" required>
<input name="email"type="email" placeholder="email" required ></div>
<div class="inputBox">
<textarea name="message" placeholder="message" id="" cols="60" rows="6" required ></textarea>
</div>
<div class="inputbox"><?php echo $alert;?></div>
<input type="submit" name='submit' class="btn" value="send">
<!-- <span class="btn">send</span> -->
</form>
</div>
</section>
<!--------------------------------------------------------------------------------------------------------------------------------------------script -->
<script>
let menu = document.querySelector('#menu-btn');
let navbar = document.querySelector('.header .navbar');
menu.onclick = () => {
menu.classList.toggle('fa-times');
navbar.classList.toggle('active');
};
const nameInput = document.querySelector("input");
nameInput.addEventListener("input", () => {
nameInput.setCustomValidity("");
nameInput.checkValidity();
});
nameInput.addEventListener("invalid", () => {
if (nameInput.value === "") {
nameInput.setCustomValidity("Enter your username!");
} else {
nameInput.setCustomValidity(
"Usernames can only contain upper and lowercase letters. Try again!"
);
}
});
</script>
<!-- footer -->
<section class="footer">
<div class="box-container">
<div class="box">
<h3>quick links</h3>
<a href="index.html"><i class="fas fa-angle-right"></i>Home</a>
<a href="about.html" ><i class="fas fa-angle-right"></i>About</a>
<a href="experiences.html" ><i class="fas fa-angle-right"></i>Experiences</a>
<a href="bookings.html" ><i class="fas fa-angle-right"></i>Bookings</a>
<a href="packages.html" ><i class="fas fa-angle-right"></i>Packages</a>
</div>
<div class="box">
<h3>extra links</h3>
<a href="contact.html"><i class="fas fa-angle-right"></i>ask questions</a>
<a href="about.html" ><i class="fas fa-angle-right"></i>About us</a>
<a href="#" ><i class="fas fa-angle-right"></i>privacy policy</a>
<a href="#" ><i class="fas fa-angle-right"></i>terms</a>
</div>
<div class="box">
<h3>contact info</h3>
<a href="#"><i class="fas fa-phone"></i>+ 1 403-995-4080</a>
<a href="contact.html"><i class="fa-solid fa-inbox"></i>Contact Form</a>
<a href="mailto:kechiemerole|@gmail.com" ><i class="fas fa-envelope"></i>[email protected]</a>
</div>
<div class="box">
<h3>follow us</h3>
<a href="https://www.linkedin.com/in/kechi-emerole/"><i class="fa-brands fa-linkedin"></i> LinkedIn</a>
<a href="https://github.com/kechiemerole" ><i class="fa-brands fa-github"></i>github</a>
</div>
</div>
<div class="credit">created by <span> kechi emerole </span> | all rights reserved!</div>
</section>
</body>
</html>