Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SKevo18 committed Mar 9, 2024
1 parent d4c70cf commit 8f0c201
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 32 deletions.
12 changes: 6 additions & 6 deletions mods/mhk_2/meme_language/source/data/mk2/text.csv
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Credits;
270;<scale 0.8>Thorsten Stranegger</scale>
270;<scale 0.8>Yuro Kataoka</scale>
270;<scale 0.8>Marc Bethke</scale>
270;<scale 0.8>Florian B�tzler</scale>
270;<scale 0.8>Florian Bötzler</scale>
270;<scale 0.8>David Hopmann</scale>
270;
270;<font 30px_redoutline><scale 0.8>ONLINE PROGRAMMING</scale></font>
Expand All @@ -100,10 +100,10 @@ Credits;
270;<scale 0.8>Thomas Schuer</scale>
270;
270;<font 30px_redoutline><scale 0.8>MANUAL</scale></font>
270;<scale 0.8>G�tz Neuhaus</scale>
270;<scale 0.8>Götz Neuhaus</scale>
270;
270;<font 30px_redoutline><scale 0.8>DTP</scale></font>
270;<scale 0.8>Erhard Th�ringer</scale>
270;<scale 0.8>Erhard Thöringer</scale>
270;
270;
270;<font 30px_redoutline>DEVELOPMENT</font>
Expand Down Expand Up @@ -175,7 +175,7 @@ Credits;
270;<font 30px_redoutline><scale 0.8>Makeup Snowman</scale></font>
270;<scale 0.8>Arctic Giant</scale>
270;
270;<font 30px_redoutline><scale 0.8>Mr. Kr�t�s Pit Babe</scale></font>
270;<font 30px_redoutline><scale 0.8>Mr. Kröt's Pit Babe</scale></font>
270;<scale 0.8>Under Age Morla</scale>
270;
270;<font 30px_redoutline><scale 0.8>Style Consultation Mr. Hank</scale></font>
Expand Down Expand Up @@ -241,7 +241,7 @@ Credits;
270;;
270;;
270;;
270;<scale 0.8>Kr�t is visiting his cousin in the East Australian region.<br>Yo dude!</scale>;
270;<scale 0.8>Kröt is visiting his cousin in the East Australian region.<br>Yo dude!</scale>;
270;;
270;;
270;;
Expand Down Expand Up @@ -288,7 +288,7 @@ Characters;
312;Moorfrosch
313;Pumpkin
314;Snowman
315;Kr�t
315;Kröt
316;Hank

Select Track;
Expand Down
12 changes: 6 additions & 6 deletions webserver/modder.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ async def pack(
out_filename="mhk2-00.dat",
mods_folder=MODS_ROOT / "mhk_2",
),
"mhk_3": Game(
id="mhk_3",
name="Moorhuhn Kart 3",
out_filename="data.sar",
original_datafile=DATAFILE_ROOT / "mhk_3.sar",
),
#"mhk_3": Game(
# id="mhk_3",
# name="Moorhuhn Kart 3",
# out_filename="data.sar",
# original_datafile=DATAFILE_ROOT / "mhk_3.sar",
#),
"mhk_4": Game(
id="mhk_4",
name="Moorhuhn Kart: Thunder",
Expand Down
11 changes: 9 additions & 2 deletions webserver/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,16 @@
</style>
<script src="https://cdn.tailwindcss.com/"></script>
</head>
<body>
<main class="min-h-screen bg-white dark:bg-gray-800 dark:text-gray-300">
<body class="min-h-screen bg-white dark:bg-gray-800 dark:text-gray-300">
<main>
{% block content %}{% endblock %}
</main>

<footer class="">
<div class="container mx-auto py-8 text-center text-gray-500 dark:text-gray-400">
<p>Moorhuhn Mods &copy; Made by SKevo18</p>
<p>This project is <a href="https://github.com/SKevo18/mh_mods/" class="text-indigo-500 hover:text-indigo-600 dark:hover:text-indigo-400">open source</a>.</p>
</div>
</footer>
</body>
</html>
36 changes: 20 additions & 16 deletions webserver/templates/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,27 @@ <h2 class="text-lg font-semibold mb-2 text-indigo-700 dark:text-indigo-300">Inst
</div>

<div class="grid grid-cols-1 gap-4">
{% for mod in game.mods %}
<div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg shadow-md my-4">
{% if not mod.readme %}
<h2 class="text-lg font-semibold mb-2">{{ mod.id }}</h2>
{% else %}
<div class="mb-6 markdown-body" data-content="{{ mod.readme|e }}"></div>
{% endif %}
<div class="flex flex-row gap-4">
<button onclick="javascript:selectMod(this, '{{ mod.id}}');" class="bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-2 px-4 rounded">
Select this mod
</button>
<a href="{{ url_for('packmods', game_id=game.id) }}?mod={{ mod.id }}" class="bg-gray-600 hover:bg-gray-500 text-white font-bold py-2 px-4 rounded">
Download just this mod
</a>
{% if game.mods|length > 0 %}
{% for mod in game.mods %}
<div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg shadow-md my-4">
{% if not mod.readme %}
<h2 class="text-lg font-semibold mb-2">{{ mod.id }}</h2>
{% else %}
<div class="mb-6 markdown-body" data-content="{{ mod.readme|e }}"></div>
{% endif %}
<div class="flex flex-row gap-4">
<button onclick="javascript:selectMod(this, '{{ mod.id}}');" class="bg-indigo-600 hover:bg-indigo-500 text-white font-bold py-2 px-4 rounded">
Select this mod
</button>
<a href="{{ url_for('packmods', game_id=game.id) }}?mod={{ mod.id }}" class="bg-gray-600 hover:bg-gray-500 text-white font-bold py-2 px-4 rounded">
Download just this mod
</a>
</div>
</div>
</div>
{% endfor %}
{% endfor %}
{% else %}
<p class="text-gray-500 dark:text-gray-400">There are no mods available for this game (yet).</p>
{% endif %}
</div>

<div id="packModal" class="fixed bottom-0 p-4 shadow-lg rounded-lg bg-white-200 dark:bg-gray-800" style="display: none; left: 50%; transform: translateX(-50%);">
Expand Down
4 changes: 2 additions & 2 deletions webserver/templates/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ <h1 class="text-2xl font-bold mb-4">Moorhuhn Mods</h1>

<div class="grid grid-cols-1 gap-4">
{% for game in games %}
<a href="{{ url_for('game', game_id=game.id) }}" class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg shadow-md">
<a href="{{ url_for('game', game_id=game.id) }}" class="bg-gray-200 dark:bg-gray-700 hover:bg-gray-100 dark:hover:bg-gray-900 p-4 rounded-lg shadow-md">
<h2 class="text-lg font-semibold mb-2">{{ game.name }}</h2>
<p class="text-gray-600 dark:text-gray-400 italic">{{ game.mods|length }} mods</p>
<p class="text-gray-600 dark:text-gray-400 italic">{% if game.mods|length > 0 %}{{ game.mods|length }}{% else %}No{% endif %} mods available</p>
</a>
{% endfor %}
</div>
Expand Down

0 comments on commit 8f0c201

Please sign in to comment.