Initial commit
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2026-02-04 14:14:28 +01:00
commit 94d8e201f5
10 changed files with 909 additions and 0 deletions

197
static/styles.css Normal file
View file

@ -0,0 +1,197 @@
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header styles */
header {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
header h1 {
color: #2c3e50;
margin-bottom: 10px;
}
.status-bar {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9em;
color: #666;
}
/* Controls */
.controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-primary {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.btn-primary:hover {
background-color: #2980b9;
}
.auto-refresh label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
/* Table styles */
.station-table-container {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background-color: #34495e;
color: white;
text-align: left;
padding: 12px 15px;
font-weight: 600;
}
td {
padding: 12px 15px;
border-bottom: 1px solid #ecf0f1;
}
tr:last-child td {
border-bottom: none;
}
tr:hover {
background-color: #f8f9fa;
}
/* Status colors */
.status-new {
background-color: #e74c3c;
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: bold;
text-align: center;
}
.status-medium {
background-color: #f39c12;
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: bold;
text-align: center;
}
.status-established {
background-color: #27ae60;
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: bold;
text-align: center;
}
/* Loading and error states */
.loading {
text-align: center;
padding: 40px;
color: #7f8c8d;
font-style: italic;
}
.error {
background-color: #fadbd8;
color: #c0392b;
padding: 15px;
border-radius: 4px;
margin: 20px 0;
text-align: center;
}
.hidden {
display: none;
}
/* Footer */
footer {
text-align: center;
margin-top: 30px;
padding: 20px;
color: #7f8c8d;
font-size: 0.9em;
}
/* Responsive design */
@media (max-width: 768px) {
.container {
padding: 10px;
}
table {
font-size: 0.9em;
}
th, td {
padding: 8px 10px;
}
.controls {
flex-direction: column;
gap: 10px;
text-align: center;
}
.status-bar {
flex-direction: column;
gap: 5px;
text-align: center;
}
}