diff --git a/app.py b/app.py index 446b0f1..9e5f8a3 100644 --- a/app.py +++ b/app.py @@ -28,9 +28,9 @@ def get_js_files(): @app.route("/") -def show_index(): +def show_app(): js_files = get_js_files() - return render_template("index.html", js_files=js_files) + return render_template("app.html", js_files=js_files) @app.route("/get_families") @@ -120,11 +120,9 @@ def monster_stats(monster_name): ) - # Add this route for fetching breeding combinations @app.route("/breeds") def get_breeding_combinations(): - selected_monster = request.args.get("monster") if not selected_monster: return jsonify({"error": "Invalid input"}) @@ -197,10 +195,5 @@ def get_breeding_pairs(breed_id): return base_pair, mate_pair -@app.route("/footer") -def show_footer(): - return render_template("footer.html") - - if __name__ == "__main__": app.run(debug=True) diff --git a/static/style/output.css b/static/style/output.css index 4f309b2..3e43150 100644 --- a/static/style/output.css +++ b/static/style/output.css @@ -586,10 +586,6 @@ video { margin: 0.5rem; } -.m-4 { - margin: 1rem; -} - .mx-auto { margin-left: auto; margin-right: auto; @@ -679,12 +675,13 @@ video { background-color: rgb(30 41 59 / var(--tw-bg-opacity)); } -.p-2 { - padding: 0.5rem; +.bg-slate-900 { + --tw-bg-opacity: 1; + background-color: rgb(15 23 42 / var(--tw-bg-opacity)); } -.p-4 { - padding: 1rem; +.p-2 { + padding: 0.5rem; } .pl-2 { diff --git a/templates/.layout.html b/templates/.layout.html new file mode 100644 index 0000000..a81cc81 --- /dev/null +++ b/templates/.layout.html @@ -0,0 +1,15 @@ + + +
+ + + + + {% block head %}{% endblock %} + + + {% block body %}{% endblock %} + + + + diff --git a/templates/app.html b/templates/app.html index 22a9a10..bd2bfff 100644 --- a/templates/app.html +++ b/templates/app.html @@ -1,13 +1,71 @@ - - - - - - - - {% block head %}{% endblock %} - - - {% block body %}{% endblock %} - - +{% extends '.layout.html' %} {% block head %}{% endblock %} {% block body %} +- Dragon Warrior Monsters 2 App, an open-source project where you can explore information about monsters, breeding pairs, and more. -
-- You can contribute to the development and improvement of this app on our Git repository. Feel free to explore the code, report issues, and submit pull requests. -
- -Family: {{ monster.family }}
-Stats:
-Family: {{ monster.family }}
+Stats:
+Skills:
-In Story: {{ monster.in_story }}
-Spawn Locations:
-Skills:
+In Story: {{ monster.in_story }}
+Spawn Locations:
+