Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add proper spacing to simplified logs table headers #19

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 155 additions & 1 deletion flask_logging_server/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,163 @@ nav ul li a:hover {

footer {
background-color: #000000;
padding: 10px;
padding: 20px;
color: white;
margin-top: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
position: relative;
z-index: 1;
width: 100%;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}

.footer-links {
display: flex;
gap: 20px;
}

.footer-links a {
color: white;
text-decoration: none;
transition: opacity 0.3s ease;
}

.footer-links a:hover {
opacity: 0.8;
}

.footer-version {
color: #ffffff80;
}

#logs-container {
padding: 20px;
background-color: white;
margin: 20px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
overflow-x: auto;
overflow-y: auto;
max-height: 80vh;
}

#logs-table {
width: 100%;
margin-top: 20px;
border-collapse: separate;
border-spacing: 4px;
table-layout: fixed;
}

#logs-table th {
padding: 18px 30px;
text-align: center;
background: linear-gradient(45deg, #2c3e50, #3498db);
border: 3px solid #2980b9;
white-space: nowrap;
position: sticky;
top: 0;
z-index: 1000;
font-weight: 800;
font-size: 16px;
letter-spacing: 1px;
color: #ffffff;
min-width: 120px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
text-transform: uppercase;
margin: 0 4px;
border-radius: 6px 6px 0 0;
transition: all 0.3s ease;
}

#logs-table th:hover {
background: linear-gradient(45deg, #3498db, #2c3e50);
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#logs-table td {
padding: 12px 25px;
border: 2px solid #e0e0e0;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
font-size: 14px;
}

#logs-table tbody tr:nth-child(even) {
background-color: #f8fafc;
}

#logs-table tbody tr:hover {
background-color: #e3f2fd;
transition: background-color 0.3s ease;
}

#logs-table th:not(:last-child),
#logs-table td:not(:last-child) {
border-right: 3px solid #2980b9;
}

/* Additional spacing between columns */
#logs-table th::after {
content: '';
position: absolute;
right: -4px;
top: 0;
height: 100%;
width: 4px;
background-color: white;
}



@media (max-width: 768px) {
.footer-content {
flex-direction: column;
gap: 15px;
text-align: center;
}

.footer-links {
flex-wrap: wrap;
justify-content: center;
}
}


#logs-table th {
padding: 10px 15px;
white-space: nowrap;
position: sticky;
top: 0;
background-color: #f4f4f4;
z-index: 1;
border-right: 1px solid #ddd;
font-weight: bold;
min-width: fit-content;
}

#logs-table {
table-layout: auto;
min-width: 100%;
border-spacing: 0;
border-collapse: separate;
}

#logs-container {
overflow-x: auto;
padding: 20px;
background-color: white;
margin: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
Expand Down
9 changes: 8 additions & 1 deletion flask_logging_server/templates/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ <h1>Welcome to DICOMHawk</h1>
</ul>
</nav>
<footer>
<p>&copy; 2024 DICOMHawk. All rights reserved.</p>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 0 20px;">
<p>&copy; 2024 DICOMHawk. All rights reserved.</p>
<div style="display: flex; gap: 20px;">
<a href="https://github.com/honeynet/DICOMHawk" style="color: white; text-decoration: none;" target="_blank">GitHub</a>
<a href="https://github.com/honeynet/DICOMHawk#readme" style="color: white; text-decoration: none;" target="_blank">Documentation</a>
<span>v1.0.0</span>
</div>
</div>
</footer>
</div>
<script>
Expand Down