2024-01-02 22:19:14 +00:00
|
|
|
---
|
|
|
|
import Layout from '../layouts/Layout.astro'
|
|
|
|
import BaseSection from '../layouts/baseSection.astro'
|
|
|
|
import TACard from '../components/taCard.astro'
|
2024-01-09 13:30:28 +00:00
|
|
|
import { plsLoadTAEntry } from '../utils/tools'
|
2024-01-02 22:19:14 +00:00
|
|
|
|
|
|
|
export interface Props {
|
2024-01-09 18:09:53 +00:00
|
|
|
collectionKey: string
|
2024-01-02 22:19:14 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 18:09:53 +00:00
|
|
|
const { collectionKey } = Astro.props
|
|
|
|
const taEntry = await plsLoadTAEntry(collectionKey)
|
2024-01-09 13:30:28 +00:00
|
|
|
const pagetitle = `${taEntry.info.title} - FGO TA`
|
2024-01-09 16:01:31 +00:00
|
|
|
taEntry.data.sort((a, b) => b.date.valueOf() - a.date.valueOf() )
|
2024-01-02 22:19:14 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<Layout
|
2024-01-04 23:43:02 +00:00
|
|
|
title={pagetitle}
|
2024-01-02 22:19:14 +00:00
|
|
|
currentpage="database-entry"
|
2024-01-09 13:30:28 +00:00
|
|
|
descriptionOverride={taEntry.info.shortdescription}
|
2024-01-02 22:19:14 +00:00
|
|
|
>
|
|
|
|
<a href="/database"><< Back to database</a>
|
2024-01-09 13:30:28 +00:00
|
|
|
<BaseSection
|
|
|
|
title={taEntry.info.title}
|
|
|
|
description={taEntry.info.description}
|
|
|
|
>
|
|
|
|
{taEntry.data.map((item) => <TACard {...item} />)}
|
2024-01-02 22:19:14 +00:00
|
|
|
</BaseSection>
|
|
|
|
<div class="placeholder"></div>
|
|
|
|
</Layout>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.placeholder {
|
|
|
|
visibility: hidden;
|
|
|
|
width: 100%;
|
|
|
|
height: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
</style>
|