Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contact us page #43

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions css/contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.container {
max-width: 500px;
width: 100%;
margin: 0 auto;
}

#contact {
padding: 30px;
margin: 50px 0;
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
backdrop-filter: blur(4px);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
}

#contact h3 {
color: white;
display: block;
font-size: 30px;
font-weight: 300;
margin-bottom: 10px;
text-align: center;
}

fieldset {
border: medium none !important;
margin: 0 0 10px;
min-width: 100%;
padding: 0;
width: 100%;
}

fieldset label {
color: white;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
width: 100%;
border: 1px solid #ccc;
background: #FFF;
margin: 5px 0 10px;
padding: 10px;
}

#contact input[type="text"]:hover,
#contact input[type="email"]:hover,
#contact textarea:hover {
border: 1px solid #aaa;
}

#contact textarea {
height: 100px;
max-width: 100%;
resize: none;
}

#contact button[type="submit"] {
cursor: pointer;
width: 100%;
border: none;
background: #58a6ff;
color: #FFF;
margin: 0 0 5px;
padding: 10px;
font-size: 15px;
}

#contact button[type="submit"]:hover {
background: #348cf1;
transition: background-color 0.3s ease-in-out;
}

#contact button[type="submit"]:active {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

#contact input:focus,
#contact textarea:focus {
outline: 0;
border: 1px solid #aaa;
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>Badge Website</h1>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="#">Badges</a></li>
</ul>
</nav>
Expand Down
72 changes: 72 additions & 0 deletions pages/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact - Badge Website</title>

<link rel="stylesheet" href="../styles.css" />
<link rel="stylesheet" href="../css/contact.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
<link rel="apple-touch-icon" sizes="180x180" href="../Favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="../Favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="../Favicon/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="icon" href="../Favicon/favicon.ico?v=2">
</head>

<body>

<header>
<div class="header-container">
<div class="logo">
<img src="../Favicon/favicon-32x32.png" alt="Logo" />
<h1>Badge Website</h1>
</div>
<nav class="nav-links">
<ul>
<li><a href="/">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="./pages/contact.html">Contact</a></li>
<li><a href="#">Badges</a></li>
</ul>
</nav>
<div class="menu-toggle">
<i class="fas fa-bars"></i>
</div>
</div>
</header>

<div class="container">
<form id="contact" action="#" method="post">
<h3>Contact Us</h3>
<fieldset>
<label for="name">Name</label>
<input placeholder="Enter your name" type="text" name="name" tabindex="1" required autofocus>
</fieldset>
<fieldset>
<label for="name">Email</label>
<input placeholder="Your Email Address" type="email" name="email" tabindex="2" required>
</fieldset>
<fieldset>
<label for="message">Message</label>
<textarea placeholder="Type your message here...." name="message" tabindex="5" required></textarea>
</fieldset>
<button name="submit" type="submit" id="contact-submit" data-submit="...Sending">Submit</button>
</form>
</div>

<footer>
<div class="footer-text">
<p>
Follow us on
<a href="https://github.com/rajatuiwebdev/badge-website">Github</a> |
<a href="https://www.linkedin.com/in/rajatrajput2004/">LinkedIn</a>
</p>
<p>&copy; 2024 Rajat Rajput | All rights reserved</p>
</div>
</footer>
</body>

</html>