Features: - Modern web interface with table view of all artifacts - Display all metadata: filename, type, size, test info, tags - Upload form with full metadata support - Query/filter interface - Detail modal for viewing full artifact information - Download and delete actions - Integrated seed data generation via UI - Responsive design with gradient theme Technical: - Pure HTML/CSS/JavaScript (no frameworks) - FastAPI serves static files - Seed data API endpoint for easy testing - Pagination support - Real-time deployment mode display The UI is now accessible at http://localhost:8000/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
437 lines
6.7 KiB
CSS
437 lines
6.7 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-info {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.badge {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
background: #f7f9fc;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
}
|
|
|
|
.tab-button {
|
|
flex: 1;
|
|
padding: 16px 24px;
|
|
background: none;
|
|
border: none;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
color: #64748b;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
.tab-button.active {
|
|
background: white;
|
|
color: #667eea;
|
|
border-bottom: 3px solid #667eea;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
padding: 30px;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #5568d3;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #e2e8f0;
|
|
color: #475569;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #cbd5e1;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.btn-large {
|
|
padding: 14px 28px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.count-badge {
|
|
background: #f0f9ff;
|
|
color: #0369a1;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
thead {
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
th {
|
|
padding: 14px 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
color: #94a3b8;
|
|
padding: 40px !important;
|
|
}
|
|
|
|
.result-badge {
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.result-pass {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.result-fail {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.result-skip {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.result-error {
|
|
background: #fecaca;
|
|
color: #7f1d1d;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-block;
|
|
background: #e0e7ff;
|
|
color: #3730a3;
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
margin: 2px;
|
|
}
|
|
|
|
.file-type-badge {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
#page-info {
|
|
font-weight: 500;
|
|
color: #64748b;
|
|
}
|
|
|
|
.upload-section, .query-section {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-weight: 500;
|
|
color: #475569;
|
|
margin-bottom: 6px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="file"],
|
|
input[type="datetime-local"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
small {
|
|
color: #94a3b8;
|
|
font-size: 12px;
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
#upload-status {
|
|
margin-top: 20px;
|
|
padding: 14px;
|
|
border-radius: 6px;
|
|
display: none;
|
|
}
|
|
|
|
#upload-status.success {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
display: block;
|
|
}
|
|
|
|
#upload-status.error {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
display: block;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
max-width: 700px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #475569;
|
|
}
|
|
|
|
.detail-row {
|
|
margin-bottom: 16px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.detail-label {
|
|
font-weight: 600;
|
|
color: #475569;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.detail-value {
|
|
color: #64748b;
|
|
}
|
|
|
|
pre {
|
|
background: #f7f9fc;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
padding: 6px;
|
|
border-radius: 4px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
header {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.table-container {
|
|
font-size: 12px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 8px 6px;
|
|
}
|
|
}
|