mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs: update site subtitle (#10267)
This commit is contained in:
parent
8937f76d75
commit
506e2a9030
@ -4,7 +4,10 @@
|
||||
<div class="van-doc-header__top">
|
||||
<a class="van-doc-header__logo">
|
||||
<img :src="config.logo" />
|
||||
<span>{{ config.title }}</span>
|
||||
<span class="van-doc-header__title">{{ config.title }}</span>
|
||||
<span v-if="config.subtitle" class="van-doc-header__subtitle">
|
||||
{{ config.subtitle }}
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<ul class="van-doc-header__top-nav">
|
||||
@ -241,21 +244,27 @@ export default {
|
||||
&__logo {
|
||||
display: block;
|
||||
|
||||
img,
|
||||
span {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
width: 28px;
|
||||
margin-right: 12px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
color: #fff;
|
||||
font-size: 22px;
|
||||
}
|
||||
&__title {
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
font-size: 22px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__subtitle {
|
||||
display: inline-block;
|
||||
color: #999;
|
||||
margin-left: 8px;
|
||||
vertical-align: -4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
&__link {
|
||||
|
@ -27,7 +27,8 @@ export default {
|
||||
},
|
||||
locales: {
|
||||
'zh-CN': {
|
||||
title: 'Vant',
|
||||
title: 'Vant 3',
|
||||
subtitle: '(适用于 Vue 3)',
|
||||
description: '轻量、可靠的移动端组件库',
|
||||
logo: 'https://img.yzcdn.cn/vant/logo.png',
|
||||
langLabel: '中',
|
||||
@ -473,7 +474,8 @@ export default {
|
||||
],
|
||||
},
|
||||
'en-US': {
|
||||
title: 'Vant',
|
||||
title: 'Vant 3',
|
||||
subtitle: ' (for Vue 3)',
|
||||
description: 'Mobile UI Components built on Vue',
|
||||
logo: 'https://img.yzcdn.cn/vant/logo.png',
|
||||
langLabel: 'EN',
|
||||
|
Loading…
x
Reference in New Issue
Block a user