2021-01-03 19:10:04 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% block content %}
|
|
|
|
|
2021-02-02 18:13:35 +00:00
|
|
|
<header class="block has-text-centered">
|
|
|
|
<h1 class="title">{{ site.name }}</h1>
|
|
|
|
<h2 class="subtitle">{{ site.instance_tagline }}</h2>
|
2021-01-31 14:52:18 +00:00
|
|
|
</header>
|
|
|
|
|
2021-02-24 03:58:04 +00:00
|
|
|
{% include 'discover/icons.html' %}
|
2021-01-03 19:10:04 +00:00
|
|
|
|
2021-02-24 03:58:04 +00:00
|
|
|
{% if not request.user.is_authenticated %}
|
2021-01-03 19:10:04 +00:00
|
|
|
<section class="tile is-ancestor">
|
|
|
|
<div class="tile is-7 is-parent">
|
2021-01-03 23:41:20 +00:00
|
|
|
<div class="tile is-child box">
|
2021-01-03 19:10:04 +00:00
|
|
|
{% include 'snippets/about.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-5 is-parent">
|
2021-01-05 18:46:07 +00:00
|
|
|
<div class="tile is-child box has-background-primary-light content">
|
2021-01-03 19:10:04 +00:00
|
|
|
{% if site.allow_registration %}
|
|
|
|
<h2 class="title">Join {{ site.name }}</h2>
|
2021-01-12 16:19:08 +00:00
|
|
|
<form name="register" method="post" action="/register">
|
2021-01-03 19:10:04 +00:00
|
|
|
{% include 'snippets/register_form.html' %}
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
<h2 class="title">This instance is closed</h2>
|
2021-01-05 18:46:07 +00:00
|
|
|
<p>{{ site.registration_closed_text | safe}}</p>
|
2021-01-03 19:10:04 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-01-31 14:52:18 +00:00
|
|
|
|
2021-01-03 22:31:32 +00:00
|
|
|
{% endif %}
|
2021-01-03 19:10:04 +00:00
|
|
|
|
2021-01-03 20:53:51 +00:00
|
|
|
<div class="block is-hidden-tablet">
|
|
|
|
<h2 class="title has-text-centered">Recent Books</h2>
|
|
|
|
</div>
|
|
|
|
|
2021-01-03 19:10:04 +00:00
|
|
|
<section class="tile is-ancestor">
|
|
|
|
<div class="tile is-vertical">
|
|
|
|
<div class="tile is-parent">
|
|
|
|
<div class="tile is-child box has-background-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/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-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/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-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/small-book.html' with book=books.2 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-vertical">
|
|
|
|
<div class="tile">
|
|
|
|
<div class="tile is-parent is-6">
|
|
|
|
<div class="tile is-child box has-background-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/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-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/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-white-ter">
|
2021-02-23 22:06:08 +00:00
|
|
|
{% include 'discover/large-book.html' with book=books.5 %}
|
2021-01-03 19:10:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endblock %}
|