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

View File

@ -1,20 +1,11 @@
<!DOCTYPE html> {% extends 'app.html' %} {% block head %}{% endblock %} {% block body %}
<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"> <h1 class="text-2xl font-black text-white">
Welcome to the Dragon Warrior Monsters 2 App Welcome to the Dragon Warrior Monsters 2 App
</h1> </h1>
<div> <div>
<label for="familyDropdown">Select Family:</label> <label for="familyDropdown">Select Family:</label>
<select id="familyDropdown" class="p-2 rounded-md bg-slate-800"> <select id="familyDropdown" class="p-2 rounded-md bg-slate-800">
<option value="">All</option> <option value="">All Families</option>
</select> </select>
<label for="monsterDropdown">Select Monster:</label> <label for="monsterDropdown">Select Monster:</label>
@ -23,7 +14,7 @@
class="p-2 rounded-md bg-slate-800" class="p-2 rounded-md bg-slate-800"
onchange="updateMonsterSprite()" onchange="updateMonsterSprite()"
> >
<option value="">All</option> <option value="">All Monsters</option>
</select> </select>
<div id="modules" class="flex mt-4"> <div id="modules" class="flex mt-4">
<iframe <iframe
@ -64,6 +55,4 @@
</div> </div>
{% for file in js_files %} {% for file in js_files %}
<script src="{{ url_for('static', filename='js/' + file) }}"></script> <script src="{{ url_for('static', filename='js/' + file) }}"></script>
{% endfor %} {% endfor %} {% endblock %}
</body>
</html>

View File