forked from seanyoung247/terra-matter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
167 lines (152 loc) · 7.23 KB
/
Copy pathcontact.html
File metadata and controls
167 lines (152 loc) · 7.23 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<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="description"
content="Learn about the impact of your daily routine on the environment, how to improve to better our home, the Earth in a fun way!" />
<meta name="keywords"
content="Earth, environment, Nature, pollution, earth day, improve, lifestyle, green, learn, fun" />
<meta name="author" content="Terra Matter" />
<!-- CSS -->
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- custom css -->
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/contact.css">
<!-- Favicons create using the favicon.io's converter -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<!-- JS -->
<!-- Font Awesome-->
<script src="https://kit.fontawesome.com/ca208bcf52.js" crossorigin="anonymous"></script>
<!-- bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- emailjs -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js">
</script>
<script type="text/javascript">
(function () {
emailjs.init("user_zZR48PZvHUdToIEtpRtBT");
})();
</script>
<title>Terra Matter - Contact</title>
</head>
<body id="home">
<header class="navbar">
<h1>
<a href="#home">
<img class="navbar__logo" src="assets/images/logo/terra_matter_logo_main_black.svg" alt="Terra Matter">
</a>
</h1>
<nav>
<ul class="navbar__links">
<li><a class="navbar__link" href="index.html">Home</a></li>
<li><a class="navbar__link navbar__link--active" href="contact.html">Contact</a></li>
<li><a class="navbar__link" href="about.html">About</a></li>
</ul>
</nav>
</header>
<main>
<div class="container">
<div class="row justify-content-center align-items-center h-100">
<div class="col-10 col-md-6 col-xl-4">
<!-- Contact Form -->
<h2 class="mx-auto my-2 my-md-4 text-center">Contact</h2>
<p class="lead mx-auto text-center">
<small>
Feedback or Questions? <br />
Send us an email and we'll get back to you as soon as possible.
</small>
</p>
<form id="contact-form">
<div class="form-floating mt-3 mb-3">
<input type="email" class="form-control" name="customer-email" id="customer-email" required>
<label for="customer-email">Email address:</label>
</div>
<div class="form-floating mb-3">
<input type="text" class="form-control" name="customer-name" id="customer-name" required>
<label for="customer-name">Name:</label>
</div>
<div class="form-floating mb-3">
<textarea class="form-control" name="message" id="message" required></textarea>
<label for="message">Your message:</label>
</div>
<div class="mb-3 text-center">
<button type="submit" class="btn btn-primary m-2">Submit</button>
<!-- Back home button -->
<a href="index.html" class="btn btn-warning m-2">Go back Home</a>
</div>
</form>
</div>
</div>
</div>
<!-- Email success modal -->
<div class="modal fade" id="email-sent-modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="email-sent-modal-label" aria-hidden="true">
<div class="modal-dialog justify-content-center align-items-center">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title mx-auto test-success" id="email-sent-modal-label">Message sent successfully!
</h5>
</div>
<div class="modal-footer mx-autotext-center">
<a href="index.html" class="btn btn-primary m-2">Go back Home</a>
<a href="contact.html" class="btn btn-primary m-2">Send another message</a>
</div>
</div>
</div>
</div>
<!-- Email fail modal -->
<div class="modal fade" id="email-fail-modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="email-fail-modal-label" aria-hidden="true">
<div class="modal-dialog justify-content-center align-items-center">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title mx-auto text-danger" id="email-fail-modal-label">Message fail to send!</h5>
</div>
<div class="modal-body">
<p class="mx-auto">Oops, something went wrong! Please try again and make sure information are
correct.
</p>
</div>
<div class="modal-footer mx-autotext-center">
<a href="index.html" class="btn btn-primary m-2">Go back Home</a>
<a href="contact.html" class="btn btn-primary m-2">Send another message</a>
</div>
</div>
</div>
</div>
<!-- Overlay -->
<div id="contact-overlay" class="overlay"></div>
<!-- Loading spinner -->
<div id="sending-spinner" class="spinner-container">
<button class="btn btn-primary sending-spinner">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Sending...
</button>
</div>
</main>
<footer class="footer fixed-bottom bg-transparent">
<ul class="icons">
<li>
<a class="icons__link" href="https://www.instagram.com/" target="_blank"><i class="fa-brands fa-instagram"></i></a>
</li>
<li>
<a class="icons__link" href="https://www.facebook.com/" target="_blank"><i class="fa-brands fa-facebook-f"></i></a>
</li>
<li>
<a class="icons__link" href="https://twitter.com/" target="_blank"><i class="fa-brands fa-twitter"></i></a>
</li>
</ul>
</footer>
<script src="/assets/js/contact.js"></script>
</body>
</html>