2FA 팝업 UI 개선 및 기능 추가:
- 디자인 가이드 기반 레이아웃/스타일 재정의(SASS) - 인증 흐름 개선: 타이머/프로그레스바/버튼 상태 업데이트(JS) - 사용자 친화적 안내 메시지 및 입력 상태 검증 추가
This commit is contained in:
@@ -7565,123 +7565,330 @@ button.djb-comment-submit:disabled {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
#tfaModal .modal-title {
|
||||
.tfa-card {
|
||||
position: relative;
|
||||
width: 520px;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
border: 1px solid #DCE2ED;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
||||
color: #0D0E11;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.tfa-close {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: #7F8A95;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
transition: background 0.12s ease, color 0.12s ease;
|
||||
}
|
||||
.tfa-close:hover {
|
||||
background: #F4F5F9;
|
||||
color: #0D0E11;
|
||||
}
|
||||
|
||||
.tfa-head {
|
||||
padding: 24px 32px;
|
||||
padding-right: 60px;
|
||||
border-bottom: 1px solid #DCE2ED;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
.tfa-head .tfa-head-title {
|
||||
font-size: 27px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
color: #0D0E11;
|
||||
}
|
||||
.tfa-head .tfa-head-brand {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #7F8A95;
|
||||
}
|
||||
|
||||
.tfa-body {
|
||||
padding: 28px 32px 32px;
|
||||
}
|
||||
|
||||
.tfa-step {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.tfa-subtitle {
|
||||
text-align: center;
|
||||
color: #64748B;
|
||||
margin-bottom: 24px;
|
||||
font-size: 14px;
|
||||
.tfa-step .tfa-step-num {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 100px;
|
||||
background: #BDC7CF;
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
flex: none;
|
||||
}
|
||||
.tfa-step .tfa-step-num.is-active {
|
||||
background: #4685EF;
|
||||
}
|
||||
.tfa-step .tfa-step-text {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #7F8A95;
|
||||
}
|
||||
.tfa-step .tfa-step-text.is-active {
|
||||
color: #0D0E11;
|
||||
}
|
||||
|
||||
.tfa-segment {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 12px 8px;
|
||||
border: 1px solid #CBD5E1;
|
||||
border-radius: 8px;
|
||||
background: #F8FAFC;
|
||||
color: #475569;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
padding: 14px 16px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
border: 1px solid #DCE2ED;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
transition: border-color 0.12s ease, background 0.12s ease;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn .tfa-seg-label {
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #0D0E11;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn .tfa-seg-masked {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
color: #7F8A95;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn:hover {
|
||||
border-color: #0049B4;
|
||||
border-color: #4685EF;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn.is-active {
|
||||
background: #0049B4;
|
||||
border-color: #0049B4;
|
||||
color: #FFFFFF;
|
||||
border: 1.5px solid #4685EF;
|
||||
background: #ECF0FA;
|
||||
}
|
||||
.tfa-segment .tfa-seg-btn.is-active .tfa-seg-masked {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
.tfa-segment .tfa-seg-masked {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #94A3B8;
|
||||
.tfa-segment .tfa-seg-btn.is-active .tfa-seg-label {
|
||||
color: #2A69DE;
|
||||
}
|
||||
|
||||
.tfa-btn-block {
|
||||
.tfa-hint {
|
||||
border: 1px solid #DCE2ED;
|
||||
border-radius: 4px;
|
||||
background: #F4F5F9;
|
||||
padding: 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
color: #7F8A95;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.tfa-cta {
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
height: 56px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: #4685EF;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
transition: background 0.12s ease;
|
||||
}
|
||||
.tfa-cta:hover {
|
||||
background: #2A69DE;
|
||||
}
|
||||
.tfa-cta:disabled {
|
||||
background: #F4F5F9;
|
||||
color: #BDC7CF;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.tfa-code-row {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.tfa-code-row .tfa-code-input-wrap {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 56px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid #BDC7CF;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
transition: border-color 0.12s ease;
|
||||
}
|
||||
.tfa-code-row .tfa-code-input-wrap:focus-within {
|
||||
border-color: #4685EF;
|
||||
}
|
||||
.tfa-code-row .tfa-code-input {
|
||||
width: 100%;
|
||||
padding: 14px 64px 14px 16px;
|
||||
border: 1px solid #CBD5E1;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
.tfa-code-row .tfa-code-input:focus {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: none;
|
||||
border-color: #0049B4;
|
||||
background: transparent;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.02em;
|
||||
color: #0D0E11;
|
||||
}
|
||||
.tfa-code-row .tfa-timer {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
color: #E11D48;
|
||||
.tfa-code-row .tfa-code-input::placeholder {
|
||||
color: #BDC7CF;
|
||||
font-weight: 400;
|
||||
}
|
||||
.tfa-code-row .tfa-resend {
|
||||
flex: none;
|
||||
height: 56px;
|
||||
padding: 0 18px;
|
||||
border: 1px solid #7F8A95;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #0D0E11;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
transition: background 0.12s ease;
|
||||
}
|
||||
.tfa-code-row .tfa-resend:hover {
|
||||
background: #F4F5F9;
|
||||
}
|
||||
.tfa-code-row .tfa-resend:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.tfa-timer-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
border: 1px solid #DCE2ED;
|
||||
border-radius: 4px;
|
||||
background: #F4F5F9;
|
||||
padding: 12px 14px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer-label {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-weight: 300;
|
||||
color: #7F8A95;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer-clock {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer {
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.02em;
|
||||
color: #4685EF;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer.is-warning {
|
||||
color: #F4253C;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer.is-expired {
|
||||
color: #7F8A95;
|
||||
}
|
||||
.tfa-timer-row .tfa-timer-total {
|
||||
font-size: 13px;
|
||||
font-weight: 300;
|
||||
color: #7F8A95;
|
||||
}
|
||||
|
||||
.tfa-progress {
|
||||
height: 3px;
|
||||
background: #DCE2ED;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.tfa-progress .tfa-progress-bar {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: #4685EF;
|
||||
transition: width 1s linear;
|
||||
}
|
||||
.tfa-progress .tfa-progress-bar.is-warning {
|
||||
background: #F4253C;
|
||||
}
|
||||
|
||||
.tfa-message {
|
||||
min-height: 18px;
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
color: #64748B;
|
||||
min-height: 21px;
|
||||
margin: 0 0 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
color: #7F8A95;
|
||||
}
|
||||
.tfa-message.is-error {
|
||||
color: #E11D48;
|
||||
color: #F4253C;
|
||||
}
|
||||
|
||||
.tfa-test-notice {
|
||||
margin-top: 8px;
|
||||
margin: 0 0 16px;
|
||||
padding: 10px 14px;
|
||||
border: 1px dashed #F59E0B;
|
||||
border-radius: 8px;
|
||||
border-radius: 4px;
|
||||
background: #FFFBEB;
|
||||
color: #B45309;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tfa-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin: 8px 0;
|
||||
}
|
||||
.tfa-actions .tfa-resend {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #0049B4;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
.tfa-foot {
|
||||
margin-top: 24px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid #DFDFDF;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
line-height: 1.5;
|
||||
color: #7F8A95;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.tfa-head {
|
||||
padding: 20px 22px;
|
||||
}
|
||||
.tfa-head .tfa-head-title {
|
||||
font-size: 23px;
|
||||
}
|
||||
.tfa-body {
|
||||
padding: 22px 22px 26px;
|
||||
}
|
||||
.tfa-segment {
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
}
|
||||
.hero-carousel-section {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user