mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start on expansive footer
This commit is contained in:
1 parent
4683de90ba
commit
ddb0bd8d09
7 files changed
+69
-66
No files matched your search
File renamed without changes.
@@ -116,20 +116,25 @@ export function Checks() {
|
|||||||
<Flex direction="column" gap="2">
|
<Flex direction="column" gap="2">
|
||||||
<Heading>
|
<Heading>
|
||||||
{policiesAgreementIndex === -1
|
{policiesAgreementIndex === -1
|
||||||
? "BlitzKit's cookies"
|
? "BlitzKit's policies"
|
||||||
: "BlitzKit's policies have changed"}
|
: "BlitzKit's policies have changed"}
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
This website utilizes cookies to perform analytics and
|
This website utilizes cookies to perform analytics and
|
||||||
personalize your experience. You can learn more through{' '}
|
personalize your experience. You can learn more through{' '}
|
||||||
<Link href="/legal/privacy-policy">our privacy policy</Link>.
|
<Link href="/docs/legal/privacy-policy">
|
||||||
You may opt out of personalized advertizement by visiting{' '}
|
our privacy policy
|
||||||
|
</Link>
|
||||||
|
. You may opt out of personalized advertizement by visiting{' '}
|
||||||
<Link href="https://www.google.com/settings/ads">
|
<Link href="https://www.google.com/settings/ads">
|
||||||
Google Ad Settings
|
Google Ad Settings
|
||||||
</Link>
|
</Link>
|
||||||
. By using BlitzKit, you also agree to our{' '}
|
. By using BlitzKit, you also agree to our{' '}
|
||||||
<Link href="/legal/terms-of-service">terms of service</Link>.
|
<Link href="/docs/legal/terms-of-service">
|
||||||
|
terms of service
|
||||||
|
</Link>
|
||||||
|
.
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import Markdown from 'markdown-to-jsx';
|
||||||
|
import { use } from 'react';
|
||||||
|
import { Link } from '../../../../components/Link';
|
||||||
|
import PageWrapper from '../../../../components/PageWrapper';
|
||||||
|
import isDev from '../../../../core/blitzkit/isDev';
|
||||||
|
|
||||||
|
export default function Page({
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
|
params: { document: string; directory: string };
|
||||||
|
}) {
|
||||||
|
const markdown = use(
|
||||||
|
fetch(
|
||||||
|
`https://raw.githubusercontent.com/tresabhi/blitzkit/${isDev() ? 'dev' : 'main'}/docs/${params.directory}/${params.document}.md`,
|
||||||
|
).then((response) => response.text()),
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageWrapper>
|
||||||
|
<Markdown
|
||||||
|
options={{
|
||||||
|
overrides: {
|
||||||
|
a: { component: Link },
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{markdown}
|
||||||
|
</Markdown>
|
||||||
|
</PageWrapper>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import Markdown from 'markdown-to-jsx';
|
|
||||||
import { use } from 'react';
|
|
||||||
import PageWrapper from '../../../components/PageWrapper';
|
|
||||||
|
|
||||||
export default function Page({ params }: { params: { document: string } }) {
|
|
||||||
const markdown = use(
|
|
||||||
fetch(
|
|
||||||
`https://raw.githubusercontent.com/tresabhi/blitzkit/main/docs/legal/${params.document}.md`,
|
|
||||||
).then((response) => response.text()),
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<PageWrapper>
|
|
||||||
<Markdown>{markdown}</Markdown>
|
|
||||||
</PageWrapper>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,7 @@ import { style } from '@vanilla-extract/css';
|
|||||||
export const containerInner = style({
|
export const containerInner = style({
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
maxWidth: 800,
|
maxWidth: 1024,
|
||||||
padding: '0 16px',
|
padding: '0 16px',
|
||||||
|
|
||||||
'@media': {
|
'@media': {
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Code, Flex, Link, Spinner, Text, Theme } from '@radix-ui/themes';
|
import { Flex, Heading, Text, Theme } from '@radix-ui/themes';
|
||||||
import { Suspense } from 'react';
|
import { Link } from '../Link';
|
||||||
import packageJSON from '../../../package.json';
|
|
||||||
import { WoTBVersion } from './components/WoTBVersion';
|
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
@@ -11,54 +9,40 @@ export function Footer() {
|
|||||||
<Theme radius="none">
|
<Theme radius="none">
|
||||||
<Flex
|
<Flex
|
||||||
justify="center"
|
justify="center"
|
||||||
align="center"
|
|
||||||
gap="3"
|
gap="3"
|
||||||
p="3"
|
px="3"
|
||||||
|
py="6"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: 'var(--color-panel)',
|
backgroundColor: 'var(--color-panel)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex align="center" wrap="wrap" className={styles.containerInner}>
|
<Flex align="center" wrap="wrap" className={styles.containerInner}>
|
||||||
<Flex gap="1" justify="center" align="center">
|
<Flex direction="column">
|
||||||
<Text color="gray" size="2">
|
<Heading>BlitzKit</Heading>
|
||||||
BlitzKit
|
<Text color="gray">Everything World of Tanks Blitz</Text>
|
||||||
</Text>
|
|
||||||
|
|
||||||
<Code color="gray" size="2">
|
|
||||||
{packageJSON.version}
|
|
||||||
</Code>
|
|
||||||
|
|
||||||
<Text color="gray" size="2">
|
|
||||||
for WoTB
|
|
||||||
</Text>
|
|
||||||
|
|
||||||
<Suspense fallback={<Spinner />}>
|
|
||||||
<WoTBVersion />
|
|
||||||
</Suspense>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex
|
<Flex gap="6">
|
||||||
justify="center"
|
<Flex direction="column" gap="1">
|
||||||
align="center"
|
<Heading size="3">Legal</Heading>
|
||||||
gap="2"
|
<Flex direction="column">
|
||||||
style={{
|
<Link href="/docs/legal/privacy-policy" color="gray">
|
||||||
maxWidth: 800,
|
Privacy policy
|
||||||
padding: '0 16px',
|
</Link>
|
||||||
}}
|
<Link href="/docs/legal/terms-of-service" color="gray">
|
||||||
>
|
Terms of service
|
||||||
<Link size="2" href="https://tresabhi.github.io/" target="_blank">
|
</Link>
|
||||||
Made by TrèsAbhi
|
</Flex>
|
||||||
</Link>
|
</Flex>
|
||||||
|
|
||||||
<Text color="gray">•</Text>
|
<Flex direction="column" gap="1">
|
||||||
|
<Heading size="3">About</Heading>
|
||||||
<Link
|
<Flex direction="column">
|
||||||
size="2"
|
<Link href="/docs/about/credits" color="gray">
|
||||||
href="https://tresabhi.github.io/blitzkit/guide/credits.html"
|
Credits
|
||||||
target="_blank"
|
</Link>
|
||||||
>
|
</Flex>
|
||||||
Full credits
|
</Flex>
|
||||||
</Link>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export default function Navbar() {
|
|||||||
<Flex
|
<Flex
|
||||||
justify="between"
|
justify="between"
|
||||||
align="center"
|
align="center"
|
||||||
style={{ maxWidth: 800, width: '100%', padding: '0 16px' }}
|
style={{ maxWidth: 1024, width: '100%', padding: '0 16px' }}
|
||||||
gap="8"
|
gap="8"
|
||||||
>
|
>
|
||||||
<Flex align="center" gap="4">
|
<Flex align="center" gap="4">
|
||||||
|
|||||||
Reference in new issue
Block a user