更改字体

This commit is contained in:
2026-02-05 13:55:37 +08:00
parent 79e25e486a
commit 826c6d28b2
15 changed files with 135 additions and 37 deletions

View File

@@ -12,7 +12,6 @@ p {
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
font-family: 'Medium';
} }
html, html,
body, body,
@@ -20,6 +19,7 @@ body,
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
font-family: 'Medium';
} }
@keyframes loading { @keyframes loading {
0% { 0% {

View File

@@ -13,7 +13,6 @@ p {
* { * {
box-sizing: border-box; box-sizing: border-box;
font-family: 'Medium';
} }
html, html,
@@ -22,6 +21,7 @@ body,
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
font-family: 'Medium';
} }
@keyframes loading { @keyframes loading {

View File

@@ -1,9 +1,10 @@
export default { export default {
Login: { Login: {
Login: 'Log in', login: 'Log in',
SignUp: 'Sign up', register: 'Register',
LoginTo: 'Log on to', signUp: 'Sign up',
LoginTitle: 'A multi-agent canvas for rapid, trend driven design iteration.', loginTo: 'Log on to',
loginTitle: 'A multi-agent canvas for rapid, trend driven design iteration.',
name: 'Name', name: 'Name',
email: 'Email', email: 'Email',
password: 'Password', password: 'Password',
@@ -42,7 +43,7 @@ export default {
next: 'Next', next: 'Next',
nuic2Title: `What's your dream <b>home vibe</b> ?`, nuic2Title: `What's your dream <b>home vibe</b> ?`,
loadMore: 'Load more', loadMore: 'Load more',
nuic3Title: `Where <b>are you based</b>? What do you <b>do</b> ?`, nuic3Title: `<b>Where</b> are you based? What do you <b>do</b> ?`,
basedIn: 'Based in', basedIn: 'Based in',
role: 'Role', role: 'Role',
allSet: 'All set!' allSet: 'All set!'

View File

@@ -1,9 +1,10 @@
export default { export default {
Login: { Login: {
Login: '登录', login: '登录',
SignUp: '注册', register: '注册',
LoginTo: '登录到', signUp: '注册',
LoginTitle: '一个多智能体画布,用于快速、趋势驱动的设计迭代。', loginTo: '登录到',
loginTitle: '一个多智能体画布,用于快速、趋势驱动的设计迭代。',
name: '姓名', name: '姓名',
email: '邮箱', email: '邮箱',
password: '密码', password: '密码',
@@ -42,7 +43,7 @@ export default {
next: '下一步', next: '下一步',
nuic2Title: `您理想中 <b>家的氛围</b> 是什么?`, nuic2Title: `您理想中 <b>家的氛围</b> 是什么?`,
loadMore: '加载更多', loadMore: '加载更多',
nuic3Title: `您在哪里 <b>工作</b> ?您从事什么 <b>工作</b> `, nuic3Title: `您在 <b>哪里</b> 工作?您从事什么 <b>工作</b> `,
basedIn: '公司', basedIn: '公司',
role: '角色', role: '角色',
allSet: '准备好了!', allSet: '准备好了!',

View File

@@ -25,15 +25,24 @@
<div class="history-list" v-show="!isCollapse && showHistory"> <div class="history-list" v-show="!isCollapse && showHistory">
<div v-for="item in historyList" :key="item.name" class="history-item"> <div v-for="item in historyList" :key="item.name" class="history-item">
<div v-if="item.title" class="title">{{ item.name }}</div> <div v-if="item.title" class="title">{{ item.name }}</div>
<div v-else class="box" @click="onClickHistoryItem(item)"> <div
v-else
class="box"
@click="onClickHistoryItem(item)"
:class="{ active: item.id == id }"
>
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
<el-popover placement="right" trigger="click"> <el-popover
placement="right"
trigger="click"
popper-style="padding: 1rem 0.5rem;"
>
<template #reference> <template #reference>
<span class="icon"><svg-icon name="more" size="16" /></span> <span @click.stop class="icon"><svg-icon name="more" size="16" /></span>
</template> </template>
<div class="button-box"> <div class="history-item-menu">
<div class="rename-btn">Rename</div> <div class="rename" @click="onRenameHistoryItem(item)">Rename</div>
<div class="delete-btn">Delete</div> <div class="delete" @click="onDeleteHistoryItem(item)">Delete</div>
</div> </div>
</el-popover> </el-popover>
</div> </div>
@@ -50,6 +59,7 @@
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
import { useGlobalStore } from '@/stores' import { useGlobalStore } from '@/stores'
const id = computed(() => route.params.id)
const globalStore = useGlobalStore() const globalStore = useGlobalStore()
const isCollapse = computed(() => globalStore.state.homeLeftNavCollapse) const isCollapse = computed(() => globalStore.state.homeLeftNavCollapse)
const onCollapse = () => { const onCollapse = () => {
@@ -97,9 +107,21 @@
showHistory.value = !showHistory.value showHistory.value = !showHistory.value
} }
const onClickHistoryItem = (item: any) => { const onClickHistoryItem = (item: any) => {
console.log(item)
router.push({ name: 'test', params: { id: item.id } }) router.push({ name: 'test', params: { id: item.id } })
} }
const onRenameHistoryItem = (item: any) => {
// const index = historyList.value.findIndex((i: any) => i.id == item.id)
// if (index != -1) {
// }
}
const onDeleteHistoryItem = (item: any) => {
console.log(item)
const index = historyList.value.findIndex((i: any) => i.id == item.id)
if (index != -1) {
historyList.value.splice(index, 1)
}
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@@ -131,7 +153,7 @@
margin-right: 1rem; margin-right: 1rem;
} }
> .logo-text { > .logo-text {
font-family: Mazzard; font-family: SemiBold;
font-weight: 600; font-weight: 600;
font-size: 3rem; font-size: 3rem;
margin-right: auto; margin-right: auto;
@@ -204,14 +226,19 @@
> .title { > .title {
font-weight: 600; font-weight: 600;
font-size: 1.6rem; font-size: 1.6rem;
font-family: SemiBold;
} }
> .box { > .box {
font-family: Regular;
border-radius: 0.8rem; border-radius: 0.8rem;
cursor: pointer; cursor: pointer;
&.active, &.active,
&:hover { &:hover {
background-color: rgba(0, 0, 0, 0.06); background-color: rgba(0, 0, 0, 0.06);
} }
&.active {
font-family: SemiBold;
}
> .label { > .label {
flex: 1; flex: 1;
font-weight: 400; font-weight: 400;
@@ -220,8 +247,28 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
>.icon{
width: 2.5rem;
height: 2.5rem;
}
} }
} }
} }
} }
.history-item-menu {
user-select: none;
> div {
cursor: pointer;
padding: 0.5rem 1rem;
&:hover {
background-color: rgba(0, 0, 0, 0.06);
}
}
> .rename {
color: #409eff;
}
> .delete {
color: #ff4d4f;
}
}
</style> </style>

View File

@@ -98,8 +98,7 @@
.register > .right > .box > .tip, .register > .right > .box > .tip,
.login > .right > .box > .tip { .login > .right > .box > .tip {
font-weight: 400; font-weight: 400;
font-family: General Sans Variable; font-family: Regular;
font-style: Regular;
font-size: 1.8rem; font-size: 1.8rem;
color: #666; color: #666;
margin-top: 0.4rem; margin-top: 0.4rem;
@@ -109,6 +108,10 @@
margin-top: 5rem; margin-top: 5rem;
width: 100%; width: 100%;
} }
.register > .right > .box > .el-form::v-deep,
.login > .right > .box > .el-form::v-deep {
font-family: Regular;
}
.register > .right > .box > .el-form::v-deep .el-form-item, .register > .right > .box > .el-form::v-deep .el-form-item,
.login > .right > .box > .el-form::v-deep .el-form-item { .login > .right > .box > .el-form::v-deep .el-form-item {
margin-bottom: 2rem; margin-bottom: 2rem;
@@ -118,6 +121,7 @@
color: #252727; color: #252727;
font-size: 1.8rem; font-size: 1.8rem;
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
font-family: Medium;
} }
.register > .right > .box > .el-form::v-deep .el-input, .register > .right > .box > .el-form::v-deep .el-input,
.login > .right > .box > .el-form::v-deep .el-input { .login > .right > .box > .el-form::v-deep .el-input {
@@ -167,12 +171,14 @@
border-radius: 0.8rem; border-radius: 0.8rem;
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
font-family: SemiBold;
} }
.register > .right > .box > .tip-2, .register > .right > .box > .tip-2,
.login > .right > .box > .tip-2 { .login > .right > .box > .tip-2 {
font-weight: 400; font-weight: 400;
font-size: 1.6rem; font-size: 1.6rem;
color: #666; color: #666;
font-family: Regular;
} }
.register > .right > .box > .tip-2::v-deep > span, .register > .right > .box > .tip-2::v-deep > span,
.login > .right > .box > .tip-2::v-deep > span { .login > .right > .box > .tip-2::v-deep > span {

View File

@@ -2,8 +2,8 @@
<div class="index background-pink"> <div class="index background-pink">
<div class="header"> <div class="header">
<p class="split"></p> <p class="split"></p>
<button class="login" @click="onLogin">{{ $t('Login.Login') }}</button> <button class="login" @click="onLogin">{{ $t('Login.login') }}</button>
<button class="register" @click="onRegister">{{ $t('Login.SignUp') }}</button> <button class="register" @click="onRegister">{{ $t('Login.signUp') }}</button>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -95,8 +95,8 @@
>.tip { >.tip {
font-weight: 400; font-weight: 400;
font-family: General Sans Variable; font-family: Regular;
font-style: Regular; // font-style: Regular;
font-size: 1.8rem; font-size: 1.8rem;
color: #666; color: #666;
margin-top: 0.4rem; margin-top: 0.4rem;
@@ -107,6 +107,8 @@
width: 100%; width: 100%;
&::v-deep { &::v-deep {
font-family: Regular;
.el-form-item { .el-form-item {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
@@ -115,6 +117,7 @@
color: #252727; color: #252727;
font-size: 1.8rem; font-size: 1.8rem;
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
font-family: Medium;
} }
.el-input { .el-input {
@@ -167,6 +170,7 @@
border-radius: 0.8rem; border-radius: 0.8rem;
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
font-family: SemiBold;
} }
} }
} }
@@ -175,6 +179,7 @@
font-weight: 400; font-weight: 400;
font-size: 1.6rem; font-size: 1.6rem;
color: #666; color: #666;
font-family: Regular;
&::v-deep>span { &::v-deep>span {
text-decoration: underline; text-decoration: underline;

View File

@@ -17,10 +17,10 @@
<img src="@/assets/images/login/elephant.png" /> <img src="@/assets/images/login/elephant.png" />
<template v-if="!isVisible"> <template v-if="!isVisible">
<div class="title"> <div class="title">
<span>{{ $t('Login.LoginTo') }}</span> <span>{{ $t('Login.loginTo') }}</span>
<img src="@/assets/images/logo-2.png" /> <img src="@/assets/images/logo-2.png" />
</div> </div>
<div class="tip">{{ $t('Login.LoginTitle') }}</div> <div class="tip">{{ $t('Login.loginTitle') }}</div>
<el-form :model="formData" :rules="ruleForm" label-position="top" ref="formRef"> <el-form :model="formData" :rules="ruleForm" label-position="top" ref="formRef">
<el-form-item :label="$t('Login.email')" prop="email"> <el-form-item :label="$t('Login.email')" prop="email">
<el-input <el-input
@@ -48,7 +48,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button class="submit" type="primary" @click="onSubmit">{{ <el-button class="submit" type="primary" @click="onSubmit">{{
$t('Login.Login') $t('Login.login')
}}</el-button> }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@@ -30,7 +30,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 1.6rem; font-size: 1.6rem;
font-family: Regular;
&::before, &::before,
&::after { &::after {
content: ''; content: '';

View File

@@ -44,7 +44,7 @@
clearTime() clearTime()
}) })
onMounted(() => { onMounted(() => {
setTime(5) setTime()
}) })
const onResend = () => { const onResend = () => {
if (time.value > 0) return if (time.value > 0) return
@@ -66,14 +66,16 @@
font-weight: 600; font-weight: 600;
font-size: 4rem; font-size: 4rem;
color: #252727; color: #252727;
font-family: SemiBold;
} }
> .tip { > .tip {
margin-top: 2rem; margin-top: 2rem;
font-size: 1.8rem; font-size: 1.8rem;
color: #666; color: #666;
> span { font-family: Regular;
&::v-deep > span {
color: #252727; color: #252727;
font-weight: 600; font-family: Medium;
} }
} }
> .input-code { > .input-code {
@@ -87,17 +89,20 @@
border-radius: 0.8rem; border-radius: 0.8rem;
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
font-family: SemiBold;
} }
> .time { > .time {
user-select: none; user-select: none;
margin-top: 2rem; margin-top: 2rem;
font-size: 1.6rem; font-size: 1.6rem;
color: #666; color: #666;
font-family: Regular;
> span { > span {
color: #ff7a50; color: #ff7a50;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
font-weight: 500; font-weight: 500;
font-family: Medium;
} }
} }
} }

View File

@@ -15,7 +15,11 @@
:key="i" :key="i"
:state="active === i ? 1 : active > i ? 0 : 2" :state="active === i ? 1 : active > i ? 0 : 2"
> >
<img v-show="i === active" src="@/assets/images/nuic/nav-active.png" draggable="false" /> <img
v-show="i === active"
src="@/assets/images/nuic/nav-active.png"
draggable="false"
/>
</div> </div>
</div> </div>
<component class="view" :is="list[active]" @next="onNext" /> <component class="view" :is="list[active]" @next="onNext" />
@@ -68,6 +72,7 @@
> span { > span {
font-weight: 600; font-weight: 600;
font-size: 3.3rem; font-size: 3.3rem;
font-family: SemiBold;
} }
} }
> .header { > .header {
@@ -133,6 +138,7 @@
cursor: pointer; cursor: pointer;
margin-right: 3.4rem; margin-right: 3.4rem;
background-color: #fff; background-color: #fff;
font-family: SemiBold;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }

View File

@@ -39,6 +39,8 @@
margin-bottom: 2rem; margin-bottom: 2rem;
&::v-deep > b { &::v-deep > b {
font-size: 4.8rem; font-size: 4.8rem;
font-family: Migra-Extrabold;
font-style: italic;
} }
} }
> .tip { > .tip {
@@ -46,6 +48,7 @@
font-size: 2rem; font-size: 2rem;
color: #585858; color: #585858;
margin-bottom: 8.7rem; margin-bottom: 8.7rem;
font-family: Regular;
} }
} }
</style> </style>

View File

@@ -45,6 +45,8 @@
margin-bottom: 6rem; margin-bottom: 6rem;
&::v-deep > b { &::v-deep > b {
font-size: 4.8rem; font-size: 4.8rem;
font-family: Migra-Extrabold;
font-style: italic;
} }
} }
> .list { > .list {
@@ -85,6 +87,7 @@
color: #fff; color: #fff;
margin-bottom: 1rem; margin-bottom: 1rem;
text-shadow: 1px 1px 4.7px #d9692b; text-shadow: 1px 1px 4.7px #d9692b;
font-family: SemiBold;
} }
} }
} }

View File

@@ -5,13 +5,25 @@
<div class="select-item"> <div class="select-item">
<div class="title">{{ $t('Nuic.basedIn') }}</div> <div class="title">{{ $t('Nuic.basedIn') }}</div>
<el-select v-model="data.based"> <el-select v-model="data.based">
<el-option v-for="v in data.basedList" :key="v.value" :label="v.label" :value="v.value" /> <el-option
class="el-select__option"
v-for="v in data.basedList"
:key="v.value"
:label="v.label"
:value="v.value"
/>
</el-select> </el-select>
</div> </div>
<div class="select-item"> <div class="select-item">
<div class="title">{{ $t('Nuic.role') }}</div> <div class="title">{{ $t('Nuic.role') }}</div>
<el-select v-model="data.role"> <el-select v-model="data.role">
<el-option v-for="v in data.roleList" :key="v.value" :label="v.label" :value="v.value" /> <el-option
class="el-select__option"
v-for="v in data.roleList"
:key="v.value"
:label="v.label"
:value="v.value"
/>
</el-select> </el-select>
</div> </div>
<div class="btns"> <div class="btns">
@@ -49,8 +61,10 @@
font-weight: 500; font-weight: 500;
font-size: 4rem; font-size: 4rem;
margin-bottom: 9.8rem; margin-bottom: 9.8rem;
> b { &::v-deep > b {
font-size: 4.8rem; font-size: 4.8rem;
font-family: Migra-Extrabold;
font-style: italic;
} }
} }
> .select-item { > .select-item {
@@ -62,11 +76,14 @@
font-size: 3.6rem; font-size: 3.6rem;
font-weight: 800; font-weight: 800;
color: #252727; color: #252727;
font-family: Migra-Extrabold;
font-style: italic;
} }
> .el-select { > .el-select {
width: 100%; width: 100%;
--el-border-radius-base: 0.8rem; --el-border-radius-base: 0.8rem;
&::v-deep { &::v-deep {
font-family: Regular;
.el-select__wrapper { .el-select__wrapper {
min-height: auto; min-height: auto;
height: 6rem; height: 6rem;
@@ -80,4 +97,8 @@
margin-top: 15.8rem; margin-top: 15.8rem;
} }
} }
.el-select__option {
padding: 0 1.8rem;
}
</style> </style>