[TASK] finalize notification styling

This commit is contained in:
Marie Birner
2024-04-19 11:25:25 +02:00
parent 30756ad4aa
commit c528b8831a
2 changed files with 24 additions and 24 deletions

View File

@ -2,7 +2,7 @@
{% extends "base" %}
{% block content %}
<div class="max-w-screen-lg w-full">
<h1 class="h1">Ruderassistent</h1>
<h1 class="h1">Ruder<wbr/>assistent</h1>
<div class="grid gap-3 my-5">
<div class="m-auto">
<a href="/planned"
@ -11,7 +11,7 @@
<span class="text-xl px-3">Geplante Ausfahrten</span>
</a>
</div>
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
<div id="notification" class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5"
role="alert">
<h2 class="h2">Nachrichten</h2>
<div class="divide-y">
@ -27,7 +27,7 @@
<div>
{% if not notification.read_at %}
<a href="/notification/{{ notification.id }}/read" class="inline-block">
<button class="btn btn-alert bg-red-100 dark:bg-red-900" type="button">
<button class="btn btn-primary" type="button">
&#10003;
<span class="sr-only">Notification gelesen</span>
</button>
@ -38,8 +38,8 @@
{% endif %}
{% endfor %}
</div>
<details class="py-3 bg-gray-200 dark:bg-primary-950 rounded-b-md">
<summary class="px-3">Vergangene Nachrichten (14 Tage)</summary>
<details class="py-3 border-t rounded-b-md">
<summary class="px-3 cursor-pointer">Vergangene Nachrichten (14 Tage)</summary>
<div class="divide-y text-sm">
{% for notification in notifications %}
{% if notification.read_at %}