This commit is contained in:
zyl 2024-11-04 17:57:51 -08:00
parent 00c90a12d7
commit d8cb447e00
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
47 changed files with 53 additions and 5099 deletions

View file

@ -1,7 +1,3 @@
{% macro badge(badge, url, alt) %}
<a href="{{url}}"><img src="/badges/{{badge}}" alt="{{alt}}"></a>
{% endmacro badge %}
<!DOCTYPE html>
<html lang="en">
@ -10,7 +6,6 @@
<meta name="referrer" content="no-referrer">
<link rel="stylesheet" href="/styles/index.css">
<title>{{ title }}</title>
<script type="text/javascript" src="/js/pet-me.js" defer></script>
{{ head | safe }}
{% for script in scripts %}
<script type="text/javascript" src="{{script}}" defer></script>
@ -23,40 +18,17 @@
<body>
<header class="main-header">
<span>
<a class="name" href="/">zyl's website</a> |
<span class="pronouns">it/puppy(/she)</span>
<a class="name" href="/">webdog</a>
</span>
<span class="spacer"></span>
<a href="/games">games</a> |
<a href="/projects">my projects</a> |
<a href="/blog/">blog</a> |
<a href="/images/">images</a> |
<a href="/pay-me">pay me!</a> |
<a href="https://github.com/zyllian/zyllian.github.io" rel="noopener noreferrer">source</a>
<a href="https://github.com/zyllian/webdog" rel="noopener noreferrer">github</a>
</header>
<div id="content">
<main class="page">
{% block content %}{{ page | safe }}{% endblock content %}
</main>
</div>
<div class="flex-spacer"></div>
<hr />
<footer id="footer">
bark bark awruff :3
<div class="badges">
{{ self::badge(badge="transbian.png", url="https://badge.les.bi", alt="transgender and lesbian flags") }}
</div>
</footer>
<div id="pet-counter">
<noscript>enable js to pet me :3</noscript>
<div class="internal">
<span class="count">???</span> pets
<button>pet me :3</button>
</div>
</div>
</body>
</html>

View file

@ -1,31 +0,0 @@
{% macro resource(id, name) %}
<span class="resource">{{name}}</span><span id={{id}}>0</span> <span>(<span id="{{id}}-per-second">0</span>/s)</span>
{% endmacro resource %}
{% macro tool(id, name, description) %}
<div class="tool" data-tool={{id}}>
<p class="name">{{name}} (<span class="count">0</span>, lvl <span class="level">1</span>)</p>
<p class="description">{{description}}</p>
<button class="buy">buy</button> <button class="upgrade">upgrade</button>
</div>
{% endmacro tool %}
<div id="click">
<p>WARNING: no save mechanic is implemented yet!!</p>
<h1>click</h1>
<noscript>
<h1>javascript is required for the clicker game!!</h1>
</noscript>
<div class="resources">
{{ self::resource(id="pets", name="pets") }}
{{ self::resource(id="barks", name="barks") }}
{{ self::resource(id="kisses", name="kisses") }}
</div>
<button id="barker">bark</button>
<div class="tools">
{{ self::tool(id="hand", name="hand", description="don't bite the hand that pets you") }}
{{ self::tool(id="puppy", name="puppy", description="arf arf wruff :3") }}
{{ self::tool(id="foodBowl", name="food bowl", description="more food for more barking") }}
{{ self::tool(id="kisser", name="kisser wow", description="someone to kiss all those poor puppies,,") }}
</div>
</div>

View file

@ -1,13 +0,0 @@
<div class="image-full">
<h1 class="title">{{title}}</h1>
<span class="timestamp">published {{timestamp}}</span>
<img class="image-actual" src="{{cdn_file}}" alt="{{alt}}">
{{ content | safe }}
<p><a href="{{cdn_file}}">view full size image</a></p>
<h3 class="tags-title">tags</h3>
<div class="image-tags">
{% for tag in tags %}
<a class="tag" href="/i/tag/{{tag}}/">{{tag}}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</div>
</div>

View file

@ -1,23 +0,0 @@
{% if tag %}
<h1>images tagged {{tag}}</h1>
<p><a href="/images/">view all images</a></p>
{% else %}
<h1>images</h1>
<p><a href="/i/tags">view image tags</a></p>
<p><a href="rss.xml">rss feed</a></p>
{% endif %}
<h3>page {{page}}/{{page_max}}</h3>
{% if previous %}
<a href="./{{previous}}">previous page</a>
{% endif %}
{% if next %}
<a href="./{{next}}">next page</a>
{% endif %}
<div class="images-list">
{% for resource in resources %}
<a class="image" href="/i/{{resource.id}}">
<img class="image-actual" src="{{resource.cdn_file}}" alt="{{resource.alt}}">
<span class="title">{{resource.title}}</span>
</a>
{% endfor %}
</div>

View file

@ -1 +0,0 @@
<img src="{{cdn_file}}" alt="{{alt}}">