refactor base
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
cellarspoon 2022-01-13 09:25:39 +01:00
parent 953821b381
commit 5708f7e0d6
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
3 changed files with 76 additions and 93 deletions

View File

@ -1,28 +1,10 @@
{% extends "base.html" %}
{% block content %}
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div id="navbar" class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item">
<a href="/"><strong>services</strong></a>
</div>
<div class="navbar-item">
<a href="/invites"><strong>invites</strong></a>
</div>
</div>
</div>
</nav>
<div class="logo">
<div class="logo">
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
</div>
{% set site_list = ("tv","social","cloud","pen", "books") %}
<div class="columns is-multiline is-gapless is-mobile">
</div>
{% set site_list = ("tv","social","cloud","pen", "books") %}
<div class="columns is-multiline is-gapless is-mobile">
{% for i in site_list %}
<div class="column site is-one-fifth-tablet is-one-third-mobile">
<a href="https://{{i}}.lumbung.space">
@ -31,6 +13,6 @@
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -15,7 +15,26 @@
{% endblock %}
</head>
<body>
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div id="navbar" class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item">
<a href="/"><strong>services</strong></a>
</div>
<div class="navbar-item">
<a href="/invites"><strong>invites</strong></a>
</div>
</div>
</div>
</nav>
<div id="content">{% block content %}{% endblock %}</div>
</div>
<footer class="footer">
<div class="content footer-links">
<span>

View File

@ -1,27 +1,9 @@
{% extends "base.html" %}
{% block content %}
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div id="navbar" class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item">
<a href="/"><strong>services</strong></a>
</div>
<div class="navbar-item">
<a href="/invites"><strong>invites</strong></a>
</div>
</div>
</div>
</nav>
<div class="logo">
<div class="logo">
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
</div>
<div>
</div>
<div>
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
<table>
<tr>
@ -46,5 +28,5 @@
<p>
<button class="button is-ghost"><a href="{{ url_for('invite_keycloak_create') }}">Generate</a></button>
</p>
</div>
</div>
{% endblock %}