feat 个人中心样式整改

This commit is contained in:
Ironsp
2026-10-13 15:16:13 +08:00
parent d0779fe37c
commit fe9492ab69
4 changed files with 88 additions and 35 deletions

View File

@@ -176,9 +176,9 @@ const coreBusiness = [
}
&__contact {
font-size: 16px;
font-weight: 500;
line-height: 23px;
font-size: @font-size-sm;
font-weight: 400;
line-height: 1.8;
}
&__bottom {
@@ -193,14 +193,14 @@ const coreBusiness = [
&__legal {
margin: 0;
font-size: 14px;
font-weight: 500;
line-height: 23px;
font-size: @font-size-sm;
font-weight: 400;
line-height: 1.6;
white-space: nowrap;
color: @white;
&--icp {
margin-top: 16px;
margin-top: @spacing-base;
margin-left: 315px;
}
}

View File

@@ -6,30 +6,79 @@ function goHome(): void {
<template>
<section class="not-found">
<h1>404</h1>
<p class="text-secondary">
页面不存在或已下线
</p>
<button class="not-found__back link" @click="goHome">
返回首页
</button>
<div class="not-found__card">
<p class="not-found__code">
404
</p>
<h1 class="not-found__title">
页面不存在
</h1>
<p class="not-found__desc text-secondary">
页面不存在或已下线,请返回首页继续浏览
</p>
<button
class="not-found__back"
type="button"
@click="goHome"
>
返回首页
</button>
</div>
</section>
</template>
<style lang="less" scoped>
.not-found {
.flex(column, center);
gap: @spacing-base;
.flex(column, center, center);
min-height: 100vh;
padding: @spacing-lg;
background: @bg-color;
h1 {
font-size: 64px;
&__card {
.flex(column, center, center);
gap: @spacing-sm;
width: 100%;
max-width: 420px;
padding: @spacing-xxl @spacing-xl;
border-radius: @radius-base;
background: @white;
text-align: center;
}
&__code {
margin: 0;
font-size: @font-size-hero;
font-weight: 600;
line-height: 1;
color: @primary-color;
}
&__title {
margin: 0;
font-size: @font-size-xl;
font-weight: 600;
color: @heading-color;
}
&__back {
color: @primary-color;
&__desc {
margin: 0 0 @spacing-base;
font-size: @font-size-base;
}
&__back {
height: 40px;
padding: 0 @spacing-xl;
border: none;
border-radius: @radius-round;
background: @primary-color;
color: @white;
font-size: @font-size-base;
cursor: pointer;
transition: background 0.2s;
&:hover {
background: @primary-hover;
}
}
}
</style>

View File

@@ -71,13 +71,13 @@ const contacts = [
&__section {
& + & {
margin-top: 34px;
margin-top: @spacing-lg;
}
}
&__section-title {
font-size: 14px;
font-weight: 700;
font-size: @font-size-base;
font-weight: 600;
color: @heading-color;
line-height: 20px;
text-align: center;

View File

@@ -45,33 +45,37 @@ defineProps<Props>()
&__group {
& + & {
margin-top: 42px;
margin-top: @spacing-xl;
}
}
&__group-title {
font-size: 14px;
font-weight: 700;
font-size: @font-size-base;
font-weight: 600;
color: @heading-color;
line-height: 20px;
text-align: center;
line-height: 1.4;
text-align: left;
}
&__item {
margin-top: 24px;
margin-top: @spacing-base;
padding: @spacing-base;
border-radius: @radius-base;
background: @bg-color-light;
}
&__q {
font-size: 14px;
font-weight: 700;
font-size: @font-size-base;
font-weight: 600;
color: @heading-color;
line-height: 20px;
line-height: 1.4;
}
&__a {
margin: 8px 0 0 184px;
font-size: 13px;
line-height: 1.8;
margin: @spacing-sm 0 0;
font-size: @font-size-sm;
line-height: 1.6;
color: @text-color-secondary;
}
&__empty {