app.html added as base bluebrint

This commit is contained in:
Chris kerr 2024-02-04 14:56:29 -05:00
parent 4f644a706a
commit d1597244da
4 changed files with 76 additions and 75 deletions

13
templates/app.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://happytavern.co/.pictures/dwm/favicon.ico" />
<link rel="stylesheet" href="../static/style/output.css" />
{% block head %}{% endblock %}
</head>
<body class="content-center p-4 m-4 font-mono text-white bg-slate-700">
{% block body %}{% endblock %}
</body>
</html>

View File

@ -1,5 +1,3 @@
<!-- breeding.html -->
<!DOCTYPE html>
<html lang="en">
<head>
@ -17,11 +15,13 @@
<h3 class="text-lg font-bold">Base</h3>
<ul>
{% for pair in selected_monster.base_pair %}
<li id="parent" class="text-center cursor-pointer hover:text-red-700 w-fit">
<!-- Add a class to make the monster name clickable -->
<span class="monster-name" data-name="{{ pair }}"
>{{ pair }}</span
<li
id="parent"
class="text-center cursor-pointer hover:text-red-700 w-fit"
>
<span class="monster-name" data-name="{{ pair }}">
{{ pair }}
</span>
</li>
{% endfor %}
</ul>
@ -31,10 +31,9 @@
<ul>
{% for pair in selected_monster.mate_pair %}
<li id="parent" class="cursor-pointer hover:text-red-700 w-fit">
<!-- Add a class to make the monster name clickable -->
<span class="monster-name" data-name="{{ pair }}"
>{{ pair }}</span
>
<span class="monster-name" data-name="{{ pair }}">
{{ pair }}
</span>
</li>
{% endfor %}
</ul>

View File

@ -1,20 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://happytavern.co/.pictures/dwm/favicon.ico" />
<title>dwm-app</title>
<link rel="stylesheet" href="../static/style/output.css" />
</head>
<body class="content-center p-4 m-4 font-mono text-white bg-slate-700">
<h1 class="text-2xl font-black text-white">
{% extends 'app.html' %} {% block head %}{% endblock %} {% block body %}
<h1 class="text-2xl font-black text-white">
Welcome to the Dragon Warrior Monsters 2 App
</h1>
<div>
</h1>
<div>
<label for="familyDropdown">Select Family:</label>
<select id="familyDropdown" class="p-2 rounded-md bg-slate-800">
<option value="">All</option>
<option value="">All Families</option>
</select>
<label for="monsterDropdown">Select Monster:</label>
@ -23,7 +14,7 @@
class="p-2 rounded-md bg-slate-800"
onchange="updateMonsterSprite()"
>
<option value="">All</option>
<option value="">All Monsters</option>
</select>
<div id="modules" class="flex mt-4">
<iframe
@ -61,9 +52,7 @@
width="800"
>
</iframe>
</div>
{% for file in js_files %}
<script src="{{ url_for('static', filename='js/' + file) }}"></script>
{% endfor %}
</body>
</html>
</div>
{% for file in js_files %}
<script src="{{ url_for('static', filename='js/' + file) }}"></script>
{% endfor %} {% endblock %}

View File