Aggiunto codice

This commit is contained in:
2025-09-10 11:03:25 +02:00
commit d61ef2091b
23 changed files with 2611 additions and 0 deletions

109
htdocs/css/home.css Normal file
View File

@@ -0,0 +1,109 @@
/* Base styles */
body {
font-family: Arial, sans-serif;
padding: 15px;
background-color: #f0f2f5;
color: #333;
margin: 0;
}
h1, h2 {
text-align: center;
margin: 10px 0 20px 0;
}
h1 { color: #2c3e50; font-size: 1.8em; }
h2 { color: #34495e; font-size: 1.4em; }
/* Grid layout */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
max-width: 1000px;
margin: 0 auto;
}
/* Card styles */
ul {
list-style: none;
padding: 15px;
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
ul:hover {
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}
li {
margin: 6px 0;
}
li b {
display: block;
margin-bottom: 8px;
font-size: 1em;
color: #1f618d;
}
a {
text-decoration: none;
color: #0066cc;
padding: 5px 8px;
border-radius: 5px;
transition: background-color 0.2s, color 0.2s;
}
a:hover {
background-color: #0066cc;
color: #fff;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
body {
padding: 10px;
font-size: 0.95em;
}
h1 { font-size: 1.5em; }
h2 { font-size: 1.2em; }
.grid {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
}
ul {
padding: 10px;
}
a {
padding: 8px 10px;
font-size: 0.95em;
}
}
@media screen and (max-width: 480px) {
h1 { font-size: 1.3em; }
h2 { font-size: 1em; }
.grid {
grid-template-columns: 1fr; /* single column for small screens */
gap: 10px;
}
ul {
padding: 8px;
}
a {
display: block;
text-align: center;
padding: 10px;
}
}

29
htdocs/css/navbar.css Normal file
View File

@@ -0,0 +1,29 @@
/* Navbar */
.navbar {
background-color: #2c3e50;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
border-radius: 0 0 10px 10px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar a {
color: #fff;
text-decoration: none;
margin-left: 15px;
font-weight: bold;
transition: color 0.2s;
}
.navbar a:hover {
color: #f39c12;
}
.navbar .logo {
font-size: 1.3em;
font-weight: bold;
}

167
htdocs/css/timetable.css Normal file
View File

@@ -0,0 +1,167 @@
body {
font-family: Arial, sans-serif;
padding: 15px;
background-color: #f0f2f5;
color: #333;
margin: 0;
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #2c3e50;
font-size: 1.8em;
}
/* Table styles */
table {
border-collapse: collapse;
width: 100%;
max-width: 1000px;
margin: 0 auto;
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
th, td {
border: 1px solid #ccc;
text-align: center;
padding: 10px;
vertical-align: top;
}
th {
background-color: #e0e0e0;
font-weight: bold;
}
td {
transition: background-color 0.2s;
}
td:hover {
background-color: #f7f7f7;
}
.subject {
font-weight: bold;
color: #1f618d;
}
.teacher {
font-size: 0.9em;
color: #2c3e50;
}
.room {
font-size: 0.8em;
color: #666;
}
/*
@media (max-width: 768px) {
table, thead, tbody, th, td, tr {
display: block;
width: 100%;
}
tr {
margin-bottom: 15px;
border-bottom: 2px solid #ddd;
padding-bottom: 10px;
}
th {
display: none;
}
td {
text-align: left;
padding: 10px 10px 10px 45%;
position: relative;
border: none;
border-bottom: 1px solid #eee;
}
td::before {
position: absolute;
left: 10px;
top: 10px;
width: 40%;
white-space: nowrap;
font-weight: bold;
content: attr(data-label);
}
td:last-child {
border-bottom: 0;
}
}
@media (max-width: 480px) {
body { padding: 10px; }
h1 { font-size: 1.5em; }
td::before { font-size: 0.9em; }
td { padding-left: 50%; }
}
*/
@media (max-width: 768px) {
table, thead, tbody, th, td, tr {
display: block;
width: 100%;
}
tr {
margin-bottom: 15px;
padding: 0;
border-bottom: 2px solid #ddd;
}
th {
display: none;
}
td {
position: relative;
padding-left: 50%;
text-align: left;
border: none;
border-bottom: 1px solid #eee;
min-height: 50px; /* ensures consistent vertical spacing */
box-sizing: border-box;
}
td::before {
position: absolute;
top: 10px;
left: 10px;
width: 40%;
font-weight: bold;
white-space: nowrap;
content: attr(data-label);
}
/* make content stack nicely */
td > .subject,
td > .teacher,
td > .room {
display: block;
margin: 2px 0;
}
td:last-child {
border-bottom: 0;
}
}
/* Extra small screens */
@media (max-width: 480px) {
td {
padding-left: 55%;
}
td::before {
width: 45%;
}
}