mirror of
https://github.com/skidoodle/iphistory.git
synced 2025-02-15 08:29:16 +01:00
chore: Update Dockerfile and main.go for serving web content from the 'web' directory
This commit is contained in:
parent
23d176dcc7
commit
9b9d9ba192
6 changed files with 216 additions and 225 deletions
108
web/style.css
Normal file
108
web/style.css
Normal file
|
@ -0,0 +1,108 @@
|
|||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #222;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.controls {
|
||||
width: 90%;
|
||||
max-width: 800px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.export {
|
||||
background-color: #007bff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.export:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
.search-bar {
|
||||
flex-grow: 1;
|
||||
margin-left: 20px;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #444;
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
max-width: 100%;
|
||||
}
|
||||
table {
|
||||
width: 90%;
|
||||
max-width: 800px;
|
||||
border-collapse: collapse;
|
||||
margin: 0 auto 20px;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
||||
background-color: #333;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #444;
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
th {
|
||||
cursor: pointer;
|
||||
background-color: #007bff;
|
||||
color: #fff;
|
||||
}
|
||||
th.sort-asc::after {
|
||||
content: " \u2191";
|
||||
color: #fff;
|
||||
}
|
||||
th.sort-desc::after {
|
||||
content: " \u2193";
|
||||
color: #fff;
|
||||
}
|
||||
tbody tr:nth-child(even) {
|
||||
background-color: #444;
|
||||
}
|
||||
.pagination {
|
||||
margin: 20px;
|
||||
}
|
||||
.pagination button {
|
||||
background-color: #007bff;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
border-radius: 5px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
.pagination button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
.pagination button:disabled {
|
||||
background-color: #555;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
th, td {
|
||||
padding: 8px;
|
||||
}
|
||||
.export, .pagination button {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.search-bar {
|
||||
margin-left: 10px;
|
||||
padding: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue