2
0
Fork 0

Add pre-built bulma

This commit is contained in:
Luca 2022-04-15 17:27:00 +02:00
parent ff481a41c1
commit 0e3db29154
5 changed files with 45 additions and 15 deletions

View File

@ -1,13 +1,24 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Help!{% endblock %} {% block title %}Help!{% endblock %}
{% block navbar %}
<a class="navbar-item" href="{% url 'register' %}">Anmelden</a>
{% endblock %}
{% block body %} {% block body %}
{% if helper %} {% if helper %}
Hallo {{ helper.name }} <section class="hero">
{% else %} <div class="container">
<a href="{% url 'register' %}">Anmelden</a> <div class="hero-body">
<h1 class="title">Hallo {{ helper.name }}!</h1>
</div>
</div>
</section>
{% endif %} {% endif %}
<div id="content"> <section class="section">
<div class="container">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</section>
{% endblock %} {% endblock %}

View File

@ -127,6 +127,10 @@ USE_TZ = True
STATIC_ROOT = "/opt/shiftregister/static" STATIC_ROOT = "/opt/shiftregister/static"
STATIC_URL = "static/" STATIC_URL = "static/"
STATICFILES_DIRS = [
Path(BASE_DIR, Path("static")),
]
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field

View File

@ -1,13 +1,16 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Team{% endblock %} {% block title %}Team{% endblock %}
{% block navbar %}
<a class="navbar-item" href="{% url 'team:shift_overview' %}">Schichtübersicht</a>
<a class="navbar-item" href="{% url 'team:shift_all' %}">Alle Schichten</a>
{% endblock %}
{% block body %} {% block body %}
<nav> <section class="section">
<a href="{% url 'team:shift_overview' %}">Schichtuebersicht</a> <div class="container">
<a href="{% url 'team:shift_all' %}">Alle Schichten</a>
</nav>
<hr>
<div id="content">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</section>
{% endblock %} {% endblock %}

1
static/bulma.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
{% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
@ -5,8 +6,18 @@
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>{% block title %}Help!{% endblock %}</title> <title>{% block title %}Help!{% endblock %}</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo="> <link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="stylesheet" href="{% static 'bulma.min.css' %}">
</head> </head>
<body> <body>
<nav class="navbar">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item has-text-weight-bold" href="{% url 'index' %}">Helfer*innen</a>
{% block navbar %}
{% endblock navbar %}
</div>
</div>
</nav>
{% block body %} {% block body %}
{% endblock %} {% endblock %}
</body> </body>