2021-02-27 19:53:36 +00:00
|
|
|
{% extends 'layout.html' %}
|
2021-02-27 21:43:17 +00:00
|
|
|
{% load i18n %}
|
2021-02-27 19:53:36 +00:00
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
|
2021-02-28 18:00:36 +00:00
|
|
|
{% block title %}{% trans "Welcome" %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-02-27 19:53:36 +00:00
|
|
|
<header class="block has-text-centered">
|
|
|
|
<h1 class="title">{{ site.name }}</h1>
|
|
|
|
<h2 class="subtitle">{{ site.instance_tagline }}</h2>
|
|
|
|
</header>
|
|
|
|
|
2021-02-27 21:43:17 +00:00
|
|
|
<section class="level is-mobile">
|
|
|
|
<div class="level-item has-text-centered">
|
|
|
|
<div>
|
|
|
|
<p class="title has-text-weight-normal"><span class="icon icon-graphic-paperplane"></span></p>
|
|
|
|
<p class="heading">{% trans "Decentralized" %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="level-item has-text-centered">
|
|
|
|
<div>
|
|
|
|
<p class="title has-text-weight-normal"><span class="icon icon-graphic-heart"></span></p>
|
|
|
|
<p class="heading">{% trans "Friendly" %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="level-item has-text-centered">
|
|
|
|
<div>
|
|
|
|
<p class="title has-text-weight-normal"><span class="icon icon-graphic-banknote"></span></p>
|
|
|
|
<p class="heading">{% trans "Anti-Corporate" %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-02-27 19:53:36 +00:00
|
|
|
|
|
|
|
<section class="tile is-ancestor">
|
|
|
|
<div class="tile is-7 is-parent">
|
|
|
|
<div class="tile is-child box">
|
|
|
|
{% include 'snippets/about.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tile is-5 is-parent">
|
|
|
|
{% if not request.user.is_authenticated %}
|
|
|
|
<div class="tile is-child box has-background-primary-light content">
|
|
|
|
{% if site.allow_registration %}
|
2021-02-27 21:43:17 +00:00
|
|
|
<h2 class="title">{% blocktrans with name=site.name %}Join {{ name }}{% endblocktrans %}</h2>
|
2021-02-27 19:53:36 +00:00
|
|
|
<form name="register" method="post" action="/register">
|
|
|
|
{% include 'snippets/register_form.html' %}
|
|
|
|
</form>
|
|
|
|
{% else %}
|
2021-02-27 21:43:17 +00:00
|
|
|
<h2 class="title">{% trans "This instance is closed" %}</h2>
|
2021-02-27 19:53:36 +00:00
|
|
|
<p>{{ site.registration_closed_text | safe}}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="tile is-child box has-background-white-bis">
|
2021-02-27 21:43:17 +00:00
|
|
|
<h2 class="title is-4">{% trans "Your Account" %}</h2>
|
|
|
|
{% include 'user/user_preview.html' with user=request.user %}
|
2021-02-27 19:53:36 +00:00
|
|
|
<div class="box content">
|
2021-02-27 21:43:17 +00:00
|
|
|
{% if request.user.summary %}
|
|
|
|
{{ request.user.summary | to_markdown | safe }}
|
2021-02-27 19:53:36 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% block panel %}{% endblock %}
|
|
|
|
|
|
|
|
{% endblock %}
|