Added about page.

This commit is contained in:
Andrew Lalis 2023-03-29 11:55:19 +02:00
parent cde09d1b50
commit 4d396819c4
5 changed files with 52 additions and 7 deletions

View File

@ -2,6 +2,13 @@ export default {
mainLayout: { mainLayout: {
language: 'Language', language: 'Language',
pages: 'Pages', pages: 'Pages',
menu: {
gyms: 'Gyms',
leaderboard: 'Global Leaderboard',
users: 'Users',
adminPanel: 'Admin Panel',
about: 'About Gymboard'
}
}, },
registerPage: { registerPage: {
title: 'Create a Gymboard Account', title: 'Create a Gymboard Account',

View File

@ -2,6 +2,13 @@ export default {
mainLayout: { mainLayout: {
language: 'Taal', language: 'Taal',
pages: "Pagina's", pages: "Pagina's",
menu: {
gyms: 'Sportscholen',
leaderboard: 'Wereldwijd klassement',
users: 'Gebruikers',
adminPanel: 'Adminpaneel',
about: 'Over Gymboard'
}
}, },
registerPage: { registerPage: {
title: 'Maak een nieuwe Gymboard account aan', title: 'Maak een nieuwe Gymboard account aan',

View File

@ -24,22 +24,27 @@
<q-list> <q-list>
<q-item clickable to="/"> <q-item clickable to="/">
<q-item-section> <q-item-section>
<q-item-label>Gyms</q-item-label> <q-item-label>{{ $t('mainLayout.menu.gyms') }}</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable> <q-item clickable>
<q-item-section> <q-item-section>
<q-item-label>Global Leaderboard</q-item-label> <q-item-label>{{ $t('mainLayout.menu.leaderboard') }}</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable to="/users"> <q-item clickable to="/users">
<q-item-section> <q-item-section>
<q-item-label>Users</q-item-label> <q-item-label>{{ $t('mainLayout.menu.users') }}</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable to="/admin" v-if="authStore.isAdmin"> <q-item clickable to="/admin" v-if="authStore.isAdmin">
<q-item-section> <q-item-section>
<q-item-label>Admin Panel</q-item-label> <q-item-label>{{ $t('mainLayout.menu.adminPanel') }}</q-item-label>
</q-item-section>
</q-item>
<q-item clickable to="/about">
<q-item-section>
<q-item-label>{{ $t('mainLayout.menu.about')}}</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
</q-list> </q-list>

View File

@ -0,0 +1,24 @@
<template>
<q-page>
<StandardCenteredPage>
<h3 class="text-center">About Gymboard</h3>
<p>
Gymboard is a platform for sharing and celebrating your lifting
achievements. Record your lift, submit it to your gym's page, and climb
the leaderboards!
</p>
<p>
A more substantial piece of text and media will be added here soon.
</p>
</StandardCenteredPage>
</q-page>
</template>
<script setup lang="ts">
import StandardCenteredPage from 'components/StandardCenteredPage.vue';
</script>
<style scoped>
</style>

View File

@ -13,8 +13,9 @@ import SubmissionPage from 'pages/SubmissionPage.vue';
import UserPage from 'pages/user/UserPage.vue'; import UserPage from 'pages/user/UserPage.vue';
import UserSettingsPage from 'pages/auth/UserSettingsPage.vue'; import UserSettingsPage from 'pages/auth/UserSettingsPage.vue';
import UserSearchPage from 'pages/UserSearchPage.vue'; import UserSearchPage from 'pages/UserSearchPage.vue';
import AdminPage from "pages/admin/AdminPage.vue"; import AdminPage from 'pages/admin/AdminPage.vue';
import {useAuthStore} from "stores/auth-store"; import {useAuthStore} from 'stores/auth-store';
import AboutPage from 'pages/AboutPage.vue';
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
// Auth-related pages, which live outside the main layout. // Auth-related pages, which live outside the main layout.
@ -50,7 +51,8 @@ const routes: RouteRecordRaw[] = [
const s = useAuthStore(); const s = useAuthStore();
if (!s.isAdmin) return '/'; // Redirect non-admins to the main page. if (!s.isAdmin) return '/'; // Redirect non-admins to the main page.
} }
} },
{ path: 'about', component: AboutPage },
], ],
}, },