tsk-10: Edit Contact (#23)

Closes #10

Reviewed-on: phoenix/textsender#23
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2026-01-29 22:20:28 +00:00
committed by phoenix
parent 34644d1cd2
commit 0202425a09
15 changed files with 1952 additions and 787 deletions
@@ -0,0 +1,156 @@
/* ModifyForm.module.css */
.modifyForm {
padding: 32px;
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.sectionTitle {
font-size: 20px;
font-weight: 600;
color: #1f2937;
margin-bottom: 32px;
padding-bottom: 16px;
border-bottom: 2px solid #e2e8f0;
display: flex;
align-items: center;
gap: 12px;
}
.sectionTitle::before {
content: '✏️';
font-size: 24px;
}
.formGroup {
margin-bottom: 24px;
}
.formLabel {
display: block;
margin-bottom: 10px;
font-weight: 500;
color: #475569;
font-size: 15px;
display: flex;
align-items: center;
gap: 6px;
}
.requiredIndicator {
color: #ef4444;
font-size: 18px;
margin-left: 2px;
}
.optionalIndicator {
color: #64748b;
font-size: 12px;
margin-left: 6px;
font-weight: normal;
background: #f1f5f9;
padding: 2px 6px;
border-radius: 4px;
}
.formInput {
width: 100%;
padding: 14px 18px;
border: 2px solid #e2e8f0;
border-radius: 10px;
font-size: 15px;
transition: all 0.3s ease;
background: #f8fafc;
color: #1e293b;
font-family: inherit;
}
.formInput:focus {
outline: none;
border-color: #8b5cf6;
background: white;
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
transform: translateY(-1px);
}
.formInput::placeholder {
color: #94a3b8;
font-size: 14px;
}
.formInput:valid:required {
border-color: #10b981;
}
.formInput:invalid:required:not(:placeholder-shown) {
border-color: #ef4444;
}
.inputContainer {
position: relative;
}
.inputIcon {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
font-size: 18px;
}
.formInfo {
margin-top: 32px;
padding: 16px;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border-radius: 10px;
font-size: 14px;
color: #0369a1;
border-left: 4px solid #3b82f6;
display: flex;
align-items: center;
gap: 10px;
}
.formInfo::before {
content: '💡';
font-size: 18px;
}
.formInfo p {
margin: 0;
line-height: 1.5;
}
.validationHint {
font-size: 13px;
color: #64748b;
margin-top: 6px;
display: flex;
align-items: center;
gap: 6px;
}
.validationHint::before {
content: 'ⓘ';
font-size: 12px;
}
/* Optional field styling */
.formGroup:last-child .formInput {
border-color: #cbd5e1;
}
.formGroup:last-child .formInput:focus {
border-color: #8b5cf6;
}