mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: servicing
This commit is contained in:
1 parent
347523f9e7
commit
aaee0b7965
3 files changed
+18
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user