feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent f1aa0399aa
commit 78fe73d0db
576 changed files with 18075 additions and 18912 deletions
+26 -26
View File
@@ -82,7 +82,7 @@ export const GlassCardStyles = () => (
/* 认证页 Semi 输入框玻璃风格:容器挂 .auth-glass-form 后,四个认证页
(登录/注册/企业登录/企业注册)的输入框共享同一套观感 ——
半透白玻璃底 + 圆角、hover 提亮、聚焦品牌色边框 + 柔和光环、错误态沿用语义色 */
.auth-glass-form .semi-input-wrapper {
.auth-glass-form .ant-input-affix-wrapper {
background: rgba(255, 255, 255, 0.6);
border: 1px solid rgba(229, 231, 235, 0.8);
border-radius: 0.75rem;
@@ -93,64 +93,64 @@ export const GlassCardStyles = () => (
background-color 0.2s ease,
box-shadow 0.2s ease;
}
.auth-glass-form .semi-input-wrapper:hover {
.auth-glass-form .ant-input-affix-wrapper:hover {
background: rgba(255, 255, 255, 0.78);
border-color: rgba(209, 213, 219, 1);
}
.auth-glass-form .semi-input-wrapper-focus,
.auth-glass-form .semi-input-wrapper-focus:hover {
.auth-glass-form .ant-input-affix-wrapper-focus,
.auth-glass-form .ant-input-affix-wrapper-focus:hover {
background: rgba(255, 255, 255, 0.9);
border-color: rgb(var(--brand-primary-rgb));
box-shadow: 0 0 0 3px rgb(var(--brand-primary-rgb) / 0.14);
}
.dark .auth-glass-form .semi-input-wrapper {
.dark .auth-glass-form .ant-input-affix-wrapper {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.12);
}
.dark .auth-glass-form .semi-input-wrapper:hover {
.dark .auth-glass-form .ant-input-affix-wrapper:hover {
background: rgba(255, 255, 255, 0.09);
border-color: rgba(255, 255, 255, 0.2);
}
.dark .auth-glass-form .semi-input-wrapper-focus,
.dark .auth-glass-form .semi-input-wrapper-focus:hover {
.dark .auth-glass-form .ant-input-affix-wrapper-focus,
.dark .auth-glass-form .ant-input-affix-wrapper-focus:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgb(var(--brand-primary-rgb));
box-shadow: 0 0 0 3px rgb(var(--brand-primary-rgb) / 0.22);
}
/* 校验失败:边框与光环改用语义 danger 色,保持玻璃底不变 */
.auth-glass-form .semi-input-wrapper-error,
.auth-glass-form .semi-input-wrapper-error:hover,
.auth-glass-form .semi-input-wrapper-error.semi-input-wrapper-focus {
border-color: var(--semi-color-danger);
.auth-glass-form .ant-input-affix-wrapper-error,
.auth-glass-form .ant-input-affix-wrapper-error:hover,
.auth-glass-form .ant-input-affix-wrapper-error.ant-input-affix-wrapper-focus {
border-color: var(--ui-color-danger);
box-shadow: none;
}
/* 前缀图标与内建功能钮(密码眼睛/清除)默认弱化;
只针对这三处染色,避免误染 suffix 里自定义按钮(如「获取验证码」)的 loading 图标 */
.auth-glass-form .semi-input-wrapper .semi-input-prefix .semi-icon,
.auth-glass-form .semi-input-wrapper .semi-input-clearbtn .semi-icon,
.auth-glass-form .semi-input-wrapper .semi-input-modebtn .semi-icon {
.auth-glass-form .ant-input-affix-wrapper .ant-input-prefix .anticon,
.auth-glass-form .ant-input-affix-wrapper .ant-input-clearbtn .anticon,
.auth-glass-form .ant-input-affix-wrapper .ant-input-modebtn .anticon {
color: rgba(156, 163, 175, 1);
transition: color 0.2s ease;
}
.dark .auth-glass-form .semi-input-wrapper .semi-input-prefix .semi-icon,
.dark .auth-glass-form .semi-input-wrapper .semi-input-clearbtn .semi-icon,
.dark .auth-glass-form .semi-input-wrapper .semi-input-modebtn .semi-icon {
.dark .auth-glass-form .ant-input-affix-wrapper .ant-input-prefix .anticon,
.dark .auth-glass-form .ant-input-affix-wrapper .ant-input-clearbtn .anticon,
.dark .auth-glass-form .ant-input-affix-wrapper .ant-input-modebtn .anticon {
color: rgba(107, 114, 128, 1);
}
/* 密码眼睛/清除按钮 hover 加深,给出可点击反馈 */
.auth-glass-form .semi-input-wrapper .semi-input-clearbtn:hover .semi-icon,
.auth-glass-form .semi-input-wrapper .semi-input-modebtn:hover .semi-icon {
.auth-glass-form .ant-input-affix-wrapper .ant-input-clearbtn:hover .anticon,
.auth-glass-form .ant-input-affix-wrapper .ant-input-modebtn:hover .anticon {
color: rgba(75, 85, 99, 1);
}
.dark .auth-glass-form .semi-input-wrapper .semi-input-clearbtn:hover .semi-icon,
.dark .auth-glass-form .semi-input-wrapper .semi-input-modebtn:hover .semi-icon {
.dark .auth-glass-form .ant-input-affix-wrapper .ant-input-clearbtn:hover .anticon,
.dark .auth-glass-form .ant-input-affix-wrapper .ant-input-modebtn:hover .anticon {
color: rgba(209, 213, 219, 1);
}
/* 聚焦时前缀图标点亮为品牌色,给出清晰的焦点反馈 */
.auth-glass-form .semi-input-wrapper-focus .semi-input-prefix .semi-icon {
.auth-glass-form .ant-input-affix-wrapper-focus .ant-input-prefix .anticon {
color: rgb(var(--brand-primary-rgb));
}
.dark .auth-glass-form .semi-input::placeholder {
.dark .auth-glass-form .ant-input::placeholder {
color: rgba(255, 255, 255, 0.35);
}
/* 移动端降级 backdrop-filter,减轻 GPU 负担 */
@@ -220,10 +220,10 @@ const GlassCard = ({
)}
{/* 顶部品牌渐变线 */}
<div className='absolute top-0 left-0 right-0 h-0.5 bg-gradient-to-r from-brand-from via-brand-via to-brand-to opacity-90' />
<div className='login-card-top-accent absolute top-0 left-0 right-0 h-0.5 bg-gradient-to-r from-brand-from via-brand-via to-brand-to opacity-90' />
{/* 顶部 1px 白色反光 - 紧贴品牌线下方 */}
<div className='absolute top-0.5 left-[15%] right-[15%] h-px bg-gradient-to-r from-transparent via-white/90 dark:via-white/40 to-transparent pointer-events-none' />
<div className='login-card-top-reflection absolute top-0.5 left-[15%] right-[15%] h-px bg-gradient-to-r from-transparent via-white/90 dark:via-white/40 to-transparent pointer-events-none' />
{children}
</div>