From 64ad8fe24a9eaa700f1f9becc2c2fe0ebd9e02cc Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 16 Oct 2025 07:51:21 +0000 Subject: [PATCH] V17 --- assets/css/main.css | 21 +++ driver_signup.php | 175 +++++++++++++++--- header.php | 3 + index.php | 133 +++++++++---- .../20251016_add_lat_lng_to_restaurants.sql | 8 + 5 files changed, 272 insertions(+), 68 deletions(-) create mode 100644 migrations/20251016_add_lat_lng_to_restaurants.sql diff --git a/assets/css/main.css b/assets/css/main.css index ead983f9..5365d708 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -524,4 +524,25 @@ main { width: 100%; padding: 15px; font-size: 1.1rem; +} + +/* --- Back to Home Button --- */ +.back-to-home-btn { + display: inline-block; + margin-top: 10px; + margin-bottom: -10px; /* to reduce space */ + padding: 8px 15px; + background-color: #f8f9fa; + color: var(--text-light); + border-radius: 50px; + font-size: 0.9rem; + font-weight: 700; + border: 1px solid var(--border-color); + transition: var(--transition); +} + +.back-to-home-btn:hover { + background-color: #e9ecef; + color: var(--text-dark); + border-color: #ccc; } \ No newline at end of file diff --git a/driver_signup.php b/driver_signup.php index fddc10aa..72aa8804 100644 --- a/driver_signup.php +++ b/driver_signup.php @@ -1,35 +1,152 @@ -
-
-

Become a Driver

-
-
- - + + +
+ - + \ No newline at end of file diff --git a/header.php b/header.php index e39f2ab3..fbe6cef3 100644 --- a/header.php +++ b/header.php @@ -16,6 +16,9 @@ session_start();
+ + ← Back to Home +
- \ No newline at end of file + + + diff --git a/migrations/20251016_add_lat_lng_to_restaurants.sql b/migrations/20251016_add_lat_lng_to_restaurants.sql new file mode 100644 index 00000000..4ae9e0e8 --- /dev/null +++ b/migrations/20251016_add_lat_lng_to_restaurants.sql @@ -0,0 +1,8 @@ + +ALTER TABLE restaurants +ADD COLUMN latitude DECIMAL(10, 8), +ADD COLUMN longitude DECIMAL(11, 8); + +UPDATE restaurants SET latitude = 7.1136, longitude = 171.3772 WHERE name = 'The Gourmet Kitchen'; +UPDATE restaurants SET latitude = 7.0915, longitude = 171.3806 WHERE name = 'Pizza Palace'; +UPDATE restaurants SET latitude = 7.0667, longitude = 171.3833 WHERE name = 'Taco Town';