Switch to Astro
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
6741f91f5c
commit
9241dc0783
46 changed files with 3009 additions and 5145 deletions
|
|
@ -1,34 +0,0 @@
|
|||
<template>
|
||||
<div class="container">
|
||||
<h1 class="title">Vänner Bästa</h1>
|
||||
<p>
|
||||
A Young Royals fan website with links to different discussion
|
||||
spaces.
|
||||
</p>
|
||||
<strong>Season 2 coming out November 2022</strong>
|
||||
<div class="grid-3">
|
||||
<LinkCard
|
||||
title="Watch"
|
||||
to="https://www.netflix.com/title/81210762"
|
||||
/>
|
||||
<LinkCard title="Discord" to="https://discord.gg/hyKVDeRJ8Y" />
|
||||
<LinkCard
|
||||
title="Reddit"
|
||||
to="https://www.reddit.com/r/YoungRoyals/"
|
||||
/>
|
||||
<LinkCard
|
||||
title="Babbel (ref)"
|
||||
to="https://www.talkable.com/x/IchxFl"
|
||||
/>
|
||||
<LinkCard
|
||||
title="Matrix"
|
||||
to="https://matrix.to/#/#young-royals:matrix.org"
|
||||
/>
|
||||
<LinkCard title="Discord Utilities" to="/utilities" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@/assets/styles/index.scss';
|
||||
</script>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<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 setup>
|
||||
const navLinks = [
|
||||
{
|
||||
img: {
|
||||
name: '/icons/arrow-left.svg',
|
||||
alt: 'Back to Utilities',
|
||||
},
|
||||
to: '/utilities',
|
||||
name: "Utilities",
|
||||
},
|
||||
{
|
||||
img: {
|
||||
name: '/icons/home.svg',
|
||||
alt: 'Go Home',
|
||||
},
|
||||
to: '/',
|
||||
name: "Home",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<template>
|
||||
<NavBar :links="navLinks" />
|
||||
<div class="container">
|
||||
<h1 class="title">Utilities for the Discord Server</h1>
|
||||
<div class="grid-2">
|
||||
<LinkCard title="Birthdays" to="/utilities/birthdays" />
|
||||
<LinkCard title="Time" to="/utilities/time" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const navLinks = [
|
||||
{
|
||||
img: {
|
||||
name: '/icons/home.svg',
|
||||
alt: 'Go Home',
|
||||
},
|
||||
to: '/',
|
||||
name: "Home",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
|
@ -1,144 +0,0 @@
|
|||
<template>
|
||||
<NavBar :links="navLinks" />
|
||||
<div class="container">
|
||||
<h1 class="title">Time Utilities</h1>
|
||||
<p>
|
||||
Your current timezone:
|
||||
{{ Intl.DateTimeFormat().resolvedOptions().timeZone }}
|
||||
</p>
|
||||
<p>The current time in Unix Epoch: <code>{{ Math.floor(crntTime / 1000) }}</code> <br /> or <code>{{crntTime}}</code> in Unix millis</p>
|
||||
|
||||
<p>
|
||||
To format the time for Discord, you can use: <br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:f>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code
|
||||
>{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
}).format(crntTime)
|
||||
}}
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
<br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:F>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code
|
||||
>{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
weekday: 'long',
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
}).format(crntTime)
|
||||
}}
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
<br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:t>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code>
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
<br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:T>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code>
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
<br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:d>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code>
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
<br />
|
||||
<code>
|
||||
{{ `<t:${Math.floor(crntTime / 1000)}:D>` }}
|
||||
</code>
|
||||
<span>
|
||||
to get
|
||||
<code>
|
||||
{{
|
||||
Intl.DateTimeFormat(Intl.Locale, {
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
}).format(crntTime)
|
||||
}}</code
|
||||
></span
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const crntTime = Date.now();
|
||||
const navLinks = [
|
||||
{
|
||||
img: {
|
||||
name: '/icons/arrow-left.svg',
|
||||
alt: 'Back to Utilities',
|
||||
},
|
||||
to: '/utilities',
|
||||
name: 'Utilities',
|
||||
},
|
||||
{
|
||||
img: {
|
||||
name: '/icons/home.svg',
|
||||
alt: 'Go Home',
|
||||
},
|
||||
to: '/',
|
||||
name: 'Home',
|
||||
},
|
||||
];
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue