re-organize repo and add dockerfile.

This commit is contained in:
Michael Lehmann
2025-02-18 23:21:57 +01:00
parent 977475806c
commit 4042ea2147
16 changed files with 43 additions and 1 deletions

BIN
app/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

222
app/static/styles.css Normal file
View File

@@ -0,0 +1,222 @@
/* Grundlegender Reset */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Body-Styles */
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f8f8;
padding: 20px;
}
/* Container für zentrierten Inhalt */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
/* Header */
header {
background-color: #fff;
border-bottom: 1px solid #e0e0e0;
padding: 20px 0;
margin-bottom: 30px;
text-align: center;
}
header h1 {
margin-bottom: 10px;
}
header nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 20px;
}
header nav ul li a {
text-decoration: none;
color: #555;
font-weight: 500;
padding: 8px 12px;
transition: background-color 0.3s, color 0.3s;
}
header nav ul li a:hover {
background-color: #007BFF;
color: #fff;
border-radius: 4px;
}
/* Main Bereich */
main {
background-color: #fff;
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
}
/* Überschriften */
h2,
h3 {
margin-bottom: 15px;
color: #222;
}
/* Gruppen-Karten */
.group-card {
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
transition: box-shadow 0.3s;
}
.group-card:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
/* Gruppen-Header */
.group-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}
.group-image {
width: 50px;
height: 50px;
}
/* Liste der Glühbirnen */
.bulb-list {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.bulb {
flex: 1 1 200px;
background-color: #f0f0f0;
border-radius: 8px;
padding: 15px;
text-align: center;
transition: transform 0.3s;
}
.bulb:hover {
transform: translateY(-5px);
}
.bulb-info p {
margin-bottom: 10px;
font-weight: bold;
}
/* Statusbild der Glühbirne */
.bulb-status-image img {
width: 60px;
height: 60px;
}
/* Fehlermeldung */
.bulb-error p {
margin-top: 10px;
color: red;
font-size: 0.9em;
}
/* Footer */
footer {
text-align: center;
padding: 20px 0;
border-top: 1px solid #e0e0e0;
color: #777;
}
/* Responsive Anpassen */
@media (max-width: 768px) {
header nav ul {
flex-direction: column;
gap: 10px;
}
main {
padding: 20px;
}
.bulb-list {
flex-direction: column;
}
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked+.slider {
background-color: #2196F3;
}
input:checked+.slider:before {
transform: translateX(26px);
}