feat: better footer

This commit is contained in:
TrèsAbhi committed 2024-06-05 12:53:16 -05:00
1 parent 55a78ebd2f
commit 2a730bed91
3 files changed
+76 -34

No files matched your search

+8 -16
View File
@@ -1,6 +1,5 @@
import { Flex, Heading, Text } from '@radix-ui/themes';
import { imgur } from '../../core/blitzkit/imgur';
import { theme } from '../../stitches.config';
export function Hero() {
return (
@@ -9,6 +8,10 @@ export function Hero() {
justify="center"
style={{
position: 'relative',
background: `url(${imgur('rUPie9G', { format: 'jpeg' })})`,
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
}}
px="4"
py="9"
@@ -20,20 +23,8 @@ export function Hero() {
left: 0,
width: '100%',
height: '100%',
background: `url(${imgur('rUPie9G', { format: 'jpeg' })})`,
backgroundSize: 'cover',
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)`,
background:
'linear-gradient(var(--color-panel-translucent), var(--color-background))',
}}
/>
@@ -42,7 +33,8 @@ export function Hero() {
gap="4"
align="center"
justify="center"
style={{ position: 'relative', width: '100%' }}
position="relative"
width="100%"
>
<Flex direction="column" align="center">
<Heading size="9" weight="bold" align="center">
@@ -11,6 +11,7 @@ import {
import { debounce } from 'lodash';
import { Fragment, use, useEffect, useRef, useState } from 'react';
import { lerp } from 'three/src/math/MathUtils';
import { Link } from '../../../../../../components/Link';
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
import { isExplosive } from '../../../../../../core/blitz/isExplosive';
import { resolvePenetrationCoefficient } from '../../../../../../core/blitz/resolvePenetrationCoefficient';
@@ -184,12 +185,9 @@ export function Characteristics() {
<Info
indent
name={
<a
target="_blank"
href="https://tresabhi.github.io/blitzkit/guide/dpm.html"
>
<Link target="_blank" href="/docs/guide/dpm">
What's the difference?
</a>
</Link>
}
/>
</>
+65 -13
View File
@@ -1,8 +1,8 @@
'use client';
import { Flex, Heading, Text, Theme } from '@radix-ui/themes';
import packageJson from '../../../package.json';
import { Link } from '../Link';
import * as styles from './index.css';
export function Footer() {
return (
@@ -10,19 +10,73 @@ export function Footer() {
<Flex
justify="center"
gap="3"
px="3"
py="6"
p="6"
style={{
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">
<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>
</Flex>
<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">
<Heading size="3">Legal</Heading>
<Flex direction="column">
@@ -32,14 +86,12 @@ export function Footer() {
<Link href="/docs/legal/terms-of-service" color="gray">
Terms of service
</Link>
</Flex>
</Flex>
<Flex direction="column" gap="1">
<Heading size="3">About</Heading>
<Flex direction="column">
<Link href="/docs/about/credits" color="gray">
Credits
<Link
href="https://www.google.com/settings/ads"
target="_blank"
color="gray"
>
Ad settings
</Link>
</Flex>
</Flex>