Skip to content

Commit

Permalink
Merge pull request #144 from traPtitech/feat/404_page
Browse files Browse the repository at this point in the history
404ページ
  • Loading branch information
mehm8128 authored Jun 9, 2024
2 parents 1213fcb + 8f22132 commit ef808e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/pages/NotFound.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script setup lang="ts">
import PageContainer from '/@/components/Layout/PageContainer.vue'
</script>

<template>
<page-container :class="$style.container">
<h1>404 Not Found</h1>
<p>お探しのページは見つかりませんでした。</p>
</page-container>
</template>

<style lang="scss" module>
.container {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
</style>
6 changes: 6 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const ProjectPage = () => import('/@/pages/ProjectPage.vue')
const ContestsPage = () => import('/@/pages/ContestsPage.vue')
const ContestPage = () => import('/@/pages/ContestPage.vue')
const ContestTeamPage = () => import('/@/pages/ContestTeamPage.vue')
const NotFound = () => import('/@/pages/NotFound.vue')

const routes = [
{
Expand Down Expand Up @@ -77,6 +78,11 @@ const routes = [
path: '/contests/:contestId/teams/:teamId',
name: 'ContestTeam',
component: ContestTeamPage
},
{
path: '/:path(.*)*',
name: 'NotFound',
component: NotFound
}
]

Expand Down

0 comments on commit ef808e0

Please sign in to comment.