moviewyrm/bookwyrm/templates/landing/layout.html

98 lines
3.8 KiB
HTML
Raw Normal View History

2021-02-27 19:53:36 +00:00
{% extends 'layout.html' %}
{% load i18n %}
2021-05-11 22:14:42 +00:00
{% load markdown %}
2021-02-27 19:53: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>
<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
2022-01-06 05:42:41 +00:00
{% block about_panel %}
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">
2021-09-18 22:42:48 +00:00
<h2 class="title">
{% if site.allow_registration %}
{% blocktrans with name=site.name %}Join {{ name }}{% endblocktrans %}
{% elif site.allow_invite_requests %}
{% trans "Request an Invitation" %}
{% else %}
{% blocktrans with name=site.name%}{{ name}} registration is closed{% endblocktrans %}
{% endif %}
</h2>
2021-03-21 02:14:41 +00:00
2021-09-18 22:42:48 +00:00
{% if site.allow_registration %}
<form name="register" method="post" action="/register">
{% include 'snippets/register_form.html' %}
</form>
{% elif site.allow_invite_requests %}
{% if request_received %}
<p>
{% trans "Thank you! Your request has been received." %}
</p>
{% else %}
2021-09-18 23:04:11 +00:00
<p>{{ site.invite_request_text }}</p>
2021-09-18 22:42:48 +00:00
<form name="invite-request" action="{% url 'invite-request' %}" method="post">
{% csrf_token %}
<div class="block">
<label for="id_request_email" class="label">{% trans "Email address:" %}</label>
2021-11-29 22:29:56 +00:00
<input type="email" name="email" maxlength="255" class="input" required="" id="id_request_email" aria-describedby="desc_request_email">
{% include 'snippets/form_errors.html' with errors_list=request_form.email.errors id="desc_request_email" %}
2021-09-18 22:42:48 +00:00
</div>
<button type="submit" class="button is-link">{% trans "Submit" %}</button>
</form>
{% endif %}
2021-03-21 02:14:41 +00:00
{% else %}
2021-09-18 22:42:48 +00:00
<p>{{ site.registration_closed_text|safe}}</p>
2021-02-27 19:53:36 +00:00
{% endif %}
</div>
{% else %}
<div class="tile is-child box has-background-tertiary">
<h2 class="title is-4">{% trans "Your Account" %}</h2>
{% include 'user/user_preview.html' with user=request.user %}
{% if request.user.summary %}
2021-02-27 19:53:36 +00:00
<div class="box content">
2021-05-11 22:14:42 +00:00
{{ request.user.summary|to_markdown|safe }}
2021-02-27 19:53:36 +00:00
</div>
{% endif %}
2021-02-27 19:53:36 +00:00
</div>
{% endif %}
</div>
</section>
2022-01-06 05:42:41 +00:00
{% endblock %}
2021-02-27 19:53:36 +00:00
{% block panel %}{% endblock %}
{% endblock %}