get ducked!

This commit is contained in:
2023-04-23 21:26:35 -05:00
parent 726ff889c3
commit 2925a7c8e9
3 changed files with 35 additions and 17 deletions

View File

@@ -22,5 +22,11 @@
"title": "Andrew Simonson - Bookshelf", "title": "Andrew Simonson - Bookshelf",
"description": "Some of the books I've read", "description": "Some of the books I've read",
"canonical": "/books" "canonical": "/books"
},
"duck": {
"template": "duck.html",
"title":"You've been ducked!",
"description": "Face it, you've been ducked",
"canonical": "/duck"
} }
} }

10
src/templates/duck.html Normal file
View File

@@ -0,0 +1,10 @@
{% block content %}
<div class="foreground">
<h2>What the duck?</h2>
<img
alt="mega spinney duck"
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
/>
<h3>Stop disturbing the duck, can't you see he's busy spinning?</h3>
</div>
{% endblock %}

View File

@@ -22,23 +22,25 @@
{% from 'partials/bookshelf.html' import bookshelf %} {{ {% from 'partials/bookshelf.html' import bookshelf %} {{
bookshelf(var.books) }} bookshelf(var.books) }}
<br /> <br />
<div class="flex"> <a href="/duck">
<img <div class="flex">
alt="duck spinning" <img
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" alt="duck spinning"
class="smallImg" src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
/> class="smallImg"
<img />
alt="duck spinning" <img
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" alt="duck spinning"
class="smallImg" src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
/> class="smallImg"
<img />
alt="duck spinning" <img
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" alt="duck spinning"
class="smallImg" src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
/> class="smallImg"
</div> />
</div>
</a>
</div> </div>
</div> </div>
</div> </div>