mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: isolated footer
This commit is contained in:
1 parent
04e42c929c
commit
17f4435a30
2 files changed
+41
-35
No files matched your search
@@ -0,0 +1,38 @@
|
||||
import { Card, Code, Flex, Text, Theme } from '@radix-ui/themes';
|
||||
import { use } from 'react';
|
||||
import packageJSON from '../../package.json';
|
||||
import { gameDefinitions } from '../core/blitzkrieg/gameDefinitions';
|
||||
import { useWideFormat } from '../hooks/useWideFormat';
|
||||
|
||||
export function Footer() {
|
||||
const wideFormat = useWideFormat();
|
||||
const awaitedGameDefinitions = use(gameDefinitions);
|
||||
|
||||
return (
|
||||
<Theme radius="none">
|
||||
<Card>
|
||||
<Flex justify="center">
|
||||
<Flex
|
||||
justify={wideFormat ? 'between' : 'center'}
|
||||
style={{
|
||||
flex: 1,
|
||||
maxWidth: 800,
|
||||
padding: '0 16px',
|
||||
}}
|
||||
>
|
||||
<Text color="gray" size="2">
|
||||
Blitzkrieg <Code>{packageJSON.version}</Code> for WoTB{' '}
|
||||
<Code>{awaitedGameDefinitions.version}</Code>
|
||||
</Text>
|
||||
|
||||
{wideFormat && (
|
||||
<Text color="gray" size="2">
|
||||
Free forever, for everyone.
|
||||
</Text>
|
||||
)}
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Card>
|
||||
</Theme>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user