trytry1 / index.html
RydifyR's picture
undefined - Initial Deployment
447477c verified
Raw History Blame Contribute Delete
63.7 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Rydifyr D O M - Car Rental Platform</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); body { font-family: 'Poppins', sans-serif; } .gradient-bg { background: linear-gradient(135deg, #000000 0%, #333333 100%); } .card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } .notification-badge { position: absolute; top: -5px; right: -5px; } .sidebar { transition: all 0.3s ease; } @media (max-width: 768px) { .sidebar { position: fixed; left: -100%; top: 0; z-index: 50; height: 100vh; width: 70%; } .sidebar.active { left: 0; } .overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 40; display: none; } .overlay.active { display: block; } } </style> </head> <body class="bg-gray-100"> <!-- Landing Page --> <div id="landing-page" class="min-h-screen gradient-bg text-white"> <!-- Navigation --> <nav class="bg-black bg-opacity-80 py-4 px-6 flex justify-between items-center sticky top-0 z-50"> <div class="flex items-center"> <img src="https://via.placeholder.com/50" alt="Rydifyr D O M Logo" class="h-10 mr-3"> <h1 class="text-2xl font-bold">Rydifyr D O M</h1> </div> <div class="hidden md:flex space-x-6"> <a href="#features" class="hover:text-gray-300">Features</a> <a href="#how-it-works" class="hover:text-gray-300">How It Works</a> <a href="#faq" class="hover:text-gray-300">FAQ</a> <a href="#contact" class="hover:text-gray-300">Contact</a> </div> <div class="flex items-center space-x-4"> <button onclick="showLogin('user')" class="bg-white text-black px-4 py-2 rounded-lg font-medium hover:bg-gray-200 transition">User Login</button> <button onclick="showLogin('admin')" class="bg-gray-700 text-white px-4 py-2 rounded-lg font-medium hover:bg-gray-600 transition">Admin Login</button> <button id="mobile-menu-button" class="md:hidden text-white"> <i class="fas fa-bars text-2xl"></i> </button> </div> </nav> <!-- Mobile Menu --> <div id="mobile-menu" class="md:hidden fixed top-0 left-0 h-full w-0 overflow-hidden bg-black z-50 transition-all duration-300"> <div class="flex justify-end p-4"> <button id="close-mobile-menu" class="text-white text-2xl">&times;</button> </div> <div class="flex flex-col items-center space-y-6 mt-10"> <a href="#features" class="text-white text-xl">Features</a> <a href="#how-it-works" class="text-white text-xl">How It Works</a> <a href="#faq" class="text-white text-xl">FAQ</a> <a href="#contact" class="text-white text-xl">Contact</a> </div> </div> <!-- Hero Section --> <div class="container mx-auto px-6 py-20 flex flex-col md:flex-row items-center"> <div class="md:w-1/2 mb-10 md:mb-0"> <h1 class="text-4xl md:text-6xl font-bold mb-6">Rent or Share Cars with Ease</h1> <p class="text-xl mb-8 text-gray-300">Join Rydifyr D O M to access a seamless car rental experience whether you're a driver or car owner.</p> <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> <button onclick="showRegistration('driver')" class="bg-white text-black px-6 py-3 rounded-lg font-medium hover:bg-gray-200 transition">Register as Driver</button> <button onclick="showRegistration('owner')" class="bg-gray-700 text-white px-6 py-3 rounded-lg font-medium hover:bg-gray-600 transition">Register as Owner</button> </div> </div> <div class="md:w-1/2 flex justify-center"> <img src="https://via.placeholder.com/500x300" alt="Car Rental Illustration" class="rounded-lg shadow-2xl"> </div> </div> <!-- Features Section --> <div id="features" class="py-16 bg-black bg-opacity-50"> <div class="container mx-auto px-6"> <h2 class="text-3xl font-bold text-center mb-12">Key Features</h2> <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <div class="bg-gray-800 p-6 rounded-lg shadow-lg"> <div class="text-4xl mb-4 text-white"> <i class="fas fa-car"></i> </div> <h3 class="text-xl font-bold mb-2">Easy Car Rental</h3> <p class="text-gray-300">Find and rent cars from verified owners with transparent pricing and ratings.</p> </div> <div class="bg-gray-800 p-6 rounded-lg shadow-lg"> <div class="text-4xl mb-4 text-white"> <i class="fas fa-money-bill-wave"></i> </div> <h3 class="text-xl font-bold mb-2">Earn Money</h3> <p class="text-gray-300">List your car and earn money when it's not in use with our secure platform.</p> </div> <div class="bg-gray-800 p-6 rounded-lg shadow-lg"> <div class="text-4xl mb-4 text-white"> <i class="fas fa-shield-alt"></i> </div> <h3 class="text-xl font-bold mb-2">Verified Users</h3> <p class="text-gray-300">All drivers and car owners go through a strict verification process for safety.</p> </div> </div> </div> </div> </div> <!-- Login Modals --> <div id="user-login-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> <div class="bg-white rounded-lg p-8 w-full max-w-md"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">User Login</h2> <button onclick="hideLogin('user')" class="text-gray-500 hover:text-gray-700">&times;</button> </div> <form> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="user-email">Email</label> <input type="email" id="user-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2" for="user-password">Password</label> <input type="password" id="user-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <button type="button" onclick="loginUser()" class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Login</button> <p class="text-center mt-4 text-gray-600">Don't have an account? <a href="#" onclick="showRegistration('driver')" class="text-black font-medium">Register here</a></p> </form> </div> </div> <div id="admin-login-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> <div class="bg-white rounded-lg p-8 w-full max-w-md"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Admin Login</h2> <button onclick="hideLogin('admin')" class="text-gray-500 hover:text-gray-700">&times;</button> </div> <form> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="admin-email">Email</label> <input type="email" id="admin-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2" for="admin-password">Password</label> <input type="password" id="admin-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <button type="button" onclick="loginAdmin()" class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Login</button> </form> </div> </div> <!-- Registration Modals --> <div id="driver-registration-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden overflow-y-auto"> <div class="bg-white rounded-lg p-8 w-full max-w-2xl my-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Driver Registration</h2> <button onclick="hideRegistration('driver')" class="text-gray-500 hover:text-gray-700">&times;</button> </div> <form> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="driver-first-name">First Name</label> <input type="text" id="driver-first-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="driver-last-name">Last Name</label> <input type="text" id="driver-last-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="driver-email">Email</label> <input type="email" id="driver-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="driver-phone">Phone Number</label> <input type="tel" id="driver-phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="driver-id">ID Number</label> <input type="text" id="driver-id" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="driver-address">Address</label> <input type="text" id="driver-address" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2">Upload Documents</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <p class="text-gray-500 mb-2">Drag & drop your documents here or click to browse</p> <button type="button" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">Select Files</button> </div> <p class="text-sm text-gray-500 mt-2">Upload your driver's license and ID (PDF, JPG, or PNG)</p> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2">Proof of Payment (R50)</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <p class="text-gray-500 mb-2">Upload proof of payment for registration fee</p> <button type="button" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">Select File</button> </div> </div> <div class="mb-6"> <div class="flex items-center"> <input type="checkbox" id="driver-terms" class="mr-2"> <label for="driver-terms" class="text-gray-700">I agree to the <a href="#" class="text-black font-medium">Terms and Conditions</a></label> </div> </div> <button type="button" onclick="registerDriver()" class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Register</button> <p class="text-center mt-4 text-gray-600">Already have an account? <a href="#" onclick="showLogin('user')" class="text-black font-medium">Login here</a></p> </form> </div> </div> <div id="owner-registration-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden overflow-y-auto"> <div class="bg-white rounded-lg p-8 w-full max-w-2xl my-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Car Owner Registration</h2> <button onclick="hideRegistration('owner')" class="text-gray-500 hover:text-gray-700">&times;</button> </div> <form> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="owner-first-name">First Name</label> <input type="text" id="owner-first-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="owner-last-name">Last Name</label> <input type="text" id="owner-last-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="owner-email">Email</label> <input type="email" id="owner-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="owner-phone">Phone Number</label> <input type="tel" id="owner-phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="owner-id">ID Number</label> <input type="text" id="owner-id" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="owner-address">Address</label> <input type="text" id="owner-address" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <h3 class="text-xl font-bold mb-4 mt-6">Car Information</h3> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="car-make">Make</label> <input type="text" id="car-make" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="car-model">Model</label> <input type="text" id="car-model" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4"> <div> <label class="block text-gray-700 mb-2" for="car-year">Year</label> <input type="number" id="car-year" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="car-color">Color</label> <input type="text" id="car-color" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div> <label class="block text-gray-700 mb-2" for="car-plate">License Plate</label> <input type="text" id="car-plate" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="car-description">Description</label> <textarea id="car-description" rows="3" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"></textarea> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2">Upload Car Documents</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <p class="text-gray-500 mb-2">Drag & drop your car documents here or click to browse</p> <button type="button" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">Select Files</button> </div> <p class="text-sm text-gray-500 mt-2">Upload registration, insurance, and any other relevant documents (PDF, JPG, or PNG)</p> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2">Proof of Payment (R100)</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <p class="text-gray-500 mb-2">Upload proof of payment for registration fee</p> <button type="button" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">Select File</button> </div> </div> <div class="mb-6"> <div class="flex items-center"> <input type="checkbox" id="owner-terms" class="mr-2"> <label for="owner-terms" class="text-gray-700">I agree to the <a href="#" class="text-black font-medium">Terms and Conditions</a></label> </div> </div> <button type="button" onclick="registerOwner()" class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Register</button> <p class="text-center mt-4 text-gray-600">Already have an account? <a href="#" onclick="showLogin('user')" class="text-black font-medium">Login here</a></p> </form> </div> </div> <!-- Driver Dashboard (Hidden by default) --> <div id="driver-dashboard" class="hidden min-h-screen bg-gray-100"> <!-- Sidebar --> <div class="sidebar bg-black text-white w-64 fixed h-full overflow-auto"> <div class="p-4 flex items-center space-x-3"> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full"> <div> <p class="font-medium">John Driver</p> <p class="text-xs text-gray-400">Driver</p> </div> </div> <div class="p-4"> <div class="bg-gray-800 rounded-lg p-3 mb-4"> <div class="flex justify-between items-center"> <span class="text-sm">Account Status</span> <span class="bg-yellow-500 text-black text-xs px-2 py-1 rounded-full">Pending Approval</span> </div> </div> </div> <nav class="mt-6"> <a href="#" class="block py-2 px-4 bg-gray-800 text-white">Home</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Search Cars</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">My Bookings</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Profile</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">FAQ</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Contact Us</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800 mt-4 border-t border-gray-700">Logout</a> </nav> </div> <!-- Main Content --> <div class="ml-0 md:ml-64"> <!-- Top Navigation --> <header class="bg-white shadow-sm py-4 px-6 flex justify-between items-center sticky top-0 z-10"> <div class="flex items-center"> <button id="sidebar-toggle" class="mr-4 md:hidden"> <i class="fas fa-bars text-xl"></i> </button> <h1 class="text-xl font-bold">Available Cars</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <button class="text-gray-700 hover:text-black"> <i class="fas fa-bell text-xl"></i> <span class="notification-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span> </button> </div> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full cursor-pointer"> </div> </header> <!-- Search Bar --> <div class="p-6"> <div class="bg-white rounded-lg shadow p-4"> <div class="flex flex-col md:flex-row md:items-center md:space-x-4"> <div class="flex-1 mb-4 md:mb-0"> <input type="text" placeholder="Search by make, model or location" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> <select class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> <option>Any Make</option> <option>Toyota</option> <option>Honda</option> <option>Ford</option> </select> <select class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> <option>Any Price</option> <option>R100-R200</option> <option>R200-R300</option> <option>R300+</option> </select> <select class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> <option>Any Type</option> <option>Sedan</option> <option>SUV</option> <option>Hatchback</option> </select> <button class="bg-black text-white px-4 py-2 rounded-lg hover:bg-gray-800 transition">Search</button> </div> </div> </div> </div> <!-- Cars List --> <div class="p-6"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Car Card 1 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Car" class="w-full h-48 object-cover"> <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white px-2 py-1 rounded text-sm">R250/day</div> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Toyota Corolla</h3> <p class="text-gray-600">2020 | Automatic | Sedan</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.8</span> </div> </div> <div class="mt-4 flex items-center"> <img src="https://via.placeholder.com/30" alt="Owner" class="rounded-full mr-2"> <span class="text-sm">James K.</span> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Well-maintained Toyota Corolla with low mileage. Perfect for city driving.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Hire Now</button> </div> </div> </div> <!-- Car Card 2 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Car" class="w-full h-48 object-cover"> <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white px-2 py-1 rounded text-sm">R300/day</div> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Honda CR-V</h3> <p class="text-gray-600">2019 | Automatic | SUV</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.9</span> </div> </div> <div class="mt-4 flex items-center"> <img src="https://via.placeholder.com/30" alt="Owner" class="rounded-full mr-2"> <span class="text-sm">Sarah M.</span> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Spacious and comfortable SUV with all-wheel drive. Great for family trips.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Hire Now</button> </div> </div> </div> <!-- Car Card 3 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Car" class="w-full h-48 object-cover"> <div class="absolute top-2 right-2 bg-black bg-opacity-70 text-white px-2 py-1 rounded text-sm">R200/day</div> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Ford Fiesta</h3> <p class="text-gray-600">2018 | Manual | Hatchback</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.5</span> </div> </div> <div class="mt-4 flex items-center"> <img src="https://via.placeholder.com/30" alt="Owner" class="rounded-full mr-2"> <span class="text-sm">David L.</span> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Fuel-efficient and fun to drive. Perfect for city commuting.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">Hire Now</button> </div> </div> </div> </div> </div> </div> </div> <!-- Car Owner Dashboard (Hidden by default) --> <div id="owner-dashboard" class="hidden min-h-screen bg-gray-100"> <!-- Sidebar --> <div class="sidebar bg-black text-white w-64 fixed h-full overflow-auto"> <div class="p-4 flex items-center space-x-3"> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full"> <div> <p class="font-medium">Sarah Owner</p> <p class="text-xs text-gray-400">Car Owner</p> </div> </div> <div class="p-4"> <div class="bg-gray-800 rounded-lg p-3 mb-4"> <div class="flex justify-between items-center"> <span class="text-sm">Account Status</span> <span class="bg-green-500 text-black text-xs px-2 py-1 rounded-full">Approved</span> </div> </div> </div> <nav class="mt-6"> <a href="#" class="block py-2 px-4 bg-gray-800 text-white">Home</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">My Listings</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Bookings</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Profile</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">FAQ</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Contact Us</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800 mt-4 border-t border-gray-700">Logout</a> </nav> </div> <!-- Main Content --> <div class="ml-0 md:ml-64"> <!-- Top Navigation --> <header class="bg-white shadow-sm py-4 px-6 flex justify-between items-center sticky top-0 z-10"> <div class="flex items-center"> <button id="sidebar-toggle-owner" class="mr-4 md:hidden"> <i class="fas fa-bars text-xl"></i> </button> <h1 class="text-xl font-bold">Available Drivers</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <button class="text-gray-700 hover:text-black"> <i class="fas fa-bell text-xl"></i> <span class="notification-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">2</span> </button> </div> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full cursor-pointer"> </div> </header> <!-- Search Bar --> <div class="p-6"> <div class="bg-white rounded-lg shadow p-4"> <div class="flex flex-col md:flex-row md:items-center md:space-x-4"> <div class="flex-1 mb-4 md:mb-0"> <input type="text" placeholder="Search drivers by name or location" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="grid grid-cols-2 md:grid-cols-3 gap-4"> <select class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> <option>Any Rating</option> <option>5 Stars</option> <option>4+ Stars</option> <option>3+ Stars</option> </select> <select class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> <option>Any License</option> <option>Code B</option> <option>Code C</option> </select> <button class="bg-black text-white px-4 py-2 rounded-lg hover:bg-gray-800 transition">Search</button> </div> </div> </div> </div> <!-- Drivers List --> <div class="p-6"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Driver Card 1 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Driver" class="w-full h-48 object-cover"> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">John Driver</h3> <p class="text-gray-600">Code B | 5 years experience</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.8</span> </div> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Responsible driver with clean record. Available for long-term rentals.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">View Profile</button> </div> </div> </div> <!-- Driver Card 2 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Driver" class="w-full h-48 object-cover"> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Michael S.</h3> <p class="text-gray-600">Code C | 10 years experience</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.9</span> </div> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Professional driver with experience in luxury vehicles and long-distance trips.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">View Profile</button> </div> </div> </div> <!-- Driver Card 3 --> <div class="bg-white rounded-lg shadow overflow-hidden card-hover transition duration-300"> <div class="relative"> <img src="https://via.placeholder.com/400x250" alt="Driver" class="w-full h-48 object-cover"> </div> <div class="p-4"> <div class="flex justify-between items-start"> <div> <h3 class="font-bold text-lg">Lisa T.</h3> <p class="text-gray-600">Code B | 3 years experience</p> </div> <div class="flex items-center"> <i class="fas fa-star text-yellow-400"></i> <span class="ml-1">4.7</span> </div> </div> <div class="mt-4"> <p class="text-gray-700 text-sm mb-4">Careful and punctual driver. Specializes in city driving and short trips.</p> <button class="w-full bg-black text-white py-2 rounded-lg hover:bg-gray-800 transition">View Profile</button> </div> </div> </div> </div> </div> </div> </div> <!-- Admin Dashboard (Hidden by default) --> <div id="admin-dashboard" class="hidden min-h-screen bg-gray-100"> <!-- Sidebar --> <div class="sidebar bg-black text-white w-64 fixed h-full overflow-auto"> <div class="p-4 flex items-center space-x-3"> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full"> <div> <p class="font-medium">Admin User</p> <p class="text-xs text-gray-400">Administrator</p> </div> </div> <nav class="mt-6"> <a href="#" class="block py-2 px-4 bg-gray-800 text-white">Dashboard</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Pending Approvals</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Users</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Listings</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Messages</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800">Reports</a> <a href="#" class="block py-2 px-4 hover:bg-gray-800 mt-4 border-t border-gray-700">Logout</a> </nav> </div> <!-- Main Content --> <div class="ml-0 md:ml-64"> <!-- Top Navigation --> <header class="bg-white shadow-sm py-4 px-6 flex justify-between items-center sticky top-0 z-10"> <div class="flex items-center"> <button id="sidebar-toggle-admin" class="mr-4 md:hidden"> <i class="fas fa-bars text-xl"></i> </button> <h1 class="text-xl font-bold">Admin Dashboard</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <button class="text-gray-700 hover:text-black"> <i class="fas fa-bell text-xl"></i> <span class="notification-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">5</span> </button> </div> <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full cursor-pointer"> </div> </header> <!-- Stats --> <div class="p-6"> <div class="grid grid-cols-1 md:grid-cols-4 gap-6"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Pending Approvals</p> <h3 class="text-2xl font-bold">12</h3> </div> <div class="bg-yellow-100 text-yellow-800 p-3 rounded-full"> <i class="fas fa-clock text-xl"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Total Drivers</p> <h3 class="text-2xl font-bold">85</h3> </div> <div class="bg-blue-100 text-blue-800 p-3 rounded-full"> <i class="fas fa-user text-xl"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Total Owners</p> <h3 class="text-2xl font-bold">42</h3> </div> <div class="bg-green-100 text-green-800 p-3 rounded-full"> <i class="fas fa-car text-xl"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-gray-500">Active Bookings</p> <h3 class="text-2xl font-bold">27</h3> </div> <div class="bg-purple-100 text-purple-800 p-3 rounded-full"> <i class="fas fa-calendar-check text-xl"></i> </div> </div> </div> </div> </div> <!-- Pending Approvals --> <div class="p-6"> <div class="bg-white rounded-lg shadow overflow-hidden"> <div class="p-4 border-b"> <h2 class="text-xl font-bold">Pending Approvals</h2> </div> <div class="overflow-x-auto"> <table class="w-full"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Documents</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Payment</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">John Smith</div> <div class="text-sm text-gray-500">Driver</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Driver</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td> <td class="px-6 py-4 whitespace-nowrap"> <button class="text-blue-600 hover:text-blue-900 text-sm font-medium">View Documents</button> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Verified</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-green-600 hover:text-green-900 mr-3">Approve</button> <button class="text-red-600 hover:text-red-900">Reject</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Sarah Johnson</div> <div class="text-sm text-gray-500">Car Owner</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Owner</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td> <td class="px-6 py-4 whitespace-nowrap"> <button class="text-blue-600 hover:text-blue-900 text-sm font-medium">View Documents</button> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Verified</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-green-600 hover:text-green-900 mr-3">Approve</button> <button class="text-red-600 hover:text-red-900">Reject</button> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <!-- FAQ Section --> <div id="faq-section" class="hidden min-h-screen bg-gray-100 p-6"> <div class="max-w-4xl mx-auto"> <h1 class="text-3xl font-bold mb-8">Frequently Asked Questions</h1> <div class="mb-8"> <h2 class="text-xl font-bold mb-4">For Drivers</h2> <div class="space-y-4"> <div class="bg-white rounded-lg shadow p-6"> <h3 class="font-bold mb-2">How do I register as a driver?</h3> <p class="text-gray-700">To register as a driver, click on the "Register as Driver" button on the homepage, fill in your personal details, upload required documents, and pay the R50 registration fee. Your account will be activated after admin approval.</p> </div> <div class="bg-white rounded-lg shadow p-6"> <h3 class="font-bold mb-2">What documents do I need to provide?</h3> <p class="text-gray-700">You need to provide a copy of your valid driver's license, ID document, and proof of residence. All documents must be clear and readable.</p> </div> </div> </div> <div class="mb-8"> <h2 class="text-xl font-bold mb-4">For Car Owners</h2> <div class="space-y-4"> <div class="bg-white rounded-lg shadow p-6"> <h3 class="font-bold mb-2">How do I list my car for rental?</h3> <p class="text-gray-700">Register as a car owner, provide your car details including make, model, year, and upload clear photos. You'll also need to provide vehicle registration and insurance documents. The registration fee is R100.</p> </div> <div class="bg-white rounded-lg shadow p-6"> <h3 class="font-bold mb-2">How are payments processed?</h3> <p class="text-gray-700">Payments from drivers are processed through our secure platform. You'll receive payment within 3 business days after the rental period ends, minus our service fee.</p> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <h2 class="text-xl font-bold mb-4">Still have questions?</h2> <p class="mb-4">If you can't find the answer to your question, please contact our support team.</p> <button onclick="showContact()" class="bg-black text-white px-4 py-2 rounded-lg hover:bg-gray-800 transition">Contact Support</button> </div> </div> </div> <!-- Contact Section --> <div id="contact-section" class="hidden min-h-screen bg-gray-100 p-6"> <div class="max-w-4xl mx-auto"> <h1 class="text-3xl font-bold mb-8">Contact Us</h1> <div class="bg-white rounded-lg shadow p-6 mb-8"> <h2 class="text-xl font-bold mb-4">Need help or have questions?</h2> <p class="mb-6">Our support team is here to assist you. Choose your preferred contact method below.</p> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> <div class="border rounded-lg p-4 text-center"> <div class="text-3xl mb-3 text-blue-600"> <i class="fas fa-envelope"></i> </div> <h3 class="font-bold mb-2">Email Us</h3> <p class="text-gray-700 mb-3">For general inquiries</p> <a href="mailto:support@rydifyrdom.com" class="text-blue-600 font-medium">support@rydifyrdom.com</a> </div> <div class="border rounded-lg p-4 text-center"> <div class="text-3xl mb-3 text-green-600"> <i class="fas fa-phone"></i> </div> <h3 class="font-bold mb-2">Call Us</h3> <p class="text-gray-700 mb-3">Available 9am-5pm weekdays</p> <a href="tel:+27696012729" class="text-green-600 font-medium">+27 69 601 2729</a> </div> <div class="border rounded-lg p-4 text-center"> <div class="text-3xl mb-3 text-purple-600"> <i class="fab fa-whatsapp"></i> </div> <h3 class="font-bold mb-2">WhatsApp</h3> <p class="text-gray-700 mb-3">Quick chat support</p> <a href="https://wa.me/27696012729" class="text-purple-600 font-medium">+27 69 601 2729</a> </div> </div> <h3 class="font-bold mb-4">Or send us a message directly:</h3> <form> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="contact-name">Your Name</label> <input type="text" id="contact-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="contact-email">Email</label> <input type="email" id="contact-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="contact-subject">Subject</label> <input type="text" id="contact-subject" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="contact-message">Message</label> <textarea id="contact-message" rows="4" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-black"></textarea> </div> <button type="button" class="bg-black text-white px-6 py-2 rounded-lg hover:bg-gray-800 transition">Send Message</button> </form> </div> </div> </div> <!-- Overlay for mobile menu --> <div id="overlay" class="overlay"></div> <script> // Mobile menu toggle document.getElementById('mobile-menu-button').addEventListener('click', function() { document.getElementById('mobile-menu').style.width = '70%'; }); document.getElementById('close-mobile-menu').addEventListener('click', function() { document.getElementById('mobile-menu').style.width = '0'; }); // Login/Registration modals function showLogin(type) { document.getElementById(`${type}-login-modal`).classList.remove('hidden'); } function hideLogin(type) { document.getElementById(`${type}-login-modal`).classList.add('hidden'); } function showRegistration(type) { document.getElementById(`${type}-registration-modal`).classList.remove('hidden'); } function hideRegistration(type) { document.getElementById(`${type}-registration-modal`).classList.add('hidden'); } // Dashboard navigation function loginUser() { // In a real app, you would validate credentials here hideLogin('user'); showDashboard('driver'); } function loginAdmin() { // In a real app, you would validate credentials here hideLogin('admin'); showDashboard('admin'); } function registerDriver() { // In a real app, you would submit the form here hideRegistration('driver'); alert('Driver registration submitted! Your account will be activated after verification.'); } function registerOwner() { // In a real app, you would submit the form here hideRegistration('owner'); alert('Owner registration submitted! Your account will be activated after verification.'); } function showDashboard(type) { // Hide all dashboards first document.getElementById('landing-page').classList.add('hidden'); document.getElementById('driver-dashboard').classList.add('hidden'); document.getElementById('owner-dashboard').classList.add('hidden'); document.getElementById('admin-dashboard').classList.add('hidden'); document.getElementById('faq-section').classList.add('hidden'); document.getElementById('contact-section').classList.add('hidden'); // Show the selected dashboard document.getElementById(`${type}-dashboard`).classList.remove('hidden'); } function showFAQ() { document.getElementById('landing-page').classList.add('hidden'); document.getElementById('driver-dashboard').classList.add('hidden'); document.getElementById('owner-dashboard').classList.add('hidden'); document.getElementById('admin-dashboard').classList.add('hidden'); document.getElementById('faq-section').classList.remove('hidden'); document.getElementById('contact-section').classList.add('hidden'); } function showContact() { document.getElementById('landing-page').classList.add('hidden'); document.getElementById('driver-dashboard').classList.add('hidden'); document.getElementById('owner-dashboard').classList.add('hidden'); document.getElementById('admin-dashboard').classList.add('hidden'); document.getElementById('faq-section').classList.add('hidden'); document.getElementById('contact-section').classList.remove('hidden'); } // Sidebar toggles for different dashboards document.getElementById('sidebar-toggle').addEventListener('click', function() { document.querySelector('#driver-dashboard .sidebar').classList.toggle('active'); document.getElementById('overlay').classList.toggle('active'); }); document.getElementById('sidebar-toggle-owner').addEventListener('click', function() { document.querySelector('#owner-dashboard .sidebar').classList.toggle('active'); document.getElementById('overlay').classList.toggle('active'); }); document.getElementById('sidebar-toggle-admin').addEventListener('click', function() { document.querySelector('#admin-dashboard .sidebar').classList.toggle('active'); document.getElementById('overlay').classList.toggle('active'); }); document.getElementById('overlay').addEventListener('click', function() { document.querySelectorAll('.sidebar').forEach(sidebar => { sidebar.classList.remove('active'); }); this.classList.remove('active'); }); // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); // Close mobile menu if open document.getElementById('mobile-menu').style.width = '0'; }); }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=RydifyR/trytry1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rydifyr D O M - Car Rental Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #000000 0%, #333333 100%);
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: -100%;
top: 0;
z-index: 50;
height: 100vh;
width: 70%;
}
.sidebar.active {
left: 0;
}
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 40;
display: none;
}
.overlay.active {
display: block;
}
}
</style>
</head>
<body class="bg-gray-100">
<!-- Landing Page -->
<div id="landing-page" class="min-h-screen gradient-bg text-white">
<!-- Navigation -->
<nav class="bg-black bg-opacity-80 py-4 px-6 flex justify-between items-center sticky top-0 z-50">
<div class="flex items-center">
<img src="https://via.placeholder.com/50" alt="Rydifyr D O M Logo" class="h-10 mr-3">
<h1 class="text-2xl font-bold">Rydifyr D O M</h1>
</div>
<div class="hidden md:flex space-x-6">
<a href="#features" class="hover:text-gray-300">Features</a>
<a href="#how-it-works" class="hover:text-gray-300">How It Works</a>
<a href="#faq" class="hover:text-gray-300">FAQ</a>
<a href="#contact" class="hover:text-gray-300">Contact</a>
</div>
<div class="flex items-center space-x-4">
<button onclick="showLogin('user')" class="bg-white text-black px-4 py-2 rounded-lg font-medium hover:bg-gray-200 transition">User Login</button>
<button onclick="showLogin('admin')" class="bg-gray-700 text-white px-4 py-2 rounded-lg font-medium hover:bg-gray-600 transition">Admin Login</button>
<button id="mobile-menu-button" class="md:hidden text-white">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</nav>
<!-- Mobile Menu -->
<div id="mobile-menu" class="md:hidden fixed top-0 left-0 h-full w-0 overflow-hidden bg-black z-50 transition-all duration-300">
<div class="flex justify-end p-4">
<button id="close-mobile-menu" class="text-white text-2xl">&times;</button>
</div>
<div class="flex flex-col items-center space-y-6 mt-10">
<a href="#features" class="text-white text-xl">Features</a>
<a href="#how-it-works" class="text-white text-xl">How It Works</a>
<a href="#faq" class="text-white text-xl">FAQ</a>
<a href="#contact" class="text-white text-xl">Contact</a>
</div>
</div>
<!-- Hero Section -->