diff --git a/config.json b/config.json index 385bcc7..5ffb69e 100644 --- a/config.json +++ b/config.json @@ -1,72 +1,68 @@ { "user_data": { - "first_name": "Denisa", - "last_name": "Cirstea", - "company_name": "Footprints AI", - "email": "denisa@example.com", - "phone": "+40 712 345 678", - "store_name": "Media", - "country": "Romania", - "starting_date": "01.01.2025", + "first_name": "gfgdfggf", + "last_name": "gfdgd", + "company_name": "gfdgfd", + "email": "gfdgd", + "phone": "gfdgd", + "store_name": "testtttttt", + "country": "gfdgd", + "starting_date": "2025-09-17", "duration": 36, - "store_types": ["convenience", "minimarket", "supermarket", "hypermarket"], - "open_days_per_month": 26, - + "store_types": [ + "Convenience" + ], + "open_days_per_month": 30, "convenience_store_type": { - "stores_number": 120, - "monthly_transactions": 900000, + "stores_number": 231, + "monthly_transactions": 321321321, "has_digital_screens": true, - "screen_count": 300, - "screen_percentage": 70, + "screen_count": 2, + "screen_percentage": 100, "has_in_store_radio": true, - "radio_percentage": 60, - "open_days_per_month": 26 + "radio_percentage": 100, + "open_days_per_month": 30 }, - - "minimarket_store_type": { - "stores_number": 50, - "monthly_transactions": 600000, - "has_digital_screens": true, - "screen_count": 150, - "screen_percentage": 60, - "has_in_store_radio": true, - "radio_percentage": 70, - "open_days_per_month": 26 - }, - "supermarket_store_type": { - "stores_number": 80, - "monthly_transactions": 450000, - "has_digital_screens": true, - "screen_count": 200, - "screen_percentage": 50, - "has_in_store_radio": true, - "radio_percentage": 80, - "open_days_per_month": 26 - }, - - "hypermarket_store_type": { - "stores_number": 5, - "monthly_transactions": 60000, + "stores_number": 0, + "monthly_transactions": 0, "has_digital_screens": false, "screen_count": 0, "screen_percentage": 0, - "has_in_store_radio": true, - "radio_percentage": 100, - "open_days_per_month": 26 + "has_in_store_radio": false, + "radio_percentage": 0, + "open_days_per_month": 30 }, - - "on_site_channels": ["Homepage Banners", "Search Results", "Category Pages"], - "website_visitors": 1200000, - "app_users": 350000, - "loyalty_users": 500000, - - "off_site_channels": ["Social Display", "Programmatic Video", "Search Ads"], - "facebook_followers": 250000, - "instagram_followers": 180000, - "google_views": 4200000, - "email_subscribers": 300000, - "sms_users": 220000, - "whatsapp_contacts": 150000 + "hypermarket_store_type": { + "stores_number": 0, + "monthly_transactions": 0, + "has_digital_screens": false, + "screen_count": 0, + "screen_percentage": 0, + "has_in_store_radio": false, + "radio_percentage": 0, + "open_days_per_month": 30 + }, + "on_site_channels": [ + "Mobile App" + ], + "website_visitors": 0, + "app_users": 323213, + "loyalty_users": 0, + "off_site_channels": [ + "Facebook Business" + ], + "facebook_followers": 321312, + "instagram_followers": 0, + "google_views": 0, + "email_subscribers": 0, + "sms_users": 0, + "whatsapp_contacts": 0, + "potential_reach_in_store": 0, + "unique_impressions_in_store": 0, + "potential_reach_on_site": 0, + "unique_impressions_on_site": 0, + "potential_reach_off_site": 0, + "unique_impressions_off_site": 0 } } \ No newline at end of file diff --git a/create_excel.py b/create_excel.py index 51379cc..80ebf87 100755 --- a/create_excel.py +++ b/create_excel.py @@ -101,6 +101,14 @@ def calculate_years(starting_date, duration): day, month, year = map(int, starting_date.split('/')) elif '.' in starting_date: day, month, year = map(int, starting_date.split('.')) + elif '-' in starting_date: + # Handle ISO format (yyyy-mm-dd) + date_parts = starting_date.split('-') + if len(date_parts) == 3: + year, month, day = map(int, date_parts) + else: + # Default to current date if format is not recognized + return default_years else: # If format is not recognized, return default return default_years diff --git a/index.html b/index.html index c50da8f..2c215ea 100644 --- a/index.html +++ b/index.html @@ -107,15 +107,15 @@
-
+
- -
-
-
-
-
-
+ +
+
+
+
+
+
@@ -480,7 +480,7 @@ - @@ -631,7 +631,7 @@ function updateProgressBar() { // Get the positions for each step - const stepPositions = [8.33, 25, 41.66, 58.33, 75, 91.66]; + const stepPositions = [0, 20, 40, 60, 80, 100]; // Set the progress bar width to the current step's position const progressWidth = stepPositions[currentStep - 1]; @@ -1520,7 +1520,7 @@ class="w-full p-3 border border-gray-300 bg-white rounded-md focus:outline-none focus:ring-1 focus:ring-[#eb742e] focus:border-[#eb742e]">
- +
@@ -1546,7 +1546,7 @@ -

+

Your submission has been received successfully. Our retail media specialists will reach out to you soon.

- - Return Home - +

+ You can download your personalized business case Excel file using the button below. +

+ +
+ +
+ + + + Download Excel +
+
+ + + Return Home + +
+ \ No newline at end of file