VPN-Session-History-FastAPI/templates/base.html
2025-04-10 21:40:30 +02:00

170 lines
No EOL
4.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>VPN Log Viewer</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
h1, h2, h3 {
color: #0066cc;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
padding: 8px 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
a {
color: #0066cc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.filter-section {
margin: 20px 0;
padding: 10px;
background-color: #f8f8f8;
border-radius: 5px;
}
.filter-form {
display: flex;
flex-direction: column;
}
.filter-row {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: flex-end;
}
.filter-item {
display: flex;
flex-direction: column;
min-width: 200px;
}
.filter-item label {
margin-bottom: 5px;
font-weight: bold;
}
.filter-item select, .filter-item input {
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
input[type="datetime-local"] {
min-width: 220px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
}
.checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
font-weight: normal;
margin-top: 10px;
}
.checkbox-label input[type="checkbox"] {
margin-right: 8px;
cursor: pointer;
}
.filter-button, .reset-button {
padding: 8px 16px;
background-color: #0066cc;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
display: inline-block;
text-align: center;
}
.reset-button {
background-color: #666;
}
.filter-button:hover, .reset-button:hover {
opacity: 0.9;
}
.table-responsive {
overflow-x: auto;
max-width: 100%;
}
.log-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9em;
}
.log-table th {
position: sticky;
top: 0;
background-color: #f2f2f2;
z-index: 10;
}
.api-info {
margin: 15px 0;
padding: 15px;
background-color: #f8f8f8;
border-radius: 5px;
}
.api-info h3 {
margin-top: 0;
margin-bottom: 10px;
}
.api-info p {
margin: 5px 0;
}
.navigation-links {
margin: 15px 0;
}
.nav-link {
display: inline-block;
padding: 8px 16px;
background-color: #0066cc;
color: white;
border-radius: 4px;
text-decoration: none;
margin-right: 10px;
}
.nav-link:hover {
background-color: #0055aa;
text-decoration: none;
}
pre {
background-color: #f8f8f8;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
white-space: pre-wrap;
font-family: monospace;
}
</style>
</head>
<body>
<header>
<h1><a href="/">VPN Log Viewer</a></h1>
</header>
<main>
{% block content %}{% endblock %}
</main>
<footer>
<p><small>VPN Log Viewer - Logs updated every 5 minutes</small></p>
</footer>
</body>
</html>