Modern dark mode UI overhaul

This commit is contained in:
Mondo Diaz
2025-12-11 14:58:13 -06:00
parent e0802444c0
commit 71bb7d96b3
5 changed files with 597 additions and 166 deletions

View File

@@ -1,3 +1,4 @@
/* Page Layout */
.home {
max-width: 1000px;
margin: 0 auto;
@@ -7,71 +8,92 @@
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
margin-bottom: 32px;
}
.page-header h1 {
font-size: 2rem;
color: var(--primary-dark);
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
/* Buttons */
.btn {
padding: 0.625rem 1.25rem;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
border: none;
border-radius: 6px;
border-radius: var(--radius-md);
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;
transition: all var(--transition-fast);
}
.btn-primary {
background-color: var(--primary);
background: var(--accent-gradient);
color: white;
box-shadow: var(--shadow-sm), 0 0 20px rgba(16, 185, 129, 0.2);
}
.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md), 0 0 30px rgba(16, 185, 129, 0.3);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.6;
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.btn-secondary {
background-color: var(--border);
color: var(--text);
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-primary);
}
.btn-secondary:hover {
background-color: #d0d0d0;
background: var(--bg-hover);
color: var(--text-primary);
border-color: var(--border-secondary);
}
/* Cards */
.card {
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
padding: 24px;
transition: all var(--transition-normal);
}
/* Forms */
.form {
margin-bottom: 2rem;
margin-bottom: 32px;
}
.form h3 {
margin-bottom: 1rem;
color: var(--primary-dark);
margin-bottom: 20px;
color: var(--text-primary);
font-size: 1.125rem;
font-weight: 600;
}
.form-group {
margin-bottom: 1rem;
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 0.375rem;
margin-bottom: 8px;
font-weight: 500;
color: var(--text-light);
color: var(--text-secondary);
font-size: 0.875rem;
}
@@ -80,82 +102,138 @@
.form-group select,
.form-group textarea {
width: 100%;
padding: 0.625rem;
border: 1px solid var(--border);
border-radius: 6px;
padding: 12px 16px;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
font-size: 0.875rem;
color: var(--text-primary);
transition: all var(--transition-fast);
}
.form-group input::placeholder {
color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
background: var(--bg-elevated);
}
.form-group.checkbox label {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 10px;
cursor: pointer;
color: var(--text-primary);
}
.form-group.checkbox input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--accent-primary);
cursor: pointer;
}
.form-group.checkbox input {
width: auto;
}
/* Messages */
.error-message {
background-color: #fef2f2;
border: 1px solid #fecaca;
background: var(--error-bg);
border: 1px solid rgba(239, 68, 68, 0.2);
color: var(--error);
padding: 0.75rem 1rem;
border-radius: 6px;
margin-bottom: 1rem;
padding: 12px 16px;
border-radius: var(--radius-md);
margin-bottom: 16px;
font-size: 0.875rem;
}
.success-message {
background: var(--success-bg);
border: 1px solid rgba(34, 197, 94, 0.2);
color: var(--success);
padding: 12px 16px;
border-radius: var(--radius-md);
margin-bottom: 16px;
font-size: 0.875rem;
}
/* Loading */
.loading {
text-align: center;
padding: 3rem;
color: var(--text-light);
display: flex;
align-items: center;
justify-content: center;
padding: 64px;
color: var(--text-tertiary);
font-size: 0.875rem;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 3rem;
color: var(--text-light);
background-color: var(--surface);
border: 1px dashed var(--border);
border-radius: 8px;
padding: 64px 32px;
color: var(--text-tertiary);
background: var(--bg-secondary);
border: 1px dashed var(--border-secondary);
border-radius: var(--radius-lg);
}
.empty-state p {
font-size: 0.9375rem;
}
/* Project Grid */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
gap: 16px;
}
.project-card {
display: block;
color: inherit;
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
overflow: hidden;
}
.project-card::before {
content: '';
position: absolute;
inset: 0;
background: var(--accent-gradient);
opacity: 0;
transition: opacity var(--transition-normal);
border-radius: var(--radius-lg);
}
.project-card:hover {
border-color: var(--border-secondary);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-decoration: none;
box-shadow: var(--shadow-lg);
color: inherit;
}
.project-card:hover::before {
opacity: 0.03;
}
.project-card h3 {
color: var(--primary);
margin-bottom: 0.5rem;
color: var(--text-primary);
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.project-card p {
color: var(--text-light);
color: var(--text-secondary);
font-size: 0.875rem;
margin-bottom: 1rem;
margin-bottom: 16px;
line-height: 1.5;
}
.project-meta {
@@ -163,24 +241,63 @@
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
padding-top: 16px;
border-top: 1px solid var(--border-primary);
margin-top: auto;
}
/* Badges */
.badge {
padding: 0.25rem 0.5rem;
border-radius: 4px;
padding: 4px 10px;
border-radius: 100px;
font-weight: 500;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.badge-public {
background-color: #dcfce7;
color: #166534;
background: var(--success-bg);
color: var(--success);
border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-private {
background-color: #fef3c7;
color: #92400e;
background: var(--warning-bg);
color: var(--warning);
border: 1px solid rgba(245, 158, 11, 0.2);
}
.date {
color: var(--text-light);
color: var(--text-muted);
}
/* Breadcrumb */
.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 24px;
font-size: 0.875rem;
color: var(--text-tertiary);
}
.breadcrumb a {
color: var(--text-secondary);
transition: color var(--transition-fast);
}
.breadcrumb a:hover {
color: var(--accent-primary);
}
.breadcrumb span {
color: var(--text-primary);
font-weight: 500;
}
.description {
color: var(--text-secondary);
margin-top: 4px;
font-size: 0.9375rem;
}

View File

@@ -1,44 +1,32 @@
.breadcrumb {
margin-bottom: 1rem;
font-size: 0.875rem;
color: var(--text-light);
}
.breadcrumb a {
color: var(--primary);
}
.breadcrumb span {
color: var(--text);
font-weight: 500;
}
.description {
color: var(--text-light);
margin-top: 0.25rem;
}
.success-message {
background-color: #f0fdf4;
border: 1px solid #bbf7d0;
color: var(--success);
padding: 0.75rem 1rem;
border-radius: 6px;
margin-bottom: 1rem;
}
/* Upload Section */
.upload-section {
margin-bottom: 2rem;
margin-bottom: 32px;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
border: 1px solid rgba(16, 185, 129, 0.2);
}
.upload-section h3 {
margin-bottom: 1rem;
color: var(--primary-dark);
margin-bottom: 20px;
color: var(--text-primary);
font-size: 1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
.upload-section h3::before {
content: '';
display: block;
width: 4px;
height: 20px;
background: var(--accent-gradient);
border-radius: 2px;
}
.upload-form {
display: flex;
gap: 1rem;
gap: 16px;
align-items: flex-end;
flex-wrap: wrap;
}
@@ -49,17 +37,42 @@
min-width: 200px;
}
h2 {
margin-bottom: 1rem;
color: var(--primary-dark);
.upload-form .form-group input[type="file"] {
padding: 10px 16px;
background: var(--bg-tertiary);
cursor: pointer;
}
.upload-form .form-group input[type="file"]::file-selector-button {
background: var(--accent-gradient);
color: white;
border: none;
padding: 6px 12px;
border-radius: var(--radius-sm);
margin-right: 12px;
cursor: pointer;
font-weight: 500;
font-size: 0.8125rem;
}
/* Section Headers */
h2 {
margin-bottom: 16px;
color: var(--text-primary);
font-size: 1.25rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
}
/* Tags Table */
.tags-table {
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
overflow: hidden;
margin-bottom: 2rem;
margin-bottom: 32px;
}
.tags-table table {
@@ -69,63 +82,146 @@ h2 {
.tags-table th,
.tags-table td {
padding: 0.875rem 1rem;
padding: 14px 20px;
text-align: left;
border-bottom: 1px solid var(--border);
border-bottom: 1px solid var(--border-primary);
}
.tags-table th {
background-color: #f9f9f9;
background: var(--bg-tertiary);
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
color: var(--text-light);
letter-spacing: 0.05em;
color: var(--text-tertiary);
}
.tags-table tr:last-child td {
border-bottom: none;
}
.tags-table tr:hover {
background-color: #f9f9f9;
.tags-table tbody tr {
transition: background var(--transition-fast);
}
.tags-table tbody tr:hover {
background: var(--bg-tertiary);
}
.tags-table td strong {
color: var(--accent-primary);
font-weight: 600;
}
.artifact-id {
font-family: monospace;
font-size: 0.875rem;
color: var(--text-light);
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
font-size: 0.8125rem;
color: var(--text-tertiary);
background: var(--bg-tertiary);
padding: 4px 8px;
border-radius: var(--radius-sm);
}
.btn-small {
padding: 0.375rem 0.75rem;
padding: 6px 12px;
font-size: 0.75rem;
}
/* Usage Section */
.usage-section {
margin-top: 2rem;
margin-top: 32px;
background: var(--bg-secondary);
}
.usage-section h3 {
margin-bottom: 0.5rem;
color: var(--primary-dark);
margin-bottom: 12px;
color: var(--text-primary);
font-size: 1rem;
font-weight: 600;
}
.usage-section p {
color: var(--text-light);
margin-bottom: 0.5rem;
color: var(--text-secondary);
margin-bottom: 12px;
font-size: 0.875rem;
}
.usage-section pre {
background-color: #1e1e1e;
color: #d4d4d4;
padding: 1rem;
border-radius: 6px;
background: #0d0d0f;
border: 1px solid var(--border-primary);
padding: 16px 20px;
border-radius: var(--radius-md);
overflow-x: auto;
margin-bottom: 1rem;
margin-bottom: 16px;
}
.usage-section code {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 0.875rem;
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
font-size: 0.8125rem;
color: #e2e8f0;
}
/* Syntax highlighting for code blocks */
.usage-section pre {
position: relative;
}
.usage-section pre::before {
content: 'bash';
position: absolute;
top: 8px;
right: 12px;
font-size: 0.6875rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Copy button for code blocks (optional enhancement) */
.code-block {
position: relative;
}
.code-block .copy-btn {
position: absolute;
top: 8px;
right: 8px;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
color: var(--text-secondary);
padding: 4px 8px;
border-radius: var(--radius-sm);
font-size: 0.6875rem;
cursor: pointer;
opacity: 0;
transition: opacity var(--transition-fast);
}
.code-block:hover .copy-btn {
opacity: 1;
}
.code-block .copy-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.upload-form {
flex-direction: column;
align-items: stretch;
}
.upload-form .form-group {
min-width: 100%;
}
.tags-table {
overflow-x: auto;
}
.tags-table table {
min-width: 500px;
}
}