From 26e710471c965f7df43a25d2f7105ab329b5f6f4 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 22 Nov 2025 13:52:53 +0000 Subject: [PATCH] version_1 --- assets/css/custom.css | 33 +++++ assets/js/main.js | 5 + index.php | 290 +++++++++++++++++++++--------------------- 3 files changed, 183 insertions(+), 145 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 assets/js/main.js diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..cd78257 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,33 @@ +body { + font-family: 'Inter', sans-serif; + background-color: #F8F9FA; +} + +.hero-section { + background: linear-gradient(to right, #e0eafc, #cfdef3); +} + +.product-card { + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + border: none; + border-radius: 0.5rem; +} + +.product-card:hover { + transform: translateY(-5px); + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); +} + +.product-card .card-img-top { + border-top-left-radius: 0.5rem; + border-top-right-radius: 0.5rem; + aspect-ratio: 1 / 1; + object-fit: cover; +} + +.discount-badge { + position: absolute; + top: 10px; + right: 10px; + font-size: 0.9em; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..3105092 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,5 @@ +// Future JavaScript for interactivity + +document.addEventListener('DOMContentLoaded', function () { + console.log('PriceWise is ready!'); +}); diff --git a/index.php b/index.php index 7205f3d..c7335e4 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,150 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Price Comparator + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + + + +
+
+

Find the Best Deals

+

Search for any product and compare prices from top e-commerce sites.

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

Popular Products

+
+ 'Wireless Noise-Cancelling Headphones', + 'image' => 'https://picsum.photos/seed/h/500/500', + 'price' => 249.99, + 'rating' => 4.5, + 'store' => 'Amazon', + 'store_link' => '#', + 'discount' => 15 + ], + [ + 'name' => '4K Smart TV 55-inch', + 'image' => 'https://picsum.photos/seed/tv/500/500', + 'price' => 499.00, + 'rating' => 4.8, + 'store' => 'Walmart', + 'store_link' => '#', + 'discount' => null + ], + [ + 'name' => 'Espresso Coffee Machine', + 'image' => 'https://picsum.photos/seed/coffee/500/500', + 'price' => 199.50, + 'rating' => 4.7, + 'store' => 'eBay', + 'store_link' => '#', + 'discount' => 20 + ], + [ + 'name' => 'Robotic Vacuum Cleaner', + 'image' => 'https://picsum.photos/seed/vacuum/500/500', + 'price' => 299.99, + 'rating' => 4.6, + 'store' => 'AliExpress', + 'store_link' => '#', + 'discount' => 10 + ], + [ + 'name' => 'Air Fryer Oven, 7-in-1', + 'image' => 'https://picsum.photos/seed/airfryer/500/500', + 'price' => 89.95, + 'rating' => 4.9, + 'store' => 'Amazon', + 'store_link' => '#', + 'discount' => null + ], + [ + 'name' => 'Gaming Laptop, 15.6"', + 'image' => 'https://picsum.photos/seed/laptop/500/500', + 'price' => 1250.00, + 'rating' => 4.7, + 'store' => 'Flipkart', + 'store_link' => '#', + 'discount' => 5 + ] + ]; + + foreach ($products as $product) { + ?> +
+
+ + -% + + <?php echo htmlspecialchars($product['name']); ?> +
+
+
+

$

+
+ + +
+
+

Available at:

+ Go to Store +
+
+
+ +
+
+ + + + + - + \ No newline at end of file