2023-01-15 16:53:19 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
import Navbar from '../components/navbar.astro'
|
|
|
|
import NavbarEntry from '../components/navbarEntry.astro'
|
2023-03-04 18:11:52 +00:00
|
|
|
import navdata from '../../static/_navdata.json'
|
|
|
|
|
2023-01-15 16:53:19 +00:00
|
|
|
export interface Props {
|
2023-03-09 10:44:18 +00:00
|
|
|
title: string
|
|
|
|
currentpage: string
|
|
|
|
descriptionOverride?: string
|
2023-01-15 16:53:19 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const { descriptionOverride, currentpage, title } = Astro.props
|
|
|
|
let description
|
2023-03-05 22:10:37 +00:00
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
if (descriptionOverride === undefined) {
|
|
|
|
description = 'Firqs own site!'
|
2023-03-05 22:10:37 +00:00
|
|
|
} else {
|
2023-03-09 10:44:18 +00:00
|
|
|
description = descriptionOverride
|
2023-03-05 22:10:37 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
let currPage = 'https://firq.dev/'
|
|
|
|
if (currentpage !== 'home') {
|
|
|
|
currPage += currentpage
|
2023-03-05 22:10:37 +00:00
|
|
|
}
|
2023-01-15 16:53:19 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2023-03-09 10:44:18 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
|
|
|
<link rel="icon" type="image/ico" href="/favicon.ico" />
|
|
|
|
<meta name="generator" content={Astro.generator} />
|
|
|
|
<meta property="og:title" content={title} />
|
|
|
|
<meta property="og:url" content={currPage} />
|
|
|
|
<meta name="description" content={description} />
|
|
|
|
<meta property="og:description" content={description} />
|
2023-03-10 21:33:09 +00:00
|
|
|
<meta property="og:image" content="/embed.png" />
|
2023-03-09 10:44:18 +00:00
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:locale" content="en_US" />
|
|
|
|
<title>{title}</title>
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"
|
|
|
|
/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<Navbar>
|
|
|
|
{
|
|
|
|
navdata.map((item) => (
|
|
|
|
<NavbarEntry currentPage={currentpage} {...item} />
|
|
|
|
))
|
|
|
|
}
|
|
|
|
</Navbar>
|
|
|
|
<slot />
|
|
|
|
</body>
|
2023-01-15 16:53:19 +00:00
|
|
|
</html>
|
|
|
|
<style is:global>
|
2023-03-09 10:44:18 +00:00
|
|
|
:root {
|
|
|
|
--hover-scale: 1.05;
|
|
|
|
--speed: 50%;
|
|
|
|
--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;
|
|
|
|
--c-purplepink: #c105ff;
|
|
|
|
--c-darkergray: #1b1b1b;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
background: var(--c-lightgray);
|
|
|
|
margin: 0px;
|
|
|
|
}
|
2023-01-15 16:53:19 +00:00
|
|
|
</style>
|