[Doc] add introduction page (#452)

This commit is contained in:
neverland
2017-12-19 13:08:09 +08:00
committed by GitHub
parent 79a2b13b63
commit 02a8c2a592
13 changed files with 161 additions and 38 deletions

View File

@@ -39,3 +39,33 @@ export default {
}
};
</script>
<style lang="postcss">
.van-doc-intro {
text-align: center;
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
&__youzan {
width: 32px;
height: 32px;
display: block;
margin: 25px 0 0;
}
&__logo {
width: 120px;
height: 120px;
}
h2 {
font-size: 32px;
line-height: 60px;
font-weight: normal;
}
p {
font-size: 15px;
color: #455a64;
}
}
</style>

View File

@@ -32,6 +32,11 @@ module.exports = {
groups: [
{
list: [
{
path: '/intro',
title: '介绍',
noExample: true
},
{
path: '/quickstart',
title: '快速上手',
@@ -315,6 +320,11 @@ module.exports = {
groups: [
{
list: [
{
path: '/intro',
title: 'Introduction',
noExample: true
},
{
path: '/quickstart',
title: 'Getting Started',

View File

@@ -22,7 +22,7 @@ const registerRoute = (isExample) => {
} else {
route.push({
path: `/${lang}`,
redirect: `/${lang}/component/quickstart`
redirect: `/${lang}/component/intro`
});
}