1

refine index page + outsource styling

This commit is contained in:
Christoph
2020-04-10 01:36:53 +02:00
parent 990306406a
commit 2cda0f05a9
2 changed files with 86 additions and 33 deletions

View File

@ -3,9 +3,10 @@
th:replace="~{mopslayout :: html(name='Gruppenbildung', headcontent=~{:: headcontent}, navigation=~{:: navigation}, bodycontent=~{:: bodycontent})}">
<head>
<meta charset="utf-8">
<title>Eigene Gruppen</title>
<title>Meine Gruppen</title>
<th:block th:fragment="headcontent">
<!-- Links, Skripts, Styles hier einfügen! -->
<link th:href="@{/style.css}" href="../static/style.css" rel="stylesheet"/>
</th:block>
</head>
<body>
@ -26,38 +27,18 @@
</header>
<main th:fragment="bodycontent">
<div class="container-fluid">
<div class="row">
<div class="col-10">
<h1>Meine Gruppen</h1>
<form method="get" th:action="@{/}">
<h3 style="color: dodgerblue; font-weight: bold; font-optical-sizing: auto;">
<small style="font-weight: normal; color: black;">Mitglied in </small>
<small style="font-weight: bold; color: black;"
th:text="${gruppen.size()}"></small>
<small style="font-weight: normal; color: black;"
th:if='${gruppen.size()==1}'> Gruppe.</small>
<small style="font-weight: normal; color: black;"
th:if='${gruppen.size()!=1}'> Gruppen.</small>
</h3>
<br>
<div th:each="gruppe: ${gruppen}">
<div class="shadow-sm p-4"
style="border: none; border-radius: 5px; background: aliceblue;">
<h3 style="color: dodgerblue; font-weight: bold; font-optical-sizing: auto; overflow-wrap: break-word;">
<span class="badge badge-pill badge-success"
style="background: lightseagreen; margin-right: 25px; float: right;"
th:if='${gruppe.getType() == lecture}'>Veranstaltung</span>
<a th:href="@{/gruppen2/details/{id}(id=${gruppe.getId()})}"
th:text="${gruppe.getTitle()}"></a>
</h3>
<div class="shadow-sm p-4" style="background: white;">
<p style="overflow-wrap: break-word; font-optical-sizing: auto;"
th:text="${#strings.abbreviate(gruppe.getDescription(),300)}"></p>
</div>
</div>
<br>
</div>
</form>
<h1 class="def-cursor">Meine Gruppen</h1>
<div class="mt-3" th:each="gruppe: ${gruppen}">
<div class="con-div p-2">
<span class="con-h">
<a th:href="@{/gruppen2/details/{id}(id=${gruppe.getId()})}"
th:text="${gruppe.getTitle()}"></a>
<span class="badge badge-pill badge-success badge-ver float-r"
th:if='${gruppe.getType() == lecture}'>Veranstaltung</span>
</span>
<div class="con-p p-2">
<span th:text="${#strings.abbreviate(gruppe.getDescription(),300)}"></span>
</div>
</div>
</div>
</div>