From 7c0e36c51d247d2997706831ff1905e2620aa50f Mon Sep 17 00:00:00 2001 From: Anant Pathak Date: Fri, 25 Apr 2025 15:30:03 +0530 Subject: [PATCH] Refactor templates and enhance UI with theme toggle functionality --- app.py | 1 + templates/hello.html | 102 ++++++++++++++++++++--- templates/index.html | 191 ++++++++++++++++++++++++++++++++++++++----- 3 files changed, 262 insertions(+), 32 deletions(-) diff --git a/app.py b/app.py index 3d1808cf6..477b07cb6 100644 --- a/app.py +++ b/app.py @@ -29,4 +29,5 @@ def hello(): if __name__ == '__main__': + app.debug = True app.run() diff --git a/templates/hello.html b/templates/hello.html index c277e7740..a010dc901 100644 --- a/templates/hello.html +++ b/templates/hello.html @@ -1,21 +1,97 @@ - Hello Azure - Python Quickstart + XInsights - Results + - +
-
- Azure Logo - -

Hello {{name}}

-

- It is nice to meet you! -

- Back home -
-
+
+ + +
+
+
+
+
Your Query
+
+
+

{{name}}

+
+
+ +
+
+
Results
+
+
+

+ This is a demo interface. In a real application, this would display actual analytics results based on your query. +

+
+ Sample visualization or data would appear here based on the query type and results. +
+
+
+ +
+ New Query +
+
+
+
+ + + - \ No newline at end of file + diff --git a/templates/index.html b/templates/index.html index 9cdba30cd..e7702f502 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,30 +1,183 @@ - Hello Azure - Python Quickstart + XInsights + - +
- Azure Logo - -

Welcome to Azure

-
-
-
- + + +

XInsights

+
- -
- -
-
- -
+
+
+ +
+ +
+
+
Enter Your Query
+ + +
+
+ +
+ + +
+

Sample Queries

+
+
+
+
+

Show me the top 10 purchase failure reasons in the last 2 weeks

+ +
+
+
+
+
+
+

List the most common customer complaints from high-value transactions

+ +
+
+
+
+
+
+

What are the trending products in our electronics category?

+ +
+
+
+
+
+
+

Display the average order processing time by region

+ +
+
+
+
+
+
+

Identify customers who abandoned their cart with items over $100

+ +
+
+
+
+
+
+

Show me conversion rates for different marketing campaigns

+ +
+
+
+
+
+
+

What's the distribution of customer ratings this month?

+ +
+
+
+
+
+
+

List products with unusual return patterns

+ +
+
+
+
+
+
+

Show me peak transaction hours in different time zones

+ +
+
+
+
+
+
+

Identify payment methods with highest decline rates

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