Prva verzija mini web serverja (flask). Hvala, Github Copilot.

This commit is contained in:
2026-03-05 18:15:27 +01:00
parent 9e32e58c4c
commit 6ed45d2ebc
13 changed files with 1164 additions and 5 deletions

153
web/static/styles.css Normal file
View File

@@ -0,0 +1,153 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Times New Roman', serif;
background-color: #0a0a0a;
color: #ffffff;
display: flex;
flex-direction: column;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
}
/* Gornja vrstica - Vnos pesmi */
.top-bar {
background-color: #1a1a1a;
padding: 20px;
border-bottom: 2px solid #333;
display: flex;
gap: 15px;
align-items: center;
flex-wrap: wrap;
}
.top-bar label {
font-size: 16px;
font-weight: bold;
}
.top-bar input {
padding: 10px 15px;
font-size: 16px;
background-color: #2a2a2a;
border: 1px solid #444;
color: #ffffff;
border-radius: 4px;
width: 100px;
}
.top-bar button {
padding: 10px 20px;
font-size: 16px;
background-color: #3a7ca5;
border: none;
color: white;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
}
.top-bar button:hover {
background-color: #2d6183;
}
.caps-toggle {
padding: 10px 15px;
font-size: 14px;
background-color: #4a4a4a;
border: 1px solid #666;
color: #ffffff;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
}
.caps-toggle.active {
background-color: #3a7ca5;
}
/* Sredenska vrstica - Prikaz besedila */
.content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
overflow-y: auto;
background-color: #000000;
}
.lyrics-display {
text-align: center;
font-size: 32px;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
max-width: 90%;
}
.status-message {
color: #aaa;
font-size: 24px;
}
/* Donja vrstica - Navigacijski gumbi */
.bottom-bar {
background-color: #1a1a1a;
padding: 20px;
border-top: 2px solid #333;
display: flex;
justify-content: center;
gap: 20px;
align-items: center;
}
.bottom-bar button {
padding: 15px 40px;
font-size: 18px;
border: none;
color: white;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
min-width: 150px;
}
.btn-nav {
background-color: #556b79;
}
.btn-nav:hover {
background-color: #3d4a52;
}
.btn-nav:disabled {
background-color: #2a2a2a;
cursor: not-allowed;
opacity: 0.5;
}
.btn-dark {
background-color: #8b4513;
min-width: 150px;
}
.btn-dark:hover {
background-color: #6b3410;
}
.page-info {
color: #999;
font-size: 16px;
min-width: 60px;
}