2023-07-17 21:34:53 +00:00
|
|
|
---
|
|
|
|
import Navbar from '../components/navbar.astro'
|
|
|
|
import NavbarEntry from '../components/navbarEntry.astro'
|
2024-01-02 22:19:14 +00:00
|
|
|
import navdata from '../../static/data/_navdata.json'
|
|
|
|
import embed from '../assets/embed.png'
|
|
|
|
import home from 'iconoir/icons/home.svg'
|
|
|
|
import database from 'iconoir/icons/database.svg'
|
2024-04-28 12:45:59 +00:00
|
|
|
import databasestar from 'iconoir/icons/database-star.svg'
|
2024-01-07 12:01:36 +00:00
|
|
|
import mail from 'iconoir/icons/mail.svg'
|
2024-01-04 23:43:02 +00:00
|
|
|
import type { IconsLookup } from '../types/generic'
|
2023-07-17 21:34:53 +00:00
|
|
|
|
|
|
|
export interface Props {
|
|
|
|
title: string
|
|
|
|
currentpage: string
|
|
|
|
descriptionOverride?: string
|
|
|
|
}
|
|
|
|
|
2024-01-02 22:19:14 +00:00
|
|
|
const icons: IconsLookup = {
|
|
|
|
home: home,
|
2024-01-02 22:58:10 +00:00
|
|
|
database: database,
|
2024-04-28 12:45:59 +00:00
|
|
|
databasestar: databasestar,
|
2024-01-07 12:01:36 +00:00
|
|
|
about: mail
|
2024-01-02 22:19:14 +00:00
|
|
|
}
|
|
|
|
|
2023-07-17 21:34:53 +00:00
|
|
|
const { descriptionOverride, currentpage, title } = Astro.props
|
|
|
|
let description
|
|
|
|
|
|
|
|
if (descriptionOverride === undefined) {
|
|
|
|
description = 'FGO TA Catalogue'
|
|
|
|
} else {
|
|
|
|
description = descriptionOverride
|
|
|
|
}
|
|
|
|
|
|
|
|
let currPage = 'https://fgo-ta.com/'
|
|
|
|
if (currentpage !== 'home') {
|
|
|
|
currPage += currentpage
|
|
|
|
}
|
2024-01-02 22:19:14 +00:00
|
|
|
|
|
|
|
const mapped_navdata = navdata.map((item) => ({
|
|
|
|
...item,
|
|
|
|
...{ icon: icons[item.icon] },
|
|
|
|
}))
|
2023-07-17 21:34:53 +00:00
|
|
|
---
|
|
|
|
|
2024-01-02 22:58:10 +00:00
|
|
|
<!doctype html>
|
2023-07-17 21:34:53 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>{title}</title>
|
|
|
|
<!-- Meta Tags -->
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
|
|
|
<meta name="generator" content={Astro.generator} />
|
|
|
|
<meta name="description" content={description} />
|
|
|
|
<meta property="og:title" content={title} />
|
|
|
|
<meta property="og:url" content={currPage} />
|
|
|
|
<meta property="og:description" content={description} />
|
2024-01-02 22:19:14 +00:00
|
|
|
<meta property="og:image" content={embed.src} />
|
2023-07-17 21:34:53 +00:00
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:locale" content="en_US" />
|
|
|
|
<meta name="theme-color" content="#b86cff" />
|
|
|
|
<!-- Links -->
|
2024-01-02 22:19:14 +00:00
|
|
|
<link rel="icon" type="image/ico" href="/favicon.ico" />
|
2023-07-17 21:34:53 +00:00
|
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
|
|
|
<link href="https://mastodon.neshweb.net/@Firq" rel="me" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<Navbar>
|
|
|
|
{
|
2024-01-02 22:19:14 +00:00
|
|
|
mapped_navdata.map((item) => (
|
2024-01-03 19:39:58 +00:00
|
|
|
<NavbarEntry
|
|
|
|
currentPage={currentpage}
|
|
|
|
navtype="desktop"
|
|
|
|
{...item}
|
|
|
|
slot="desktop"
|
|
|
|
/>
|
|
|
|
))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
mapped_navdata.map((item) => (
|
|
|
|
<NavbarEntry
|
|
|
|
currentPage={currentpage}
|
|
|
|
navtype="mobile"
|
|
|
|
{...item}
|
|
|
|
slot="mobile"
|
|
|
|
/>
|
2023-07-17 21:34:53 +00:00
|
|
|
))
|
|
|
|
}
|
|
|
|
</Navbar>
|
|
|
|
<slot />
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<style is:global>
|
|
|
|
:root {
|
|
|
|
--hover-scale: 1.05;
|
2024-04-30 23:37:29 +00:00
|
|
|
--speed: 0.5;
|
2023-07-17 21:34:53 +00:00
|
|
|
--ease: 50%;
|
|
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
|
--c-darkgray: #1e1e1e;
|
|
|
|
--c-duskgray: #242424;
|
|
|
|
--c-gray: #2e2e2e;
|
|
|
|
--c-lightgray: #3e3e3e;
|
|
|
|
--c-darkpurple: #b86cff;
|
2024-01-03 22:30:50 +00:00
|
|
|
--c-lighterpurple: #c98fff;
|
2023-07-17 21:34:53 +00:00
|
|
|
--c-purplepink: #c105ff;
|
|
|
|
--c-darkergray: #1b1b1b;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
background: var(--c-lightgray);
|
|
|
|
margin: 0px;
|
|
|
|
}
|
2024-01-03 19:39:58 +00:00
|
|
|
|
|
|
|
.visually-hidden {
|
|
|
|
border: 0;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
height: 1px;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
}
|
2023-07-17 21:34:53 +00:00
|
|
|
</style>
|