diff --git a/api/pexels.php b/api/pexels.php new file mode 100644 index 0000000..f90408e --- /dev/null +++ b/api/pexels.php @@ -0,0 +1,29 @@ + 'assets/images/pexels/'.$p['id'].'.jpg', + 'photographer' => $p['photographer'] ?? 'Unknown', + 'photographer_url' => $p['photographer_url'] ?? '', + ]; + } else { + // Fallback: Picsum + $out[] = [ + 'src' => 'https://picsum.photos/600/800', + 'photographer' => 'Random Picsum', + 'photographer_url' => 'https://picsum.photos/' + ]; + } + } + echo json_encode($out); +?> \ No newline at end of file diff --git a/includes/footer.php b/includes/footer.php new file mode 100644 index 0000000..84456ee --- /dev/null +++ b/includes/footer.php @@ -0,0 +1,33 @@ + + + + + + +
+ +
+ + + + + + + + \ No newline at end of file diff --git a/includes/header.php b/includes/header.php new file mode 100644 index 0000000..ca8ee9f --- /dev/null +++ b/includes/header.php @@ -0,0 +1,50 @@ + + + + + + + HerWay - Travel Safe, Together + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/includes/pexels.php b/includes/pexels.php new file mode 100644 index 0000000..6f12373 --- /dev/null +++ b/includes/pexels.php @@ -0,0 +1,26 @@ + 0 ? $k : 'Vc99rnmOhHhJAbgGQoKLZtsaIVfkeownoQNbTj78VemUjKh08ZYRbf18'; + } + function pexels_get($url) { + $ch = curl_init(); + curl_setopt_array($ch, [ + CURLOPT_URL => $url, + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => [ 'Authorization: '. pexels_key() ], + CURLOPT_TIMEOUT => 15, + ]); + $resp = curl_exec($ch); + $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + if ($code >= 200 && $code < 300 && $resp) return json_decode($resp, true); + return null; + } + function download_to($srcUrl, $destPath) { + $data = file_get_contents($srcUrl); + if ($data === false) return false; + if (!is_dir(dirname($destPath))) mkdir(dirname($destPath), 0775, true); + return file_put_contents($destPath, $data) !== false; + } +?> \ No newline at end of file diff --git a/index.php b/index.php index 3651669..55f7615 100644 --- a/index.php +++ b/index.php @@ -1,53 +1,4 @@ - - - - - - - HerWay - Travel Safe, Together - - - - - - - - - - - - - - - - - - - - - -
+
@@ -101,6 +52,16 @@
+ +
+
+

Inspiration for Your Next Journey

+ +
+
+
@@ -125,36 +86,4 @@ Contact Us
-
- - - - - -
- -
- - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/login.php b/login.php index 5738636..1df7847 100644 --- a/login.php +++ b/login.php @@ -1,7 +1,9 @@ - - - - - - Login - HerWay - - - - -
-
- HerWay - -
-
-
+
@@ -91,12 +74,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
+ - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/my-trips.php b/my-trips.php index 6cdb9d6..39e1790 100644 --- a/my-trips.php +++ b/my-trips.php @@ -1,6 +1,6 @@ - - - - - - My Trips - HerWay - - - - - - - - - - - - - - - - - - - -
-
-
-

My Planned Trips

- Plan a New Trip -
+ +
+ - -
- + +
+ - -
- - -
-
- -

You have no planned trips yet.

- -
- - +
+
+ +

You have no planned trips yet.

+ +
+
+ + + + + + + + + + - - - - + + + + - - - - - - - - - - - -
DestinationDate & TimeStatusBooked On
DestinationDate & TimeStatusBooked On
-
- -
+ + + +
+ -
-
- - - + + - - - - - - - + \ No newline at end of file diff --git a/register.php b/register.php index c0f06df..8461e48 100644 --- a/register.php +++ b/register.php @@ -1,6 +1,6 @@ - - - - - - Register - HerWay - - - - - - - - - - - +
+
+
+
+
+
+

Create Your Account

+ + +
+ +

+ +
+ - - - - - - - - -
-
-
-
-
-
-

Create Your Account

- - -
- -

- -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
-

- Already have an account? Log In -

-
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+

+ Already have an account? Log In +

-
-
- - - +
+
- - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/trip-setup.php b/trip-setup.php index 7781319..6b9e9f4 100644 --- a/trip-setup.php +++ b/trip-setup.php @@ -1,6 +1,6 @@ - - - - - - Trip Setup - HerWay - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

Plan Your Trip

-

Enter your destination and travel time to find verified travel companions.

+
+
+ + +
- -
- +
+ + +
- -
- - -
- -
- - -
- -
- -
-
-
+
+ +
+
-
-
- - - + + - - - - - - - + \ No newline at end of file