forked from 07sumit1002/CabRental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serv.html
150 lines (141 loc) · 6.02 KB
/
serv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="img/logo1.png" type="image/png">
<title>CabRental Services</title>
<link rel="stylesheet" href="serv.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
/* Add some basic styling for smooth scrolling */
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<header>
<a href="index.html" class="logo"><img src="img/logo.png" alt=""></a>
<a href="index.html" 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>
<main>
<div id="city-transfers" class="citytransfer">
<div class="head1">
<h2>City Transfers</h2>
</div>
<p class="citypara">
Our city transfer services ensure convenient and reliable transportation to and from airports, hotels, and various locations within the city. We guarantee punctuality and comfort throughout your journey.
</p>
<ul class="key-features">
<li>Modern fleet of vehicles including sedans, SUVs, and luxury cars</li>
<li>Experienced and professional drivers</li>
<li>Flexible scheduling to suit your travel plans</li>
<li>Competitive pricing and transparent billing</li>
</ul>
<div class="card-footer">
<a href="#" class="cta-button">Book Now</a>
</div>
</div>
<div class="video">
<video autoplay muted loop id="background-video">
<source src="service.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
</div>
<div id="hourly-rentals" class="rentally">
<div class="head2">
<h2>Hourly Rentals</h2>
</div>
<p class="hour">
Whether you need transportation for a few hours or an entire day, our hourly rental service provides flexibility and peace of mind. Perfect for business meetings, sightseeing tours, or personal errands.
</p>
<ul class="key-features1">
<li>Choose from a variety of vehicles tailored to your needs</li>
<li>Customizable routes and stops according to your itinerary</li>
<li>Experienced drivers familiar with local routes and attractions</li>
<li>Affordable rates with no hidden fees</li>
</ul>
<div class="card-footer">
<a href="#" class="cta-button">Get a Quote</a>
</div>
</div>
<div id="special-occasions" class="specially">
<div class="occassion">
<h2>Special Occasions</h2>
</div>
<p class="key-features2">
Celebrate your special events in style with our tailored transportation solutions. Whether it's a wedding, anniversary, corporate event, or night out, we ensure a memorable and luxurious experience.
</p>
<ul class="key-features2">
<li>Premium selection of vehicles including limousines and executive vans</li>
<li>Personalized service to meet your specific event requirements</li>
<li>Professional chauffeurs dressed in attire appropriate for the occasion</li>
<li>On-time arrivals and impeccable service from start to finish</li>
</ul>
<div class="card-footer">
<a href="#" class="cta-button">Contact Us</a>
</div>
</div>
</main>
<footer>
<p>© 2024 CabRental. All rights reserved.</p>
<style>
/* Styling the footer */
footer {
background-color: #ee6d6d;
color: white;
text-align: center;
padding: 5px;
display: flex; /* Flexbox */
justify-content: center; /* Center horizontally */
align-items: center;
position: center;
bottom: 0;
width: 100%;
font-size: 14px;
height: 30px;
line-height: 30px;
transform: translateY(100%); /* Initially hidden */
transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth animation */
}
body {
margin: 0;
padding-bottom: 80px; /* Space for the footer */
}
</style>
<script src="script.js"></script>
<script>
let lastScrollTop = 0;
const footer = document.querySelector("footer");
window.addEventListener("scroll", function() {
let currentScroll = window.pageYOffset || document.documentElement.scrollTop;
if (currentScroll > lastScrollTop) {
// Scrolling down - footer should appear smoothly
footer.style.transform = "translateY(0)";
} else {
// Scrolling up - hide the footer smoothly
footer.style.transform = "translateY(100%)";
}
lastScrollTop = currentScroll <= 0 ? 0 : currentScroll;
});
</script>
</footer>
<div id="topbtn" class="topbtn">
<a class="gotopbtn" href="#"><i class="fa-solid fa-angles-up"></i></a>
</div>
</body>
</html>