added image upload feature

This commit is contained in:
2026-03-16 12:10:55 +05:30
parent ef52695bd9
commit e841860bd4
4 changed files with 324 additions and 11 deletions

View File

@@ -754,6 +754,114 @@
text-transform: uppercase;
}
.settings-edit-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 10px;
border: none;
background: #f0fdf4;
color: #22c55e;
cursor: pointer;
flex-shrink: 0;
transition: background 0.15s;
}
.settings-edit-btn:hover {
background: #dcfce7;
}
.edit-modal-title {
font-size: 1.2rem;
font-weight: 700;
color: #1a1a1a;
margin: 0 0 1rem;
text-align: center;
font-family: "Sniglet", system-ui;
}
.edit-modal-avatar {
position: relative;
width: 80px;
height: 80px;
margin: 0 auto 0.5rem;
cursor: pointer;
border-radius: 50%;
overflow: hidden;
}
.edit-modal-avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
.edit-modal-avatar-placeholder {
width: 100%;
height: 100%;
border-radius: 50%;
background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: 700;
color: #fff;
font-family: "Sniglet", system-ui;
}
.edit-modal-avatar-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.35);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
border-radius: 50%;
}
.edit-modal-remove-photo {
display: block;
margin: 0 auto 0.5rem;
background: none;
border: none;
color: #ef4444;
font-size: 0.75rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
}
.edit-modal-remove-photo:hover {
text-decoration: underline;
}
.edit-modal-save {
flex: 1;
padding: 0.65rem;
border: none;
border-radius: 12px;
font-size: 0.9rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
background: #22c55e;
color: #fff;
transition: background 0.15s;
}
.edit-modal-save:hover:not(:disabled) {
background: #16a34a;
}
.edit-modal-save:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.settings-section {
margin-bottom: 1rem;
}
@@ -1715,6 +1823,19 @@
color: #fff;
}
[data-theme="dark"] .settings-edit-btn {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
[data-theme="dark"] .settings-edit-btn:hover {
background: rgba(34, 197, 94, 0.25);
}
[data-theme="dark"] .edit-modal-title {
color: #e8f5e8;
}
/* -- Settings divider -- */
[data-theme="dark"] .settings-divider {
background: #2a2a2a;