moviewyrm/bookwyrm/templates/landing/landing.html

57 lines
1.9 KiB
HTML
Raw Normal View History

2021-09-18 22:56:29 +00:00
{% extends 'landing/layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% load cache %}
2022-01-18 20:28:59 +00:00
{% load landing_page_tags %}
2022-01-09 21:04:41 +00:00
2021-02-27 19:53:36 +00:00
{% block panel %}
2021-01-03 19:10:04 +00:00
2021-01-03 20:53:51 +00:00
<div class="block is-hidden-tablet">
2021-02-28 02:48:10 +00:00
<h2 class="title has-text-centered">{% trans "Recent Books" %}</h2>
2021-01-03 20:53:51 +00:00
</div>
2022-01-09 21:00:02 +00:00
{% get_current_language as LANGUAGE_CODE %}
{% cache 60 * 60 LANGUAGE_CODE %}
2022-01-09 21:04:41 +00:00
{% get_landing_books as books %}
2021-01-03 19:10:04 +00:00
<section class="tile is-ancestor">
<div class="tile is-vertical is-6">
2021-01-03 19:10:04 +00:00
<div class="tile is-parent">
<div class="tile is-child box has-background-secondary">
{% include 'landing/large-book.html' with book=books.0 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
<div class="tile">
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-secondary">
{% include 'landing/small-book.html' with book=books.1 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-secondary">
{% include 'landing/small-book.html' with book=books.2 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
</div>
</div>
<div class="tile is-vertical is-6">
2021-01-03 19:10:04 +00:00
<div class="tile">
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-secondary">
{% include 'landing/small-book.html' with book=books.3 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
<div class="tile is-parent is-6">
<div class="tile is-child box has-background-secondary">
{% include 'landing/small-book.html' with book=books.4 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
</div>
<div class="tile is-parent">
<div class="tile is-child box has-background-secondary">
{% include 'landing/large-book.html' with book=books.5 %}
2021-01-03 19:10:04 +00:00
</div>
</div>
</div>
</section>
{% endcache %}
2021-01-03 19:10:04 +00:00
{% endblock %}