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

Improved home page made the css for hovering #662

Closed
wants to merge 2 commits into from
Closed
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
296 changes: 131 additions & 165 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,133 +40,109 @@
flex: 1;
}

.follow-us {
-ms-flex-align: center;
display: flex;
background-color: #f4f4f4;
padding: 20px;
text-align: center;
margin-top: auto;
/* Keep this at the bottom */
}

.follow-us h2 {
color: grey;
/* Grey color for the heading */
font-size: 28px;
/* Increased size for the heading */
margin-bottom: 15px;
/* Space between heading and icons */
.navbar .nav-list li a:hover {
color: #007bff;
/* Color for hover effect */
transition: color 0.3s ease;
}

.follow-us a {
margin: 0 15px;
color: grey;
/* Grey color for icons */
text-decoration: none;
height: 50px;
width: 50px;
border-radius: 50%;
position: relative;
z-index: 3;
transition: color 0.5s ease-in-out;
}

@property --fill {
syntax: '<percentage>';
inherits: true;
initial-value: 0%;
/* Styling for carousel text */
.carousel-text {
font-size: 2.5rem;
/* Increased font size */
color: #fff;
/* White color for contrast */
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
/* Optional shadow for readability */
}

.follow-us a::after {
position: absolute;
z-index: -1;
content: '';
inset: -3px;
border-radius: inherit;
background: conic-gradient(var(--iconbg) var(--fill), transparent var(--fill));
transition: --fill 0.6s ease-in-out;
/* Add custom styles for buttons */
.btn {
background-color: #007bff;
/* Primary color */
border: none;
/* Remove border */
color: #fff;
/* White text */
transition: background-color 0.3s;
/* Smooth background transition */
}

.follow-us a::before {
position: absolute;
content: '';
inset: -1px;
border-radius: inherit;
background-color: #fff;
z-index: 0;
.btn:hover {
background-color: #3e91e9;
/* Darker shade on hover */
}

.follow-us a:hover {
color: var(--iconbg);
/* Change color on hover */
--fill: 100%
/* Responsive design */
@media (max-width: 768px) {
.container {
padding: 20px;
/* Adjust padding on smaller screens */
}
}

.follow-us a:focus {
outline: 2px solid var(--iconbg);
outline-offset: 2px;
.contact-container {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 2rem;
}

.follow-us img {
width: 50px;
/* Set logo size */
height: 50px;
filter: grayscale(100%);
/* Grey color for icons */
transition: filter 0.3s;
/* Smooth transition effect */
.contact-container h1 {
font-size: 2rem;
color: #333333;
margin-bottom: 1rem;
font-weight: 700;
text-align: center;
}

.follow-us a:hover img {
filter: grayscale(0%);
/* Color on hover */
.contact-container p {
background-color: #f3f3f3;
color: #555555;
padding: 0.5rem 1rem;
font-size: 0.9rem;
border-radius: 20px;
display: inline-block;
margin-bottom: 1rem;
font-weight: 500;
}

/* General styles for contact form inputs */
.form-control {
background-color: #fff;
/* White background */
border: 1px solid #ced4da;
/* Light border */
border-radius: 0.5rem;
/* Rounded corners */
transition: border-color 0.3s;
/* Smooth border transition */
border-radius: 10px;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
border: 1px solid #d1d1d1;
padding: 0.8rem;
}

.form-control:focus {
outline: none;
/* Remove default outline */
box-shadow: none;
/* Remove any shadow */
border-color: #007bff;
/* Change border color on focus */
box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Add custom styles for buttons */
.btn {
.form label {
font-size: 0.85rem;
color: #888;
margin-left: 0.5rem;
}

.contact-btn {
background-color: #007bff;
/* Primary color */
border: none;
/* Remove border */
color: #fff;
/* White text */
color: #ffffff;
border-radius: 10px;
padding: 0.8rem 1.5rem;
font-size: 1rem;
font-weight: 600;
transition: background-color 0.3s;
/* Smooth background transition */
}

.btn:hover {
background-color: #3e91e9;
/* Darker shade on hover */
.contact-btn:hover {
background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
.container {
padding: 20px;
/* Adjust padding on smaller screens */
}
.map-container {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
</style>
</head>
Expand Down Expand Up @@ -622,77 +598,67 @@ <h5 class="mb-0 normal-case"> [email protected]</h5>
</div>
</div>
</div>
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.1s">
<div class="bg-light rounded p-5">
<p class="d-inline-block border rounded-pill py-1 px-4 " style="color: #000;">Contact Us
</p>
<h1 class="mb-4">Have Any Query? Please Contact Us!</h1>

<form>
<div class="row g-3">
<div class="col-md-6">
<div class="form">
<input type="text" class="form-control" id="name" name="name"
placeholder="Your Name" required>
<label for="name">Your Name</label>
</div>
</div>
<div class="col-md-6">
<div class="form">
<input type="email" class="form-control" id="email" name="email"
placeholder="Your Email" required>
<label for="email">Your Email</label>
</div>
</div>
<div class="col-md-6">
<div class="form">
<input type="tel" class="form-control" id="phone" name="phone"
placeholder="Your Phone Number" required
style=" height: 50px; font-size: 15px;">
<label for="phone">Your Phone Number</label>
</div>
</div>
<div class="col-md-6">
<div class="form">
<input type="text" class="form-control" id="city" name="city"
placeholder="Your City" required>
<label for="city">Your City</label>
</div>
</div>
<div class="col-12">
<div class="form">
<input type="text" class="form-control" id="subject" name="subject"
placeholder="Subject" required>
<label for="subject">Subject</label>
</div>
</div>
<div class="col-12">
<div class="form">
<textarea class="form-control" placeholder="Leave a message here"
id="message" name="message" style="height: 100px ; font-size: 15px;"
required></textarea>
<label for="message">Message</label>
</div>
</div>
<div class="col-12 d-flex justify-content-center">
<button class="btn btn-primary w-100 py-3" id="contact">Send
Message</button>
</div>
<div class="container mt-5">
<div class="row">
<!-- Contact Form Section -->
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.1s">
<div class="contact-container">
<p>Contact Us</p>
<h1>Have Any Query? Please Contact Us!</h1>
<form>
<div class="row g-3">
<div class="col-md-6">
<div class="form">
<input type="text" class="form-control" id="name" name="name" placeholder="Your Name" required>
<label for="name">Your Name</label>
</div>
</form>

</div>
</div>
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.5s">
<div class="h-100" style="min-height: 400px;">
<iframe class="rounded w-100 h-100"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d224346.77249238306!2d77.06889927915427!3d28.527582456103037!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d1d4567aef7fd%3A0xddb0beddcd6d3c74!2sNew%20Delhi%2C%20Delhi%2C%20India!5e0!3m2!1sen!2sin!4v1603794290143!5m2!1sen!2sin"
frameborder="0" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
<div class="col-md-6">
<div class="form">
<input type="email" class="form-control" id="email" name="email" placeholder="Your Email" required>
<label for="email">Your Email</label>
</div>
</div>
<div class="col-md-6">
<div class="form">
<input type="tel" class="form-control" id="phone" name="phone" placeholder="Your Phone Number" required>
<label for="phone">Your Phone Number</label>
</div>
</div>
<div class="col-md-6">
<div class="form">
<input type="text" class="form-control" id="city" name="city" placeholder="Your City" required>
<label for="city">Your City</label>
</div>
</div>
<div class="col-12">
<div class="form">
<input type="text" class="form-control" id="subject" name="subject" placeholder="Subject" required>
<label for="subject">Subject</label>
</div>
</div>
<div class="col-12">
<div class="form">
<textarea class="form-control" placeholder="Leave a message here" id="message" name="message" style="height: 100px;" required></textarea>
<label for="message">Message</label>
</div>
</div>
<div class="col-12 d-flex justify-content-center">
<button type="submit" class="contact-btn w-100 py-3">Send Message</button>
</div>
</div>
</div>
</form>
</div>
</div>

<!-- Map Section -->
<div class="col-lg-6 wow fadeIn" data-wow-delay="0.5s">
<div class="map-container">
<iframe class="rounded w-100 h-100" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d224346.77249238306!2d77.06889927915427!3d28.527582456103037!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d1d4567aef7fd%3A0xddb0beddcd6d3c74!2sNew%20Delhi%2C%20Delhi%2C%20India!5e0!3m2!1sen!2sin!4v1603794290143!5m2!1sen!2sin" frameborder="0" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
</div>
</div>
</div>
<!-- Contact End -->


Expand Down Expand Up @@ -1125,4 +1091,4 @@ <h3 class="ml-40">Follow Us</h3>

</body>

</html>
</html>