Commit 28fd46b0 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

refactor home and about pages

parent b54a6909
Pipeline #31621 passed with stages
in 3 minutes and 43 seconds
import Vue from 'vue';
import Router from 'vue-router';
import About from '@/views/about/about.vue';
import Catalogstats from '@/views/stats/stats.vue';
import Compare from '@/views/compare/compare.vue'
import GeneDetail from '@/views/GeneDetail.vue';
import Genes from '@/views/genes/genes.vue';
import Home from '@/views/Home.vue';
import Home from '@/views/home/home.vue';
Vue.use(Router);
......@@ -41,10 +42,7 @@ export default new Router({
{
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
component: About,
},
],
});
<template>
<div class="about">
<h1>This is an about page</h1>
</div>
</template>
<template>
<h1>Welcome!</h1>
</template>
<script>
export default {
};
</script>
<div class="about">
<h1>This is an about page</h1>
</div>
\ No newline at end of file
<template src="./about.html" lang="html"></template>
<script src="./about.js" lang="js"></script>
\ No newline at end of file
<div class="home">
</div>
\ No newline at end of file
export default {
};
\ No newline at end of file
<template src="./home.html" lang="html"></template>
<script src="./home.js" lang="js"></script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment