Skip to content
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
238 changes: 154 additions & 84 deletions buy.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,117 @@
padding: 40px 20px;
}

.buy-header {
text-align: center;
margin-bottom: 50px;
}

.buy-header h1 {
font-size: 3rem;
color: #1565c0;
margin-bottom: 10px;
}

.buy-header p {
font-size: 1.2rem;
color: #666;
}

body.dark-mode .buy-header h1 {
color: #4299e1;
}

body.dark-mode .buy-header p {
color: #e2e8f0;
}
.header {
position: fixed;
top: 0; left: 0; right: 0;
background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .9));
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--vehigo-border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
box-shadow: var(--shadow-1);
z-index: 1000;
transition: all 0.3s ease;
}

body.dark-mode .header {
background: linear-gradient(180deg, rgba(16, 25, 39, .95), rgba(16, 25, 39, .9));
}

.logo img {
height: 45px;
transition: transform 0.3s ease;
}

.logo:hover img {
transform: scale(1.05);
}

.dark-mode .logo img {
filter: brightness(0) invert(1);
opacity: 1;
transition: opacity 0.3s ease;
}

.dark-mode .logo:hover img {
opacity: 0.8;
}

.navbar .navbar-list {
display: flex;
gap: 2rem;
list-style: none;
margin: 0; padding: 0;
}

.navbar-link {
text-decoration: none;
font-weight: 600;
color: var(--vehigo-text);
padding: 8px 16px;
border-radius: var(--radius-md);
transition: all 0.3s ease;
position: relative;
}

.navbar-link:hover {
color: var(--vehigo-primary);
background: rgba(37, 99, 235, .08);
}

.navbar-link.active {
color: var(--vehigo-primary);
background: linear-gradient(90deg, rgba(37, 99, 235, .12), rgba(78, 127, 180, .12));
}

/* ---------- THEME SWITCH ---------- */
.mode-switch {
display: flex;
align-items: center;
cursor: pointer;
margin-left: 1rem;
}

.mode-switch input { display: none; }

.slider {
display: flex;
align-items: center;
gap: 0.5rem;
}

.btn-outline-light {
width: 100px;
height: 40px;
border-radius: var(--radius-md);
border: 1px solid var(--vehigo-border);
background: var(--vehigo-card);
color: var(--vehigo-text);
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
box-shadow: var(--shadow-1);
}

.btn-outline-light:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-2);
background: linear-gradient(90deg, var(--vehigo-primary), var(--vehigo-primary-2));
color: white;
}

body.dark-mode .btn-outline-light {
background: var(--vehigo-card);
color: var(--vehigo-text);
border-color: var(--vehigo-border);
}

.filters-section {
background: rgba(255, 255, 255, 0.95);
Expand Down Expand Up @@ -619,67 +707,30 @@

<body>
<!-- Header -->
<header class="header" data-header>
<div class="container">
<div class="overlay" data-overlay></div>
<a href="/src/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="/src/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="#" 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>
</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>
<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>
<a href="featured-car.html" 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="./src/pages/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>
<header class="header">
<a href="/src/index.html" class="logo">
<img src="./assets/images/vehigologo.png" alt="VehiGo logo"/>
</a>
<nav class="navbar">
<ul class="navbar-list">
<li><a href="/src/index.html" class="navbar-link">Home</a></li>
<li><a href="featured-car.html" class="navbar-link">Explore cars</a></li>
<li><a href="./src/pages/about.html" class="navbar-link">About</a></li>
<li><a href="blog.html" class="navbar-link">Blog</a></li>
<li><a href="offline.html" class="navbar-link">Offline Centers</a></li>
<li><a href="rentcar.html" class="navbar-link">Rent Your Car</a></li>
</ul>
</nav>

<!-- Theme Toggle -->
<label class="theme-switch">
<input type="checkbox" id="theme-toggle"/>
<span class="slider">
<button class="btn-outline-light" id="themebtn"><i class="fa-solid fa-gear"></i> Dark</button>
</span>
</label>
<a href="./src/pages/login.html" class="btn-outline-light" id="loginBtn" style="margin-left: 0.75rem;"><i class="fa-regular fa-user"></i> Login</a>
</header>

<div class="buy-container">
<div class="buy-header">
Expand Down Expand Up @@ -1047,6 +1098,25 @@ <h3 id="chatTitle">Chat with Seller</h3>
}
}
</script>
<!-- THEME SCRIPT -->
<script>
const themebtn = document.getElementById('themebtn');
if(localStorage.getItem("mode") === "dark"){
document.body.classList.add("dark-mode");
themebtn.innerHTML = '<i class="fa-solid fa-sun"></i>';
}
themebtn.addEventListener("click", () => {
if(document.body.classList.contains("dark-mode")){
document.body.classList.remove('dark-mode');
localStorage.setItem("mode", "light");
themebtn.innerHTML = '<i class="fa-solid fa-moon"></i> ';
} else {
document.body.classList.add('dark-mode');
localStorage.setItem("mode", "dark");
themebtn.innerHTML = '<i class="fa-solid fa-sun"></i>';
}
});
</script>
<script src="./assets/js/script.js"></script>
</body>

Expand Down
55 changes: 55 additions & 0 deletions rentcar.html
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,61 @@
font-size: 16px;
}
}

/* Dark Theme */
body.dark-mode,
body.dark-theme {
background: linear-gradient(135deg, #1a1a2e, #16213e);
color: #f1f5f9;
}

body.dark-mode .vehicle-form-section,
body.dark-theme .vehicle-form-section {
background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .vehicle-form-card,
body.dark-theme .vehicle-form-card {
background-color: #1e293b;
color: #f1f5f9;
border: 1px solid #334155;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .vehicle-form-title,
body.dark-theme .vehicle-form-title {
color: #f1f5f9;
}

body.dark-mode .vehicle-input-group label,
body.dark-theme .vehicle-input-group label {
color: #e2e8f0;
}

body.dark-mode .vehicle-input-group input,
body.dark-theme .vehicle-input-group input {
background-color: #1e293b;
border: 1px solid #475569;
color: #f1f5f9;
}

body.dark-mode .vehicle-input-group input:focus,
body.dark-theme .vehicle-input-group input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

body.dark-mode .vehicle-submit-btn,
body.dark-theme .vehicle-submit-btn {
background-color: #2563eb;
color: #ffffff;
}

body.dark-mode .vehicle-submit-btn:hover,
body.dark-theme .vehicle-submit-btn:hover {
background-color: #1d4ed8;
}


@media (max-width: 480px) {
h1 {
Expand Down