Cleans up formatting on about page
This commit is contained in:
parent
b4d9cdbe98
commit
fcc0e0ccb6
|
@ -1,16 +0,0 @@
|
||||||
{% extends 'layout.html' %}
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column block">
|
|
||||||
{% include 'snippets/about.html' %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="column block">
|
|
||||||
<h2 class="title">Code of Conduct</h2>
|
|
||||||
<div class="content">
|
|
||||||
{{ site.code_of_conduct | safe }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
{% extends 'layout.html' %}
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<header class="block has-text-centered">
|
||||||
|
<h1 class="title">{{ site.name }}</h1>
|
||||||
|
<h2 class="subtitle">{{ site.instance_tagline }}</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{% include 'discover/icons.html' %}
|
||||||
|
|
||||||
|
<section class="block">
|
||||||
|
{% include 'snippets/about.html' %}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="block">
|
||||||
|
<h2 class="title">Code of Conduct</h2>
|
||||||
|
<div class="content">
|
||||||
|
{{ site.code_of_conduct | safe }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
|
@ -1,33 +1,14 @@
|
||||||
{% extends 'layout.html' %}
|
{% extends 'layout.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if not request.user.is_authenticated %}
|
|
||||||
<header class="block has-text-centered">
|
<header class="block has-text-centered">
|
||||||
<h1 class="title">{{ site.name }}</h1>
|
<h1 class="title">{{ site.name }}</h1>
|
||||||
<h2 class="subtitle">{{ site.instance_tagline }}</h2>
|
<h2 class="subtitle">{{ site.instance_tagline }}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="level is-mobile">
|
{% include 'discover/icons.html' %}
|
||||||
<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">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">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">Anti-Corporate</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
{% if not request.user.is_authenticated %}
|
||||||
<section class="tile is-ancestor">
|
<section class="tile is-ancestor">
|
||||||
<div class="tile is-7 is-parent">
|
<div class="tile is-7 is-parent">
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
|
@ -49,10 +30,6 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% else %}
|
|
||||||
<div class="block">
|
|
||||||
<h1 class="title has-text-centered">Discover</h1>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="block is-hidden-tablet">
|
<div class="block is-hidden-tablet">
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
<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">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">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">Anti-Corporate</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
|
@ -16,7 +16,7 @@ class About(View):
|
||||||
data = {
|
data = {
|
||||||
'title': 'About',
|
'title': 'About',
|
||||||
}
|
}
|
||||||
return TemplateResponse(request, 'about.html', data)
|
return TemplateResponse(request, 'discover/about.html', data)
|
||||||
|
|
||||||
class Home(View):
|
class Home(View):
|
||||||
''' discover page or home feed depending on auth '''
|
''' discover page or home feed depending on auth '''
|
||||||
|
|
Loading…
Reference in New Issue