forked from apu52/Travel_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
built complete functional contact us section
- Loading branch information
1 parent
49c7e65
commit 018b0ac
Showing
4 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" | ||
rel="stylesheet" | ||
|
@@ -13,6 +14,17 @@ | |
<link rel="stylesheet" href="./Image-Gallery/style.css"> | ||
<title>Arpan Codes | Tourguide</title> | ||
|
||
<script src="index.js"></script> | ||
|
||
<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("WB9rAyWwwLZube-er"); | ||
})(); | ||
</script> | ||
|
||
<style> | ||
html { | ||
scroll-behavior: smooth; | ||
|
@@ -29,7 +41,7 @@ | |
<li class="link"><a href="#trip">Pricing</a></li> | ||
<li class="link"><a href="#ReviewGallery">Reviews</a></li> | ||
</ul> | ||
<a href="https://www.linkedin.com/in/arpan-chowdhury-775294251/" class="btn">Contact Us</a> | ||
<a href="#contact"><button class="btn">Contact Us</button></a> | ||
</nav> | ||
<header> | ||
<section class="section__container header__container" id="Home"> | ||
|
@@ -181,6 +193,35 @@ <h2 class="section__title"> | |
</div> | ||
</div> | ||
</div> | ||
</section><br><br> | ||
|
||
|
||
<section class="contact"> | ||
<h2 class="section__title" align="center" id="contact">Contact Us</h2> | ||
<div class="contact-form"> | ||
<div class="left"> | ||
<!-- Add your image here --> | ||
<img src="./img/flat-design-illustration-customer-support_23-2148887720.avif" alt="Contact Image" style="max-width: 100%; width: 500px;"> | ||
</div> | ||
<div class="right"> | ||
<form> | ||
<div class="mb-3"> | ||
<label for="exampleInputName" class="form-label text-light">Name</label> | ||
<input type="text" class="form-control" id="exampleInputName" placeholder="Enter your name"> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="exampleInputEmail2" class="form-label text-light">Email address</label> | ||
<input type="email" class="form-control" id="exampleInputEmail2" aria-describedby="emailHelp" placeholder="Enter your email"> | ||
<div id="emailHelp" class="form-text text-light">We'll never share your email with anyone else.</div> | ||
</div> | ||
<div class="mb-3"> | ||
<label for="exampleInputMessage" class="form-label text-light">Message</label> | ||
<textarea class="form-control" id="exampleInputMessage" rows="4" placeholder="feel free to ask your queries!"></textarea> | ||
</div> | ||
<button type="submit" class="btn btn-primary" onclick="sendMail()">Submit</button> | ||
</form> | ||
</div> | ||
</div> | ||
<!-- New div components (hidden initially) --> | ||
<div id="newDiv" style="display: none;"> | ||
<div class="image-container"> | ||
|
@@ -218,10 +259,14 @@ <h2 class="section__title"> | |
<div class="btn-container"> | ||
<button class="btn" id="prev">Prev</button> | ||
<button class="btn" id="next">Next</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
|
||
|
||
|
||
<section class="subscribe" id="Contact"> | ||
<div class="section__container subscribe__container"> | ||
<div class="subscribe__content"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function sendMail() { | ||
var params = { | ||
name: document.getElementById("exampleInputName").value, | ||
email: document.getElementById("exampleInputEmail2").value, | ||
message: document.getElementById("exampleInputMessage").value, | ||
}; | ||
|
||
const serviceID = "service_hi7jvka"; | ||
const templateID = "template_2mu6atu"; | ||
|
||
emailjs.send(serviceID, templateID, params) | ||
.then(res=>{ | ||
document.getElementById("exampleInputName").value = ""; | ||
document.getElementById("exampleInputEmail2").value = ""; | ||
document.getElementById("exampleInputMessage").value = ""; | ||
console.log(res); | ||
alert("Your message sent successfully!!") | ||
|
||
}) | ||
.catch(err=>console.log(err)); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters