Redesign
This commit is contained in:
parent
0b4bca36ed
commit
f1bb9b80ca
18 changed files with 372 additions and 43 deletions
src/pages/database
|
@ -3,11 +3,19 @@ import { getCollection } from 'astro:content';
|
|||
import Layout from '../../layouts/Layout.astro'
|
||||
import QuestListing from '../../components/questListing.astro'
|
||||
import DatabaseSection from '../../layouts/databaseSection.astro'
|
||||
import Title from '../../components/title.astro';
|
||||
|
||||
const description = 'FGO NA TA Database'
|
||||
const fulldata = await getCollection('taInfoData')
|
||||
const fulldata = await getCollection('taInfoData')
|
||||
const groups = await getCollection('groups')
|
||||
let combined = fulldata
|
||||
|
||||
fulldata.sort(
|
||||
for (const group of groups) {
|
||||
combined = combined.filter(data => !data.id.startsWith(group.id))
|
||||
}
|
||||
combined = combined.concat(groups as any)
|
||||
|
||||
combined.sort(
|
||||
(a, b) => b.data.info.releaseDate.valueOf() - a.data.info.releaseDate.valueOf() || b.data.info.releaseNumber - a.data.info.releaseNumber
|
||||
)
|
||||
|
||||
|
@ -18,8 +26,9 @@ fulldata.sort(
|
|||
currentpage="database"
|
||||
descriptionOverride={description}
|
||||
>
|
||||
<DatabaseSection title="NA Runs">
|
||||
{fulldata.map((quest) => <QuestListing { ...{...quest.data.info, slug: quest.id} } baseurl="database" />)}
|
||||
<Title maintext='TA DATA­BASE' subtext='A mostly up-to-date list of NA TA runs' fadeout={true}/>
|
||||
<DatabaseSection title="NA Runs" titlehidden={true}>
|
||||
{combined.map((quest) => <QuestListing { ...{...quest.data.info, slug: quest.id} } baseurl="database" />)}
|
||||
</DatabaseSection>
|
||||
</Layout>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue