diff --git a/api/fetch_auth_bg.php b/api/fetch_auth_bg.php new file mode 100644 index 0000000..e0b7ed4 --- /dev/null +++ b/api/fetch_auth_bg.php @@ -0,0 +1,18 @@ + 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; +} diff --git a/index.php b/index.php index e5525b4..e2e6c56 100644 --- a/index.php +++ b/index.php @@ -27,7 +27,7 @@ - + @@ -58,41 +58,34 @@
-
-
- -

FoodieFlow

-

An AI-powered flow from recipe to grocery — every day, every occasion

+
+ +
🥑
+
🛍️
+
🥖
+
🥗
+ +
+

FoodieFlow

+

An AI-powered flow from recipe to grocery — every day, every occasion

-
-
- -
-
AI Recipes from Photos
-

Upload a photo of any dish, and our AI will instantly create its recipe.

-
+
+
+ +
AI Recipes from Photos 📸
-
- -
-
Smart Shopping
-

Automatic grocery lists. We'll find where it's cheaper and build your basket.

-
+
+ +
Smart Shopping Lists 🛒
-
- -
-
For Holidays & Weekdays
-

Plan parties together: share your grocery list with friends and family.

-
+
+ +
Holiday & Event Planning 🥳
-
- -
-
Expense Control
-

Snap a photo of your receipt, and the app will help split the cost among all participants.

-
+
+ +
Expense Control & Splitting 💸
@@ -372,7 +365,7 @@ - +