Skip to content

Commit

Permalink
Even more efficient usage of templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K committed Aug 9, 2023
1 parent 648a769 commit a5b2923
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 29 deletions.
7 changes: 3 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<title class="site-title">404 | Youyin </title>
</head>
<body>
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main class="centered">
<h1 id="err-404-emoji">\(o_o)/</h1>
<h1>Unfortunately this page doesn't exist 😔</h1>
<br>
</main>
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
<option value="7">🇯🇵 JP</option>
</select>
</footer>
<script src="./index.js"></script>
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<title class="site-title">About | Youyin </title>
</head>
<body>
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main>
<h1>About Youyin</h1>
<p>
Expand Down Expand Up @@ -83,7 +83,6 @@ <h1>More like Youyin</h1>
</ol>
<hr>
</main>
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
</html>
7 changes: 3 additions & 4 deletions account.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<link rel="stylesheet" href="./deck.css" type="text/css">

<title class="site-title">Youyin </title>
</head>
<body data-gramm="false" data-gramm_editor="false" data-enable-grammarly="false" spellcheck="false">
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main class="centered">
<h1 id="coming-soon-header">This page is coming soon! 🚧</h1>
<p id="coming-soon-text">Maybe check out the main <a href="https://madladsquad.com/">MadLad Squad's page</a> or <a href="./index.html">return to the main page</a>!</p>
<p id="coming-soon-text">Thank you for your patience! ❤️</p>
</main>
<hr id="main-page-hr">
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
</html>
2 changes: 1 addition & 1 deletion ci-clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
rm *.hmtl
rm -rf components/ UBTCustomFunctions/ UVKBuildTool/ .github/
rm -rf Components/ UBTCustomFunctions/ UVKBuildTool/ .github/
mv build/*.html .
rm -rf build
7 changes: 3 additions & 4 deletions deck-edit-card.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<link rel="stylesheet" href="./deck.css">

<title class="site-title">Edit Card | Youyin </title>
</head>
<body>
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main id="deck">
<script src="https://cdn.jsdelivr.net/npm/hanzi-writer/dist/hanzi-writer.min.js"></script>
<div id="current-new-card" class="card centered">
Expand Down Expand Up @@ -49,8 +49,7 @@ <h3 id="card-preview-name">Preview Name</h3>
</ol>
</div>
</main>
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
<script src="./deck-new.js"></script>
</body>
</html>
7 changes: 3 additions & 4 deletions deck.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<link rel="stylesheet" href="./deck.css">

<title class="site-title">Deck | Youyin </title>
</head>
<body>
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main id="deck">
<script src="https://cdn.jsdelivr.net/npm/hanzi-writer/dist/hanzi-writer.min.js"></script>
<div id="profile-card" class="card centered">
Expand All @@ -33,8 +33,7 @@ <h1 id="new-card-header">+</h1>
</div>
<!-- Data will be inserted dynamically by the Javascript here from deck.js file -->
</main>
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
<script src="./deck.js"></script>
</html>
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<link rel="stylesheet" href="./deck.css" type="text/css">
<title class="site-title">Youyin </title>
</head>
<body data-gramm="false" data-gramm_editor="false" data-enable-grammarly="false" spellcheck="false">
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main id="main-page" data-gramm="false" data-gramm_editor="false" data-enable-grammarly="false" spellcheck="false">
<div id="character-info-widget">
<p id="character-info-widget-spelling">Spelling: To be loaded</p>
Expand All @@ -29,8 +29,7 @@
</svg>-->
</main>
<hr id="main-page-hr">
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
<script src="./main-page.js"></script>
</html>
7 changes: 3 additions & 4 deletions marketplace.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ include components/head.tmpl.html }}
{{ include Components/head.tmpl.html }}
<link rel="stylesheet" href="./deck.css" type="text/css">
<link rel="stylesheet" href="./marketplace.css" type="text/css">

<title class="site-title">Youyin Marketplace </title>
</head>
<body>
{{ include components/header.tmpl.html }}
{{ include Components/header.tmpl.html }}
<main id="main">
<h1 class="centered">Official decks</h1>
<section id="deck">
Expand All @@ -22,8 +22,7 @@ <h1 class="centered">Community decks</h1>
<section id="deck-community-master">
</section>
</main>
{{ include components/footer.tmpl.html }}
<script src="./index.js"></script>
{{ include Components/footer.tmpl.html }}
</body>
<script src="./marketplace.js"></script>
</html>

0 comments on commit a5b2923

Please sign in to comment.