添加登陆页
This commit is contained in:
451
src/pages/login/verification/index.scss
Normal file
451
src/pages/login/verification/index.scss
Normal file
@@ -0,0 +1,451 @@
|
||||
// 验证码页面样式
|
||||
.verification_page {
|
||||
min-height: 100vh;
|
||||
background: #FAFAFA;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// 背景
|
||||
.background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
|
||||
.bg_color {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #FAFAFA;
|
||||
}
|
||||
}
|
||||
|
||||
// 状态栏
|
||||
.status_bar {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 21px 16px 0;
|
||||
height: 54px;
|
||||
|
||||
.time {
|
||||
font-family: 'SF Pro';
|
||||
font-weight: 590;
|
||||
font-size: 17px;
|
||||
line-height: 1.294;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.status_icons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
|
||||
.signal_icon {
|
||||
width: 19.2px;
|
||||
height: 12.23px;
|
||||
background: #000000;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.wifi_icon {
|
||||
width: 17.14px;
|
||||
height: 12.33px;
|
||||
background: #000000;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.battery_icon {
|
||||
width: 27.33px;
|
||||
height: 13px;
|
||||
background: #000000;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: -1.33px;
|
||||
top: 4.78px;
|
||||
width: 1.33px;
|
||||
height: 4.08px;
|
||||
background: #000000;
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 导航栏
|
||||
.navigation_bar {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
background: transparent;
|
||||
|
||||
.nav_content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
height: 44px;
|
||||
|
||||
.back_button {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFFFFF;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
|
||||
.back_icon {
|
||||
width: 8px;
|
||||
height: 16px;
|
||||
background: #000000;
|
||||
clip-path: polygon(0 50%, 100% 0, 100% 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.nav_placeholder {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav_actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
|
||||
.action_button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
border: 0.35px solid #DEDEDE;
|
||||
border-radius: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
|
||||
&.share_button {
|
||||
.share_icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #191919;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
background: #000000;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: 6.75px;
|
||||
left: 0.75px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
top: 6.75px;
|
||||
right: 0.75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.home_button {
|
||||
.home_icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #000000;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 1.5px;
|
||||
left: 1.5px;
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
border: 2px solid #000000;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
left: 7px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: #000000;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 主要内容
|
||||
.main_content {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
padding: 12px 24px 36px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 36px;
|
||||
}
|
||||
|
||||
// 标题区域
|
||||
.title_section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
text-align: left;
|
||||
|
||||
.main_title {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 600;
|
||||
font-size: 28px;
|
||||
line-height: 1.4;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.sub_title {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 300;
|
||||
font-size: 18px;
|
||||
line-height: 1.4;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
// 表单区域
|
||||
.form_section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
// 输入组
|
||||
.input_group {
|
||||
.input_container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-radius: 12px;
|
||||
padding: 10px 12px;
|
||||
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
||||
|
||||
.phone_input {
|
||||
flex: 1;
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 1.6;
|
||||
color: #000000;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
|
||||
&::placeholder {
|
||||
color: rgba(60, 60, 67, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.char_count {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 1.714;
|
||||
color: rgba(60, 60, 67, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 验证码组
|
||||
.verification_group {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
|
||||
.input_container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-radius: 12px;
|
||||
padding: 10px 12px;
|
||||
height: 52px;
|
||||
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
||||
|
||||
.code_input {
|
||||
flex: 1;
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
line-height: 1.6;
|
||||
color: #000000;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
|
||||
&::placeholder {
|
||||
color: rgba(60, 60, 67, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.char_count {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 1.714;
|
||||
color: rgba(60, 60, 67, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.send_code_button {
|
||||
width: 120px;
|
||||
height: 52px;
|
||||
background: #000000;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-radius: 16px;
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: #FFFFFF;
|
||||
box-shadow: 0px 8px 64px 0px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(32px);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:not(.disabled):hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0px 12px 80px 0px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 按钮区域
|
||||
.button_section {
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
// 登录按钮
|
||||
.login_button {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
background: #000000;
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
border-radius: 16px;
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: #FFFFFF;
|
||||
box-shadow: 0px 8px 64px 0px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(32px);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&.loading {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&:not(.loading):hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0px 12px 80px 0px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
// 协议区域
|
||||
.terms_section {
|
||||
padding: 0 24px;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
|
||||
.terms_text {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: rgba(60, 60, 67, 0.6);
|
||||
}
|
||||
|
||||
.terms_link {
|
||||
font-family: 'PingFang SC';
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
margin: 0 4px;
|
||||
|
||||
&:hover {
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 底部指示器
|
||||
.home_indicator {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 140.4px;
|
||||
height: 5px;
|
||||
background: #000000;
|
||||
border-radius: 2.5px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
// 响应式适配
|
||||
@media (max-width: 375px) {
|
||||
.main_content {
|
||||
padding: 8px 20px 32px;
|
||||
}
|
||||
|
||||
.form_section {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.button_section {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.terms_section {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.title_section {
|
||||
.main_title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.sub_title {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user