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 Navbar to be consistent throughout pages #415

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
181 changes: 81 additions & 100 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,8 @@
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css"
/>
<nav class="navbar">
<div class="logo">
<img src="img/cabz.png.png" alt="Logo" class="navbar-logo" />
</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#company-overview">Company Overview</a></li>
<li><a href="#mission-vision">Mission & Vision</a></li>
<li><a href="#values-principles">Values & Principles</a></li>
</ul>
</nav>

<link rel="stylesheet" href="style.css" />

<style>
body {
font-family: "Poppins", sans-serif;
Expand All @@ -30,57 +20,6 @@
line-height: 1.6;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
padding: 20px;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar ul li a:hover {
background-color: #8f6883;
transform: scale(1.1);
}

.navbar ul {
display: flex;
justify-content: space-around; /* Spacing between links */
list-style: none;
padding: 10px; /* Padding for the group of links */
background-color: #e6e4e4; /* Background color for the navbar */
}

.navbar ul li {
margin: 0 10px; /* Spacing between individual links */
}

.navbar ul li a {
color: #0c0101;
background-color: #e6e4e4;
text-decoration: none;
border-radius: 5px;
padding: 10px; /* Padding around each link */
transition: background-color 0.3s, transform 0.3s;
}
.navbar ul li a:hover {
background-color: #f7f5f4;
transform: scale(1.1);
border-bottom: 3px solid black; /* Black underline on hover */
}

.navbar ul li a:active {
border-bottom: 3px solid black; /* Black underline when clicked */
}

.navbar ul li a:focus {
border-bottom: 3px solid black; /* Black underline on focus */
}

.hero {
height: 60vh;
background: url("https://autotrans.com/wp-content/uploads/2021/04/AdobeStock_95320493-2048x1367.jpeg")
Expand Down Expand Up @@ -182,39 +121,56 @@
border-radius: 5px;
border-top: 2px solid #ddd; /* Line between sections */
}

#company-overview {
background-color: #557d80;
}

#mission-vision {
background-color: #d4c6c6;
}
#company-overview p,
#mission-vision p {
font-weight: bold;
color: #080101;
}
font-weight: bold;
color: #080101;
}

.about-us-img {
width: 1200px; /* Adjust size as needed */
height: 400px;
border-radius: 10px; /* Optional: Adds rounded corners */
position: absolute; /* Positioning the image inside hero */
bottom: 10px; /* Adjusts position within the hero section */
box-shadow: 0 4px 10px rgba(12, 10, 10, 0.2); /* Adds a shadow for better visibility */
right: 80px;
z-index: -1; /* Ensures it stays above the overlay */
}
.about-us-img {
width: 1200px; /* Adjust size as needed */
height: 400px;
border-radius: 10px; /* Optional: Adds rounded corners */
position: absolute; /* Positioning the image inside hero */
bottom: 10px; /* Adjusts position within the hero section */
box-shadow: 0 4px 10px rgba(12, 10, 10, 0.2); /* Adds a shadow for better visibility */
right: 80px;
z-index: -1; /* Ensures it stays above the overlay */
}
</style>
</head>
<body>

<header>
<a href="#" class="logo"><img src="img/logo.png" alt="" /></a>
<a href="#" class="CabRental_logo"
><img src="img/cabz.png.png" alt=""
/></a>
<div class="bx bx-menu" id="menu-icon"></div>
<ul class="navbar">
<li><a href="index.html">Home</a></li>
<li><a href="ride.html">Ride</a></li>
<li><a href="serv.html">Services</a></li>
<li><a href="about.html">About</a></li>
<li><a href="review.html">Reviews</a></li>
<li><a href="contactus.html">Contact</a></li>
</ul>
<div class="header-btn">
<a href="login.html" class="sign-up">Login</a>
</div>
<div class="theme-switch" id="theme-switch"></div>
</header>

<!-- Hero Section -->
<section class="hero">
<h1>About Us</h1>


</section>

<div class="container">
Expand Down Expand Up @@ -285,25 +241,50 @@ <h2>Values and Principles</h2>
</section>
</div>
<!-- Footer -->
<footer style="background-color: #333; color: #fff; padding: 20px 0;">
<div class="container">
<div style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
<div>
<h3 style="margin: 0;">CabRental</h3>
<p>&copy; 2024 CabRental. All rights reserved.</p>
</div>
<ul style="list-style: none; display: flex; padding: 0; margin: 0;">
<li style="margin-right: 15px;"><a href="#" style="color: #fff; text-decoration: none;">Privacy Policy</a></li>
<li style="margin-right: 15px;"><a href="#" style="color: #fff; text-decoration: none;">Terms of Service</a></li>
<li style="margin-right: 15px;"><a href="#" style="color: #fff; text-decoration: none;">Contact Us</a></li>
</ul>
<div>
<a href="#" style="color: #fff; margin-right: 10px;"><i class="bx bxl-facebook"></i></a>
<a href="#" style="color: #fff; margin-right: 10px;"><i class="bx bxl-twitter"></i></a>
<a href="#" style="color: #fff; margin-right: 10px;"><i class="bx bxl-instagram"></i></a>
<footer style="background-color: #333; color: #fff; padding: 20px 0">
<div class="container">
<div
style="
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
"
>
<div>
<h3 style="margin: 0">CabRental</h3>
<p>&copy; 2024 CabRental. All rights reserved.</p>
</div>
<ul style="list-style: none; display: flex; padding: 0; margin: 0">
<li style="margin-right: 15px">
<a href="#" style="color: #fff; text-decoration: none"
>Privacy Policy</a
>
</li>
<li style="margin-right: 15px">
<a href="#" style="color: #fff; text-decoration: none"
>Terms of Service</a
>
</li>
<li style="margin-right: 15px">
<a href="#" style="color: #fff; text-decoration: none"
>Contact Us</a
>
</li>
</ul>
<div>
<a href="#" style="color: #fff; margin-right: 10px"
><i class="bx bxl-facebook"></i
></a>
<a href="#" style="color: #fff; margin-right: 10px"
><i class="bx bxl-twitter"></i
></a>
<a href="#" style="color: #fff; margin-right: 10px"
><i class="bx bxl-instagram"></i
></a>
</div>
</div>
</div>
</div>
</div>
</footer>
</footer>
</body>
</html>
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
crossorigin="anonymous"></script>
<style>
/* Base styles */
header {
/* header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #fff;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}
} */

.logo img {
height: 50px;
Expand Down Expand Up @@ -474,7 +474,7 @@

<body>
<!-- Header -->
<header>
<header >
<a href="#" class="logo"><img src="img/logo.png" alt=""></a>
<a href="#" class="CabRental_logo"><img src="img/cabz.png.png" alt=""></a>
<div class="bx bx-menu" id="menu-icon"></div>
Expand Down
Loading
Loading