feat: servicing

This commit is contained in:
TrèsAbhi committed 2025-08-26 11:28:57 -05:00
1 parent 347523f9e7
commit aaee0b7965
3 files changed
+18 -1

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ env:
PUBLIC_ASSET_BASE: ${{ secrets.PUBLIC_ASSET_BASE }}
PUBLIC_BRANCH: ${{ secrets.PUBLIC_BRANCH }}
PUBLIC_GUIDE_WEBSITE: ${{ secrets.PUBLIC_GUIDE_WEBSITE }}
SERVICING: ${{ secrets.SERVICING }}
jobs:
build:
@@ -0,0 +1,14 @@
---
import { Heading, Link, Text } from '@radix-ui/themes';
import { PageWrapper } from './PageWrapper';
---
<PageWrapper align="center" justify="center" gap="0">
<Heading>BlitzKit down for servicing</Heading>
<Text color="gray">
<Link color="blue" href="https://discord.gg/nDt7AjGJQH">
Join the official Discord server
</Link>
for updates.
</Text>
</PageWrapper>
@@ -8,6 +8,7 @@ import Navbar from '../components/Navbar.astro';
import Party3 from '../components/Party3.astro';
import './base.css';
import { DEFAULT_LOCALE } from '@blitzkit/i18n';
import Servicing from '../components/Servicing.astro';
export interface Props {
noFooter?: boolean;
@@ -15,6 +16,7 @@ export interface Props {
integrated?: boolean;
}
const servicing = import.meta.env.SERVICING;
const { noFooter, noNavbar, integrated } = Astro.props;
const locale = Astro.params.locale ?? DEFAULT_LOCALE;
---
@@ -65,7 +67,7 @@ const locale = Astro.params.locale ?? DEFAULT_LOCALE;
<Checks {locale} client:only="react" />
<slot />
{servicing ? <Servicing /> : <slot />}
{!noFooter && <Footer />}
</Flex>