You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2021/10/21 08:59:09 UTC
[incubator-linkis-website] 04/43: ADD: 增加首页相关的页面
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
commit 6dcddb62e90e03fbee494df1b040a4cc46231360
Author: lucaszhu <lu...@webank.com>
AuthorDate: Wed Sep 29 15:36:05 2021 +0800
ADD: 增加首页相关的页面
---
index.html | 2 +-
src/App.vue | 4 +--
src/main.js | 4 +++
src/pages/blog.vue | 4 ++-
src/pages/docs.vue | 3 +++
src/pages/download.vue | 3 +++
src/pages/faq.vue | 3 +++
src/pages/home.vue | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++
src/pages/team.vue | 3 +++
src/router.js | 12 ++++-----
10 files changed, 101 insertions(+), 10 deletions(-)
diff --git a/index.html b/index.html
index 030a6ff..d8b1bf3 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Vite App</title>
+ <title>Apache Linkis</title>
</head>
<body>
<div id="app"></div>
diff --git a/src/App.vue b/src/App.vue
index 135a713..f8720df 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,7 +22,7 @@
</div>
</div>
</nav>
- <router-view/>
+ <router-view></router-view>
<footer class="footer">
<div class="ctn-block">
<div class="footer-links-row">
@@ -89,7 +89,7 @@
transition: all ease .2s;
cursor: pointer;
&:hover,
- &.router-link-active{
+ &.router-link-exact-active{
color: @active-color;
border-color: @active-color;
}
diff --git a/src/main.js b/src/main.js
index 73108e3..c8d6c67 100644
--- a/src/main.js
+++ b/src/main.js
@@ -8,6 +8,10 @@ const router = createRouter({
routes,
})
+router.resolve({
+ name: 'home'
+}).href
+
const app = createApp(App);
app.use(router);
diff --git a/src/pages/blog.vue b/src/pages/blog.vue
index 8b13789..08ba385 100644
--- a/src/pages/blog.vue
+++ b/src/pages/blog.vue
@@ -1 +1,3 @@
-
+<template>
+ <div>blog</div>
+</template>
diff --git a/src/pages/docs.vue b/src/pages/docs.vue
index e69de29..b33becc 100644
--- a/src/pages/docs.vue
+++ b/src/pages/docs.vue
@@ -0,0 +1,3 @@
+<template>
+ <div>docs</div>
+</template>
diff --git a/src/pages/download.vue b/src/pages/download.vue
index e69de29..35a96c7 100644
--- a/src/pages/download.vue
+++ b/src/pages/download.vue
@@ -0,0 +1,3 @@
+<template>
+ <div>download</div>
+</template>
diff --git a/src/pages/faq.vue b/src/pages/faq.vue
index 8b13789..d5741fa 100644
--- a/src/pages/faq.vue
+++ b/src/pages/faq.vue
@@ -1 +1,4 @@
+<template>
+ <div>faq</div>
+</template>
diff --git a/src/pages/home.vue b/src/pages/home.vue
index e69de29..c722258 100644
--- a/src/pages/home.vue
+++ b/src/pages/home.vue
@@ -0,0 +1,73 @@
+<template>
+ <div class="ctn-block home-page text-center">
+ <div class="banner">
+ <h1 class="home-title"><span class="apache">Apache</span> <span class="linkis">Linkis</span> <span class="badge">Incubating</span></h1>
+ <p class="home-desc">Decouple the upper applications and the underlying data<br>engines by building a middleware layer.</p>
+ <div class="botton-row">
+ <a href="/" class="corner-botton black">Get Started</a>
+ <a href="/" class="corner-botton white">GitHub</a>
+ </div>
+ </div>
+ </div>
+</template>
+<style lang="less" scoped>
+ @import url('/src/style/base.less');
+
+ .home-page {
+ .banner {
+ padding: 168px 0;
+ .home-title {
+ margin-bottom: 20px;
+ font-size: 60px;
+ line-height: 84px;
+
+ .apache {
+ color: @enhance-color;
+ }
+
+ .linkis {
+ color: #1A529C;
+ }
+
+ .badge {
+ font-size: 24px;
+ font-weight: 400;
+ }
+ }
+
+ .home-desc {
+ margin-bottom: 80px;
+ font-size: 24px;
+ color: @enhance-color;
+ text-align: center;
+ line-height: 26px;
+ font-weight: 400;
+ }
+
+ .botton-row{
+ display: flex;
+ justify-content: center;
+ .corner-botton{
+ margin-right: 22px;
+ padding: 0 40px;
+ height: 46px;
+ line-height: 46px;
+ border-radius: 25px;
+ &:last-child{
+ margin-right: 0;
+ }
+ &.black{
+ color: #fff;
+ background: @enhance-color;
+ border: 1px solid @enhance-color;
+ }
+ &.white{
+ color: @enhance-color;
+ background: #fff;
+ border: 1px solid @enhance-color;
+ }
+ }
+ }
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/src/pages/team.vue b/src/pages/team.vue
index e69de29..e98fedf 100644
--- a/src/pages/team.vue
+++ b/src/pages/team.vue
@@ -0,0 +1,3 @@
+<template>
+ <div>team</div>
+</template>
diff --git a/src/router.js b/src/router.js
index 49d76f7..d7f0ae9 100644
--- a/src/router.js
+++ b/src/router.js
@@ -3,12 +3,12 @@ const routes = [
path: '/',
component: () => import(/* webpackChunkName: "group-app" */ './app.vue'),
children: [
- { path: '', component: () => import(/* webpackChunkName: "group-home" */ './pages/home.vue') },
- { path: '/docs', component: () => import(/* webpackChunkName: "group-docs" */ './pages/docs.vue') },
- { path: '/faq', component: () => import(/* webpackChunkName: "group-faq" */ './pages/faq.vue') },
- { path: '/download', component: () => import(/* webpackChunkName: "group-download" */ './pages/download.vue') },
- { path: '/blog', component: () => import(/* webpackChunkName: "group-blog" */ './pages/blog.vue') },
- { path: '/team', component: () => import(/* webpackChunkName: "group-team" */ './pages/team.vue') },
+ { path: '', name: 'home', component: () => import(/* webpackChunkName: "group-home" */ './pages/home.vue') },
+ { path: 'docs', name: 'docs', component: () => import(/* webpackChunkName: "group-docs" */ './pages/docs.vue') },
+ { path: 'faq', name: 'faq', component: () => import(/* webpackChunkName: "group-faq" */ './pages/faq.vue') },
+ { path: 'download', name: 'download', component: () => import(/* webpackChunkName: "group-download" */ './pages/download.vue') },
+ { path: 'blog', name: 'blog', component: () => import(/* webpackChunkName: "group-blog" */ './pages/blog.vue') },
+ { path: 'team', name: 'team', component: () => import(/* webpackChunkName: "group-team" */ './pages/team.vue') },
]
}
]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org