2023-03-08 19:53:38 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
import Layout from './Layout.astro'
|
|
|
|
const { frontmatter } = Astro.props
|
2023-03-08 19:53:38 +00:00
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const title = `${frontmatter.title} - Firq FGO Site`
|
|
|
|
const description = frontmatter.description
|
2023-03-08 19:53:38 +00:00
|
|
|
const options_date: Intl.DateTimeFormatOptions = {
|
2023-03-09 10:44:18 +00:00
|
|
|
year: 'numeric',
|
|
|
|
month: 'long',
|
|
|
|
day: '2-digit',
|
2023-03-08 19:53:38 +00:00
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
const date = new Date(frontmatter.pubDate).toLocaleDateString(
|
|
|
|
'en-GB',
|
|
|
|
options_date
|
|
|
|
)
|
2023-03-08 19:53:38 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<Layout title={title} currentpage="blog" descriptionOverride={description}>
|
2023-03-10 18:22:05 +00:00
|
|
|
<a href="/blog"><i class="iconoir-fast-arrow-left"></i>Back to all posts</a>
|
2023-03-09 10:44:18 +00:00
|
|
|
<div>
|
|
|
|
<h1>
|
|
|
|
{frontmatter.title}
|
|
|
|
</h1>
|
|
|
|
<p>by {frontmatter.author} • Published on {date}</p>
|
|
|
|
<article>
|
|
|
|
<slot />
|
|
|
|
</article>
|
|
|
|
</div>
|
2023-03-08 19:53:38 +00:00
|
|
|
</Layout>
|
|
|
|
|
|
|
|
<style>
|
2023-03-10 18:22:05 +00:00
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
color: white;
|
|
|
|
background-color: var(--c-gray);
|
|
|
|
padding: 0.5rem 0px;
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
h1 {
|
|
|
|
color: white;
|
|
|
|
margin: 0.5rem 3rem 0.5rem 3rem;
|
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
max-width: max-content;
|
|
|
|
background-color: var(--c-darkgray);
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
color: white;
|
|
|
|
margin: 0.5rem 3rem 0.5rem 3rem;
|
|
|
|
padding: 0.25rem 0.75rem;
|
2023-03-09 15:03:04 +00:00
|
|
|
max-width: max-content;
|
2023-03-09 10:44:18 +00:00
|
|
|
background-color: var(--c-gray);
|
|
|
|
}
|
|
|
|
article :global(h2) {
|
|
|
|
margin-right: 3rem;
|
|
|
|
word-wrap: normal;
|
|
|
|
color: white;
|
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
max-width: max-content;
|
|
|
|
background-color: var(--c-darkgray);
|
|
|
|
}
|
|
|
|
article :global(a) {
|
|
|
|
color: var(--c-darkpurple);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
article {
|
|
|
|
color: white;
|
|
|
|
margin: 0.5rem 3rem 0.5rem 3rem;
|
|
|
|
font-size: 1.1em;
|
|
|
|
padding-bottom: 5rem;
|
|
|
|
}
|
|
|
|
article :global(.astro-code) {
|
|
|
|
width: auto;
|
|
|
|
padding: 1rem 1rem 1rem 2rem;
|
|
|
|
}
|
|
|
|
article :global(code) {
|
|
|
|
font-weight: bold;
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1500px) {
|
2023-03-08 19:53:38 +00:00
|
|
|
article {
|
2023-03-09 10:44:18 +00:00
|
|
|
margin-left: 15rem;
|
|
|
|
margin-right: 15rem;
|
2023-03-08 19:53:38 +00:00
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
h1 {
|
|
|
|
margin-left: 15rem;
|
|
|
|
margin-right: 15rem;
|
2023-03-08 19:53:38 +00:00
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
p {
|
|
|
|
margin-left: 15rem;
|
|
|
|
margin-right: 15rem;
|
2023-03-08 20:08:27 +00:00
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
2023-03-08 23:09:07 +00:00
|
|
|
</style>
|