Enhance user experience

This commit is contained in:
jheaps
2025-10-09 13:23:44 -06:00
parent f59f90c179
commit 8bf0667683
10 changed files with 557 additions and 159 deletions
+118 -66
View File
@@ -3,34 +3,37 @@
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
background: var(--accent-primary);
color: var(--bg-primary);
border: 1px solid var(--accent-primary);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
cursor: pointer;
z-index: 1000;
transition: transform 0.2s, box-shadow 0.2s;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
font-size: 28px;
line-height: 1;
font-weight: 300;
}
.floating-add-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
transform: scale(1.05);
background: var(--accent-hover);
border-color: var(--accent-hover);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.floating-add-btn:active {
transform: scale(0.95);
transform: scale(0.98);
}
.floating-add-btn .btn-icon {
transition: transform 0.3s;
transition: transform 0.3s ease;
}
.floating-add-btn.active .btn-icon {
@@ -46,7 +49,7 @@
z-index: 1001;
max-width: 500px;
width: 90%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
/* Upload Progress Bar */
@@ -56,24 +59,24 @@
.progress-bar {
width: 100%;
height: 30px;
background: #f0f0f0;
border-radius: 15px;
height: 8px;
background: var(--bg-tertiary);
border-radius: 4px;
overflow: hidden;
margin-bottom: 10px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
background: var(--accent-primary);
transition: width 0.3s ease;
width: 0%;
}
.progress-text {
text-align: center;
font-size: 14px;
color: #555;
font-size: 13px;
color: var(--text-secondary);
font-weight: 500;
}
@@ -87,40 +90,40 @@
.close-upload-form {
background: transparent;
border: none;
font-size: 32px;
color: #999;
font-size: 28px;
color: var(--text-secondary);
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
line-height: 1;
transition: color 0.2s;
transition: color 0.2s ease;
}
.close-upload-form:hover {
color: #333;
color: var(--text-primary);
}
/* Gallery Grid Layout */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
gap: 16px;
padding: 20px 0;
}
.gallery-item {
position: relative;
background: #fff;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
transition: all 0.2s ease;
}
.gallery-item:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
transform: translateY(-2px);
border-color: var(--border-secondary);
}
.gallery-item img {
@@ -129,91 +132,137 @@
object-fit: cover;
display: block;
cursor: pointer;
transition: opacity 0.2s ease;
}
.gallery-item img:hover {
opacity: 0.9;
}
.gallery-item-description {
padding: 10px;
font-size: 14px;
color: #555;
background: #f9f9f9;
border-top: 1px solid #eee;
padding: 12px;
font-size: 13px;
color: var(--text-secondary);
background: var(--bg-secondary);
border-top: 1px solid var(--border-primary);
line-height: 1.5;
}
.gallery-item-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #fff;
border-top: 1px solid #eee;
padding: 10px 12px;
background: var(--bg-tertiary);
border-top: 1px solid var(--border-primary);
}
.gallery-item-date {
font-size: 12px;
color: #888;
color: var(--text-secondary);
}
.btn-delete {
background: #dc3545;
color: white;
border: none;
padding: 5px 12px;
background: transparent;
color: var(--danger);
border: 1px solid var(--danger);
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
transition: background 0.2s;
transition: all 0.2s ease;
font-weight: 500;
}
.btn-delete:hover {
background: #c82333;
background: var(--danger);
color: var(--text-primary);
}
/* Upload Form Styles */
.form-group {
margin-bottom: 15px;
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 5px;
margin-bottom: 8px;
font-weight: 500;
color: #333;
color: var(--text-primary);
font-size: 14px;
}
.form-group input[type="file"] {
width: 100%;
padding: 8px;
border: 2px dashed #ddd;
border-radius: 4px;
padding: 12px;
border: 1px dashed var(--border-primary);
border-radius: 6px;
cursor: pointer;
background: var(--bg-tertiary);
color: var(--text-primary);
font-size: 14px;
transition: border-color 0.2s ease;
}
.form-group input[type="file"]:hover {
border-color: var(--accent-primary);
}
.form-group input[type="file"]::file-selector-button {
padding: 8px 16px;
margin-right: 12px;
background: var(--accent-primary);
color: var(--bg-primary);
border: 1px solid var(--accent-primary);
border-radius: 4px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.form-group input[type="file"]::file-selector-button:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
border: 1px solid var(--border-primary);
border-radius: 6px;
font-family: inherit;
resize: vertical;
background: var(--bg-tertiary);
color: var(--text-primary);
font-size: 14px;
line-height: 1.5;
transition: border-color 0.2s ease;
}
.form-group textarea:focus {
outline: none;
border-color: var(--accent-primary);
}
/* Alert Messages */
.alert {
padding: 12px 16px;
border-radius: 4px;
margin-bottom: 15px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 14px;
}
.alert-success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
background: rgba(63, 185, 80, 0.15);
color: var(--success);
border: 1px solid rgba(63, 185, 80, 0.3);
}
.alert-error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
background: rgba(248, 81, 73, 0.15);
color: var(--danger);
border: 1px solid rgba(248, 81, 73, 0.3);
}
/* Image Modal */
@@ -235,7 +284,8 @@
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(4px);
}
.modal-content {
@@ -250,25 +300,27 @@
max-height: 90vh;
display: block;
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.modal-close {
position: absolute;
top: -40px;
top: -50px;
right: 0;
background: transparent;
border: none;
color: white;
font-size: 36px;
color: var(--text-primary);
font-size: 32px;
cursor: pointer;
padding: 0;
width: 40px;
height: 40px;
line-height: 36px;
line-height: 32px;
transition: color 0.2s ease;
}
.modal-close:hover {
color: #ccc;
color: var(--text-secondary);
}
/* Responsive Design */