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" %}
{% block title %}Help!{% endblock %}
{% block navbar %}
<a class="navbar-item" href="{% url 'register' %}">Anmelden</a>
{% endblock %}
{% block body %}
{% if helper %}
Hallo {{ helper.name }}
{% else %}
<a href="{% url 'register' %}">Anmelden</a>
<section class="hero">
<div class="container">
<div class="hero-body">
<h1 class="title">Hallo {{ helper.name }}!</h1>
</div>
</div>
</section>
{% endif %}
<div id="content">
<section class="section">
<div class="container">
{% block content %}{% endblock %}
</div>
</section>
{% endblock %}

View File

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

View File

@ -1,13 +1,16 @@
{% extends "base.html" %}
{% 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 %}
<nav>
<a href="{% url 'team:shift_overview' %}">Schichtuebersicht</a>
<a href="{% url 'team:shift_all' %}">Alle Schichten</a>
</nav>
<hr>
<div id="content">
<section class="section">
<div class="container">
{% block content %}{% endblock %}
</div>
</section>
{% 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>
<html lang="de">
<head>
@ -5,8 +6,18 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{% block title %}Help!{% endblock %}</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="stylesheet" href="{% static 'bulma.min.css' %}">
</head>
<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 %}
{% endblock %}
</body>