Skip to content

Commit

Permalink
feat: ディレクトリ構造を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
reiroop committed Dec 31, 2024
1 parent 5f15a2c commit 3f9f77e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/layouts/SideNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const route = useRoute()
<template>
<nav class="flex flex-col gap-2 py-2 pr-2">
<SideNavigationButton :is-here="route.path === '/'" path="/" text="home" />
<SideNavigationButton :is-here="route.path === '/about'" path="/about" text="about" />
<SideNavigationButton
:is-here="route.path === '/membership'"
path="/membership"
text="membership"
/>
</nav>
</template>
5 changes: 0 additions & 5 deletions src/pages/AboutPage.vue

This file was deleted.

File renamed without changes.
5 changes: 5 additions & 0 deletions src/pages/membership/membershipPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
<h1>This is an membership page</h1>
</div>
</template>
10 changes: 5 additions & 5 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import HomeView from '@/pages/HomeView.vue'
import homePage from '@/pages/homePage.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
Expand All @@ -7,15 +7,15 @@ const router = createRouter({
{
path: '/',
name: 'home',
component: HomeView,
component: homePage,
},
{
path: '/about',
name: 'about',
path: '/membership',
name: 'membership',
// 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('@/pages/AboutPage.vue'),
component: () => import('@/pages/membership/membershipPage.vue'),
},
],
})
Expand Down

0 comments on commit 3f9f77e

Please sign in to comment.