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

Enhanced contact us page #78

Merged
merged 5 commits into from
Jan 13, 2025
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
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
87 changes: 82 additions & 5 deletions contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,86 @@ text-align: left; /* Adjusts text alignment, optional */
position: relative;
}

footer {
padding: 10px;
background-color: #f0cd9e66;
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 20px;
min-height: calc(100vh - 120px);
gap: 20px;
}

.illustration-section img {
max-width: 100%;
width: 800px;
height: auto;

}

.form-section {
flex: 1;
max-width: 500px;
padding: 20px;
text-align: center;
border: 4px solid #faebd7;
}
background-color: #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}

.form-section h1 {
font-size: 2em;
color: #d6a52b;
margin-bottom: 10px;
}

.form-section p {
font-size: 1.1em;
margin-bottom: 20px;
}

.form-section input,
.form-section textarea {
width: 99%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
background-color: #ffebb7;
border-radius: 8px;
font-size: 1em;
}

.form-section button {
width: 100%;
padding: 10px;
background:#e2b43d ;
color: #ffffff;
border: none;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
transition: 0.3s ease;
}

.form-section button:hover {
background: #d6a52b ;

transform: scale(1.02);
}

.social-links {
margin-top: 20px;
}

.social-links a {
margin: 0 10px;
font-size: 1.5em;
color: #333;
text-decoration: none;
transition: color 0.3s ease;
}

.social-links a:hover {
color: #d6a52b;
}

51 changes: 22 additions & 29 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,38 +101,31 @@ <h2>Ajivika</h2>
</button>

<!-- Contact Form Section -->
<section class="contact-section">
<h1><i class="fas fa-envelope icon"></i> Contact Us</h1>
<p>
We'd love to hear from you! Please fill out the form below with your
queries or feedback.
</p>

<form id="ContactForm">
<label for="name"><i class="fas fa-user icon"></i> Name:</label>
<!-- <input type="text" name="name" pattern="[A-Za-z\s\-']+" title="Name must only contain letters, spaces, hyphens, or apostrophes" required> -->
<input
type="text"
id="name"
name="name"
pattern="[A-Za-z\s\-']+"
title="Name must only contain letters,spaces,hyphens or apostrophes"
required
/>

<label for="email"><i class="fas fa-envelope icon"></i> Email:</label>
<input type="email" id="email" name="email" required />
<div class="container">
<div class="illustration-section">
<img src="image copy.png" alt="Contact Illustration">
</div>
<div class="form-section">
<h1>CONTACT US</h1>
<p>We would love to hear from you</p>
<form>
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" rows="5" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
<div class="social-links">
<a href="https://facebook.com" target="_blank"><i class="fab fa-facebook"></i></a>
<a href="https://twitter.com" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="https://instagram.com" target="_blank"><i class="fab fa-instagram"></i></a>
<a href="https://linkedin.com" target="_blank"><i class="fab fa-linkedin"></i></a>
</div>
</div>
</div>

<label for="message"
><i class="fas fa-comment icon"></i> Message:</label
>
<textarea id="message" name="message" rows="3" required></textarea>


<button type="submit" class="submit">
<i class="fas fa-paper-plane"></i> Submit
</button>
</form>
</section>
<!-- Floating Image Button -->
<button class="image-button">
<img src="./image.png" alt="Image Button" class="image-icon" />
Expand Down
Binary file added image copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading