feat ui设计稿

This commit is contained in:
Ironsp
2026-09-30 15:55:36 +08:00
parent ce8210fb3f
commit 9ab6253c81
102 changed files with 4855 additions and 2359 deletions

View File

@@ -118,7 +118,7 @@ onBeforeUnmount(() => {
>
<label class="auth-page__agree">
<input v-model="agree" type="checkbox">
<span>已阅读并同意《用户协议》和《隐私政策》</span>
<span>已阅读并同意<em>《用户协议》</em>和<em>《隐私政策》</em></span>
</label>
<button class="auth-page__submit" type="submit">
确认修改
@@ -135,48 +135,59 @@ onBeforeUnmount(() => {
<style lang="less" scoped>
.auth-page {
position: relative;
display: flex;
min-height: 100vh;
background: @bg-color;
// 设计稿:右侧表单区为纯白底,无卡片描边/阴影
background: @white;
&__brand {
flex: 0 0 44%;
.flex(row, center, center);
background: linear-gradient(135deg, @primary-color 0%, #1b4fd8 100%);
// 设计稿:左侧品牌渐变面板约占 786/1920 ≈ 41%
flex: 0 0 41%;
.flex(row, flex-start, stretch);
background: linear-gradient(135deg, @auth-gradient-from 0%, @auth-gradient-to 100%);
color: @white;
}
&__brand-inner {
.flex(column, flex-start);
gap: @spacing-lg;
padding: @spacing-xxl;
.flex(column, space-between, flex-start);
width: 100%;
// 设计稿:文字列起点 x=257 ≈ 面板宽 32.7%;主标距顶 ≈ 28%、标语底边距底 ≈ 30%
padding: 26vh 48px 30vh 32%;
}
&__logo {
font-size: 32px;
font-size: 31px;
font-weight: 700;
letter-spacing: 2px;
line-height: 1.4;
line-height: 1.45;
// 设计稿文本框 432 设计px:定宽让 11 字在「虫子智造研发 / 一体化平台」处折行
max-width: 200px;
}
&__slogan {
font-size: @font-size-xl;
opacity: 0.85;
letter-spacing: 6px;
font-size: 17px;
font-weight: 600;
letter-spacing: 8px;
}
// 设计稿:「游客模式」为右上角白底上的深色纯文本,无边框
&__guest {
margin-top: @spacing-xl;
padding: @spacing-sm @spacing-base;
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: @radius-base;
color: @white;
font-size: @font-size-base;
position: absolute;
top: 18px;
right: 16px;
margin: 0;
padding: 0;
border: none;
border-radius: 0;
color: @heading-color;
font-size: 11px;
text-decoration: none;
transition: background 0.2s;
transition: color 0.2s;
&:hover {
background: rgba(255, 255, 255, 0.15);
background: transparent;
color: @primary-strong;
}
}
@@ -188,70 +199,82 @@ onBeforeUnmount(() => {
&__card {
.flex(column, flex-start);
gap: @spacing-base;
// 设计稿:表单列宽 688 设计px ≈ 530px,标题/输入/按钮纵向节奏 ≈ 41px
gap: 41px;
width: 100%;
max-width: 420px;
padding: @spacing-xl @spacing-lg;
border-radius: @radius-lg;
background: @white;
box-shadow: @shadow-lg;
max-width: 530px;
padding: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
// 设计稿:标题(34 设计px ≈ 26px)到首个输入框 ≈ 62px
&__title {
font-size: @font-size-xl;
font-weight: 600;
margin-bottom: 21px;
font-size: 26px;
font-weight: 700;
color: @heading-color;
}
&__form {
.flex(column, flex-start);
gap: @spacing-base;
gap: @spacing-lg;
width: 100%;
}
// 设计稿:输入框 40 设计px ≈ 32px 高、13 设计px 字号(可读下限 11px)、白底浅描边
&__input {
width: 100%;
height: 44px;
padding: 0 @spacing-base;
height: 32px;
padding: 0 12px;
border: 1px solid @border-color;
border-radius: @radius-base;
background: @bg-color-light;
font-size: @font-size-base;
border-radius: 6px;
background: @white;
font-size: 11px;
color: @heading-color;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
&:focus {
border-color: @primary-color;
border-color: @primary-strong;
}
&::placeholder {
color: @text-color-secondary;
color: @heading-color;
}
}
&__agree {
.flex(row, flex-start);
gap: @spacing-xs;
font-size: @font-size-sm;
font-size: 11px;
color: @text-color-secondary;
cursor: pointer;
input {
margin-top: 2px;
accent-color: @primary-color;
margin-top: 1px;
accent-color: @primary-strong;
}
// 设计稿:《用户协议》《隐私政策》为强调蓝,其余为次级灰
em {
font-style: normal;
color: @primary-strong;
}
}
// 设计稿:确认修改按钮 44 设计px ≈ 34px 高、#024FFF 实底
&__submit {
width: 100%;
height: 44px;
height: 34px;
border: none;
border-radius: @radius-base;
background: @primary-color;
border-radius: 6px;
background: @primary-strong;
color: @white;
font-size: @font-size-lg;
font-size: 12px;
font-weight: 500;
letter-spacing: 2px;
cursor: pointer;
transition: background 0.2s;
@@ -261,14 +284,16 @@ onBeforeUnmount(() => {
}
}
// 设计稿:按钮 → 底部切换链接仅约 13px
&__switch {
margin-top: -26px;
text-align: center;
font-size: @font-size-base;
font-size: 11px;
color: @text-color-secondary;
}
&__link {
color: @primary-color;
color: @primary-strong;
&:hover {
color: @primary-hover;