diff --git a/src/components/Leaderboard.vue b/src/components/Leaderboard.vue new file mode 100644 index 0000000..cc7873d --- /dev/null +++ b/src/components/Leaderboard.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/src/main.ts b/src/main.ts index e5b5bb6..60bfdb0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,14 +1,20 @@ import { createApp } from 'vue' -import { createWebHistory, createRouter } from 'vue-router' -import './style.css' +import { createRouter, createWebHistory } from 'vue-router' import App from './App.vue' +import Leaderboard from './components/Leaderboard.vue' import Main from './components/Main.vue' +import './style.css' const routes = [ { path: '/', component: Main, }, + { + path: '/leaderboard/:id', + name: 'leaderboard', + component: Leaderboard, + } ] const router = createRouter({