Skip to content

Commit

Permalink
Merge pull request #736 from MOHIT-IITP/contact-us-page
Browse files Browse the repository at this point in the history
Contact us page Created
  • Loading branch information
PriyaGhosal authored Oct 15, 2024
2 parents 8dfd518 + 13e9ac2 commit 32ceaf7
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 1 deletion.
139 changes: 139 additions & 0 deletions contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-image: linear-gradient(to bottom right , blue, violet);
backdrop-filter: blur(10px);
}

.container {
display: flex;
width: 500px;
background: rgba(0, 0, 0, 0.6);
padding: 40px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
overflow: hidden;
position: relative;
height: 520px;
}

.container form {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 15px;
flex-wrap: wrap;
padding: 20px;
}

.container form h1 {
color: #fff;
font-weight: 500;
margin: 5px 0 10px;
width: 100%;
text-align: center;
}

.container form input {
width: calc(50% - 20px);
height: 40px;
padding-left: 10px;
outline: none;
border: none;
font-size: 15px;
margin-bottom: 10px;
background: none;
border-bottom: 2px solid #fff;
color: #fff;
}

.container form input::placeholder {
color: #ddd;
}

.container form input#lastName,
.container form input#mobile {
margin-left: 20px;
}

.container form h4 {
color: #ffffffd5;
font-weight: 300;
width: 100%;
margin-top: 20px;
text-align: center;
}

.container form textarea {
background: none;
border: none;
border-bottom: 2px solid #fff;
color: #fff;
font-weight: 200;
font-size: 15px;
padding: 10px;
outline: none;
width: 100%;
height: 80px;
resize: none;
}

textarea::-webkit-scrollbar {
width: 1em;
}

textarea::-webkit-scrollbar-thumb {
background-color: rgba(194, 194, 0, 0.7);
}

.container form #button {
border: none;
background: #fff;
border-radius: 5px;
margin-top: 20px;
font-weight: 600;
font-size: 20px;
color: #333;
width: 100px;
padding: 6px;
transition: opacity 0.3s;
}

.container form #button:hover {
opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
.container {
width: 70%;
padding: 20px;
height: auto;
}

.container form input,
.container form textarea {
width: 70%;
}

.container form input#lastName,
.container form input#mobile {
margin-left: 0;
}

.container form {
padding: 10px;
}
}
25 changes: 25 additions & 0 deletions contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link rel="stylesheet" href="./contact.css">
<link rel="icon" href="../favicon.png" type="image/png">
</head>
<body>
<div class="container">
<form>
<h1>Contact Us </h1>
<input type="text" id="firstName" placeholder="First Name" required>
<input type="text" id="lastName" placeholder="Last Name" required>
<input type="email" id="email" placeholder="Email" required>
<input type="text" id="mobile" placeholder="Mobile" required>

<h4>Type Your Message Here</h4>
<textarea></textarea>
<input type="submit" value="Send" id="button">
</form>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h1 id="logo"><a href="#home">BuddyTrail</a></h1>
<li><a href="about.html" class="navhover">About</a></li>
<li><a href="#itineraries" class="navhover">Travel Itineraries</a></li>

<li><a href="#contact" class="navhover">Contact</a></li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="#reviews" class="navhover">Reviews</a></li>
<li><a href="auth.html" class="navhover">Sign In</a></li>

Expand Down

0 comments on commit 32ceaf7

Please sign in to comment.