diff --git a/src/framework_driver/ui/app.py b/src/framework_driver/ui/app.py deleted file mode 100644 index e6e8e7e..0000000 --- a/src/framework_driver/ui/app.py +++ /dev/null @@ -1,27 +0,0 @@ -from flask import Flask, render_template, redirect, url_for - -app = Flask(__name__) - -@app.route('/') -def home(): - return redirect(url_for('products')) - -@app.route('/cart') -def cart(): - cart_items = [ - {'name': 'Item 1', 'quantity': 2}, - {'name': 'Item 2', 'quantity': 1} - ] - return render_template('cart.html', cart_items=cart_items) - -@app.route('/products') -def products(): - products = [ - {'name': 'Product 1', 'price': 2.5}, - {'name': 'Product 2', 'price': 1.5} - ] - return render_template('product.html', products=products) - - -if __name__ == '__main__': - app.run(debug=True, port=5000) \ No newline at end of file diff --git a/src/framework_driver/ui/static/css/style.css b/src/framework_driver/ui/static/css/style.css index e69de29..ed01269 100644 --- a/src/framework_driver/ui/static/css/style.css +++ b/src/framework_driver/ui/static/css/style.css @@ -0,0 +1,19 @@ +body { + font-family: Arial, sans-serif; +} + +header { + background-color: #f8f9fa; + padding: 1rem; + text-align: center; +} + +main { + padding: 1rem; +} + +button { + padding: 0.5rem 1rem; + margin-top: 1rem; + cursor: pointer; +} \ No newline at end of file diff --git a/src/framework_driver/ui/static/js/script.js b/src/framework_driver/ui/static/js/script.js index e69de29..3035a99 100644 --- a/src/framework_driver/ui/static/js/script.js +++ b/src/framework_driver/ui/static/js/script.js @@ -0,0 +1,3 @@ +document.addEventListener('DOMContentLoaded', function() { + console.log('JavaScript is loaded'); +}); \ No newline at end of file diff --git a/src/framework_driver/ui/templates/base.html b/src/framework_driver/ui/templates/base.html index 84b0250..310dab3 100644 --- a/src/framework_driver/ui/templates/base.html +++ b/src/framework_driver/ui/templates/base.html @@ -4,7 +4,7 @@