Added a simple NavBar on some pages

This commit is contained in:
Louis Hollingworth 2022-05-22 22:04:20 +01:00
parent 8cb418dbba
commit f2aef2012b
No known key found for this signature in database
GPG key ID: 1E66DEA3F5D623D1
9 changed files with 108 additions and 23 deletions

View file

@ -1,7 +1,42 @@
<template>
<div class="container">
<h1 class="title">Birthdays</h1>
<p>Discord bots are changing. <br> This means that we can no longer provide you with the command to set your birthday. <br> Instead, this page now gives you your timezone for use with Discord bots.</p>
<h2>Your timezone: {{ Intl.DateTimeFormat().resolvedOptions().timeZone }}</h2>
</div>
</template>
<NavBar :links="navLinks" />
<div class="container">
<h1 class="title">Birthdays</h1>
<p>
Discord bots are changing. <br />
This means that we can no longer provide you with the command to set
your birthday. <br />
Instead, this page now gives you your timezone for use with Discord
bots.
</p>
<h2>
Your timezone:
{{ Intl.DateTimeFormat().resolvedOptions().timeZone }}
</h2>
</div>
</template>
<script>
export default {
data() {
return {
navLinks: [
{
img: {
name: '/icons/arrow-left.svg',
alt: 'Back to Utilities',
},
to: '/utilities',
},
{
img: {
name: '/icons/home.svg',
alt: 'Home',
},
to: '/',
},
],
};
},
};
</script>

View file

@ -1,9 +1,25 @@
<template>
<NavBar :links="navLinks" />
<div class="container">
<h1 class="title">Utilities for the Discord Server</h1>
<LinkCard
title="Birthdays"
to="/utilities/birthdays"
/>
<LinkCard title="Birthdays" to="/utilities/birthdays" />
</div>
</template>
<script>
export default {
data() {
return {
navLinks: [
{
img: {
name: '/icons/home.svg',
alt: 'Home',
},
to: '/',
},
],
};
},
};
</script>