File size: 63,740 Bytes
447477c | 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 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 | <!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">×</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">×</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">×</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">×</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">×</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> |