forked from InnoWebLabs/Vehigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrentcar.html
More file actions
203 lines (175 loc) · 7.33 KB
/
Copy pathrentcar.html
File metadata and controls
203 lines (175 loc) · 7.33 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<title>Add Your Car for Rent - Vehigo</title>
<!-- favicon -->
<link rel="shortcut icon" href="./public/favicon.svg" type="image/svg+xml" />
<!-- custom css links -->
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/dark.css" />
<link rel="stylesheet" href="./styles/rentcar.css">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Open+Sans&display=swap"
rel="stylesheet"
/>
</head>
<body>
<header class="header" data-header>
<div class="container">
<div class="overlay" data-overlay></div>
<a href="index.html" class="logo">
<img src="./assets/images/vehigologo.png" alt="VehiGo logo" />
</a>
<nav class="navbar" data-navbar>
<ul class="navbar-list">
<li>
<a href="index.html" class="navbar-link" data-nav-link>Home</a>
</li>
<li>
<a href="featured-car.html" class="navbar-link" data-nav-link>Explore cars</a>
</li>
<li>
<a href="./src/pages/about.html" class="navbar-link" data-nav-link>About us</a>
</li>
<li>
<a href="blog.html" class="navbar-link" data-nav-link>Blog</a>
</li>
<li>
<a href="offline.html" class="navbar-link" data-nav-link>Offline Centers</a>
</li>
<li>
<a href="rentcar.html" class="navbar-link" data-nav-link>Rent Your Car</a>
</li>
<!-- 🌙 Dark Mode Toggle Button -->
<!-- Removed dark mode toggle button -->
</ul>
</nav>
<div class="header-actions">
<div class="header-contact">
<a href="tel:1800100100" class="contact-link">1800-100-100</a>
<span class="contact-time">Mon - Sat: 9:00 am - 6:00 pm</span>
</div>
<!-- Theme Toggle Switch with SVG icons -->
<label class="theme-switch" for="theme-toggle">
<input type="checkbox" id="theme-toggle" />
<span class="slider">
<span class="icon sun" aria-label="Light mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="orange" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</span>
<span class="icon moon" aria-label="Dark mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#f5f5f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z"/></svg>
</span>
</span>
</label>
<!-- home.html -->
<button id="logoutBtn" style="display: none">Logout</button>
<a href="#featured-car" class="btn" aria-labelledby="aria-label-txt">
<ion-icon name="car-outline"></ion-icon>
<span id="aria-label-txt">Explore cars</span>
</a>
<a href="./login.html" class="btn user-btn" aria-label="Profile">
<ion-icon name="person-outline"></ion-icon>
</a>
<button
class="nav-toggle-btn"
data-nav-toggle-btn
aria-label="Toggle Menu"
>
<span class="one"></span>
<span class="two"></span>
<span class="three"></span>
</button>
</div>
</div>
</header>
<main class="rentcar-main-content">
<div class="container">
<h1>🚗 Add Your Car for Rent</h1>
<hr>
<div id="message" class="message">
<h3><b>!! BEFORE ADDING CAR PLEASE SEE AVAIBILITY OF OUR OFFLINE CENTERS</b></h3>
<button class="btn" onclick="window.location.href='offline.html'">Check Availability</button>
</div>
<hr>
<form id="carForm">
<input type="text" id="carName" placeholder="Car Make & Model" required />
<input type="text" id="year" placeholder="Year of Registration" required />
<input type="text" id="price" placeholder="Rental Price per Day (₹)" required />
<input type="text" id="location" placeholder="Pickup Location" required />
<input type="url" id="imageUrl" placeholder="Image URL of Car" required />
<button type="submit">Add Car</button>
</form>
<hr>
<h2>Available Cars for Rent</h2>
<div id="carList" class="car-list"></div>
<hr>
<h2>BUY OR Sell </h2>
<p>Looking to buy or sell a car? Check out our dedicated pages:</p>
<p>Get great Deals lik never before only on Vehigo </p>
<div class="buy-sell">
<button class="btns" onclick="window.location.href='buy.html'">Buy a Car</button>
<button class="btns" onclick="window.location.href='sell.html'">Sell Your Car</button>
</div>
</div>
<a href="./rentcar.html" style="
position: fixed;
bottom: 30px;
right: 30px;
background-color: #007BFF;
color: white;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
z-index: 999;
transition: background-color 0.3s;
" onmouseover="this.style.backgroundColor='#0056b3'" onmouseout="this.style.backgroundColor='#007BFF'">
<ion-icon name="chevron-up-outline" style="font-size: 24px;">Up</ion-icon>
</a>
</main>
<style>
.rentcar-main-content {
padding-top: 120px; /* Add top padding to account for fixed navbar */
position: relative;
z-index: 1; /* Reduced z-index to allow navbar to be clickable */
}
/* Ensure navbar is accessible */
.header { z-index: 1000 !important; }
.navbar { z-index: 1001 !important; }
.overlay { z-index: 999 !important; }
.nav-toggle-btn { z-index: 1002 !important; }
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
.rentcar-main-content {
padding-top: 100px; /* Slightly less padding on mobile */
padding: 20px 15px;
}
}
</style>
<!-- JavaScript files for navbar functionality -->
<script src="./assets/js/script.js"></script>
<script src="./scripts/logout.js"></script>
<script src="./scripts/rentcar.js"></script>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
></script>
</body>
</html>