mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: better footer
This commit is contained in:
1 parent
55a78ebd2f
commit
2a730bed91
3 files changed
+76
-34
No files matched your search
@@ -1,6 +1,5 @@
|
|||||||
import { Flex, Heading, Text } from '@radix-ui/themes';
|
import { Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import { imgur } from '../../core/blitzkit/imgur';
|
import { imgur } from '../../core/blitzkit/imgur';
|
||||||
import { theme } from '../../stitches.config';
|
|
||||||
|
|
||||||
export function Hero() {
|
export function Hero() {
|
||||||
return (
|
return (
|
||||||
@@ -9,6 +8,10 @@ export function Hero() {
|
|||||||
justify="center"
|
justify="center"
|
||||||
style={{
|
style={{
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
|
background: `url(${imgur('rUPie9G', { format: 'jpeg' })})`,
|
||||||
|
backgroundSize: 'cover',
|
||||||
|
backgroundRepeat: 'no-repeat',
|
||||||
|
backgroundPosition: 'center',
|
||||||
}}
|
}}
|
||||||
px="4"
|
px="4"
|
||||||
py="9"
|
py="9"
|
||||||
@@ -20,20 +23,8 @@ export function Hero() {
|
|||||||
left: 0,
|
left: 0,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
background: `url(${imgur('rUPie9G', { format: 'jpeg' })})`,
|
background:
|
||||||
backgroundSize: 'cover',
|
'linear-gradient(var(--color-panel-translucent), var(--color-background))',
|
||||||
backgroundRepeat: 'no-repeat',
|
|
||||||
backgroundPosition: 'center',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
position: 'absolute',
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
width: '100%',
|
|
||||||
height: '100%',
|
|
||||||
background: `linear-gradient(${theme.colors.appBackground1}80, ${theme.colors.appBackground1}ff)`,
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -42,7 +33,8 @@ export function Hero() {
|
|||||||
gap="4"
|
gap="4"
|
||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
style={{ position: 'relative', width: '100%' }}
|
position="relative"
|
||||||
|
width="100%"
|
||||||
>
|
>
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
<Heading size="9" weight="bold" align="center">
|
<Heading size="9" weight="bold" align="center">
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import {
|
|||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { Fragment, use, useEffect, useRef, useState } from 'react';
|
import { Fragment, use, useEffect, useRef, useState } from 'react';
|
||||||
import { lerp } from 'three/src/math/MathUtils';
|
import { lerp } from 'three/src/math/MathUtils';
|
||||||
|
import { Link } from '../../../../../../components/Link';
|
||||||
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
|
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
|
||||||
import { isExplosive } from '../../../../../../core/blitz/isExplosive';
|
import { isExplosive } from '../../../../../../core/blitz/isExplosive';
|
||||||
import { resolvePenetrationCoefficient } from '../../../../../../core/blitz/resolvePenetrationCoefficient';
|
import { resolvePenetrationCoefficient } from '../../../../../../core/blitz/resolvePenetrationCoefficient';
|
||||||
@@ -184,12 +185,9 @@ export function Characteristics() {
|
|||||||
<Info
|
<Info
|
||||||
indent
|
indent
|
||||||
name={
|
name={
|
||||||
<a
|
<Link target="_blank" href="/docs/guide/dpm">
|
||||||
target="_blank"
|
|
||||||
href="https://tresabhi.github.io/blitzkit/guide/dpm.html"
|
|
||||||
>
|
|
||||||
What's the difference?
|
What's the difference?
|
||||||
</a>
|
</Link>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Flex, Heading, Text, Theme } from '@radix-ui/themes';
|
import { Flex, Heading, Text, Theme } from '@radix-ui/themes';
|
||||||
|
import packageJson from '../../../package.json';
|
||||||
import { Link } from '../Link';
|
import { Link } from '../Link';
|
||||||
import * as styles from './index.css';
|
|
||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
return (
|
return (
|
||||||
@@ -10,19 +10,73 @@ export function Footer() {
|
|||||||
<Flex
|
<Flex
|
||||||
justify="center"
|
justify="center"
|
||||||
gap="3"
|
gap="3"
|
||||||
px="3"
|
p="6"
|
||||||
py="6"
|
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: 'var(--color-panel)',
|
backgroundColor: 'var(--color-panel)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex align="center" wrap="wrap" className={styles.containerInner}>
|
<Flex
|
||||||
|
align="center"
|
||||||
|
justify="between"
|
||||||
|
maxWidth="640px"
|
||||||
|
flexGrow="1"
|
||||||
|
gap="6"
|
||||||
|
position="relative"
|
||||||
|
direction={{
|
||||||
|
initial: 'column',
|
||||||
|
sm: 'row',
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
<Heading>BlitzKit</Heading>
|
<Heading>
|
||||||
|
BlitzKit{' '}
|
||||||
|
<Text color="gray" size="1" weight="regular">
|
||||||
|
{packageJson.version}
|
||||||
|
</Text>
|
||||||
|
</Heading>
|
||||||
|
|
||||||
<Text color="gray">Everything World of Tanks Blitz</Text>
|
<Text color="gray">Everything World of Tanks Blitz</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex gap="6">
|
<Flex gap="6">
|
||||||
|
<Flex
|
||||||
|
direction="column"
|
||||||
|
gap="1"
|
||||||
|
align={{
|
||||||
|
initial: 'end',
|
||||||
|
sm: 'start',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Heading size="3">About</Heading>
|
||||||
|
<Flex
|
||||||
|
direction="column"
|
||||||
|
align={{
|
||||||
|
initial: 'end',
|
||||||
|
sm: 'start',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Link href="/docs/about/credits" color="gray">
|
||||||
|
Credits
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
href="https://discord.gg/nDt7AjGJQH"
|
||||||
|
target="_blank"
|
||||||
|
color="gray"
|
||||||
|
>
|
||||||
|
Discord
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
href="https://github.com/tresabhi/blitzkit"
|
||||||
|
target="_blank"
|
||||||
|
color="gray"
|
||||||
|
>
|
||||||
|
GitHub
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
{/* patreon supporters? */}
|
||||||
|
</Flex>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
<Flex direction="column" gap="1">
|
<Flex direction="column" gap="1">
|
||||||
<Heading size="3">Legal</Heading>
|
<Heading size="3">Legal</Heading>
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
@@ -32,14 +86,12 @@ export function Footer() {
|
|||||||
<Link href="/docs/legal/terms-of-service" color="gray">
|
<Link href="/docs/legal/terms-of-service" color="gray">
|
||||||
Terms of service
|
Terms of service
|
||||||
</Link>
|
</Link>
|
||||||
</Flex>
|
<Link
|
||||||
</Flex>
|
href="https://www.google.com/settings/ads"
|
||||||
|
target="_blank"
|
||||||
<Flex direction="column" gap="1">
|
color="gray"
|
||||||
<Heading size="3">About</Heading>
|
>
|
||||||
<Flex direction="column">
|
Ad settings
|
||||||
<Link href="/docs/about/credits" color="gray">
|
|
||||||
Credits
|
|
||||||
</Link>
|
</Link>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in new issue
Block a user