diff --git a/assets/images/pexels/60504.jpg b/assets/images/pexels/60504.jpg new file mode 100644 index 0000000..66dd9c0 Binary files /dev/null and b/assets/images/pexels/60504.jpg differ diff --git a/assets/images/pexels/821754.jpg b/assets/images/pexels/821754.jpg new file mode 100644 index 0000000..04f20b7 Binary files /dev/null and b/assets/images/pexels/821754.jpg differ diff --git a/assets/pasted-20251209-173018-34888b32.png b/assets/pasted-20251209-173018-34888b32.png new file mode 100644 index 0000000..678fe41 Binary files /dev/null and b/assets/pasted-20251209-173018-34888b32.png differ diff --git a/contact.php b/contact.php index 8a050e2..45b4389 100644 --- a/contact.php +++ b/contact.php @@ -1,4 +1,22 @@ Contact Us - + + + + + + + + + + + + -
-

Contact Us

-

Fill out the form below to get in touch with us.

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

Get In Touch

+

We'd love to hear from you. Send us a message and we'll respond as soon as possible.

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

Contact Form

+ + +
+ + +
+
+ + +
+
+ + +
+
+ Back to Home + +
+ +
+
+
- - -
+ + + + + + + + + + + + + + - \ No newline at end of file + diff --git a/login.php b/login.php index 89ec330..502690c 100644 --- a/login.php +++ b/login.php @@ -1,9 +1,10 @@ - Login - + Login - <?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: "Grandma's Getaway"); ?> + + + + + + + -
-

Login

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

Secure Login

+

Welcome back! Access your account below.

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

Sign In

+ +
+ +
+ + +
+ + +
+
+ + +
+
+ +
+ + +
+
+
+
- - -
+ + + + + + + + + + - \ No newline at end of file + diff --git a/register.php b/register.php index f8b3c95..ef09742 100644 --- a/register.php +++ b/register.php @@ -1,10 +1,10 @@ - prepare("SELECT * FROM users WHERE username = :username OR email = :email"); $stmt->execute(['username' => $username, 'email' => $email]); if ($stmt->fetch()) { $message = 'Username or email already taken.'; } else { - // Hash the password $password_hash = password_hash($password, PASSWORD_DEFAULT); - - // Insert new user $stmt = $pdo->prepare("INSERT INTO users (username, email, password_hash) VALUES (:username, :email, :password_hash)"); if ($stmt->execute(['username' => $username, 'email' => $email, 'password_hash' => $password_hash])) { $message = 'Registration successful! You can now log in.'; @@ -41,112 +36,134 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { } } } + +// --- Pexels Hero Image --- +$query = 'join us'; +$orientation = 'landscape'; +$url = 'https://api.pexels.com/v1/search?query=' . urlencode($query) . '&orientation=' . urlencode($orientation) . '&per_page=1&page=1'; +$data = pexels_get($url); +$hero_image_url = ''; +if ($data && !empty($data['photos'])) { + $photo = $data['photos'][0]; + $src = $photo['src']['large2x'] ?? ($photo['src']['large'] ?? $photo['src']['original']); + $target = __DIR__ . '/assets/images/pexels/' . $photo['id'] . '.jpg'; + download_to($src, $target); + $hero_image_url = 'assets/images/pexels/' . $photo['id'] . '.jpg'; +} ?> - Register - Flatlogic - - + Register - <?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: "Grandma's Getaway"); ?> + + + + + + + - -
-
-
-
-
-

Create an Account

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

Join Us

+

Create your account to get started.

+
+
+ + +
+
+
+
+
+
+

Create an Account

+ +
+ + +
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+

Already have an account? Sign In

+ ← Back to Home +
-
- - -
-
- - -
-
- -
- +
-

- Already have an account? Sign In -

-
+ +
-