From 2a730bed917c5e92b68e0a4592409378e32de88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 5 Jun 2024 12:53:16 -0500 Subject: [PATCH] feat: better footer --- src/app/components/Hero.tsx | 24 ++---- .../[id]/components/Characteristics/index.tsx | 8 +- src/components/Footer/index.tsx | 78 +++++++++++++++---- 3 files changed, 76 insertions(+), 34 deletions(-) diff --git a/src/app/components/Hero.tsx b/src/app/components/Hero.tsx index b9cd45d11..d287102b9 100644 --- a/src/app/components/Hero.tsx +++ b/src/app/components/Hero.tsx @@ -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', - }} - /> -
@@ -42,7 +33,8 @@ export function Hero() { gap="4" align="center" justify="center" - style={{ position: 'relative', width: '100%' }} + position="relative" + width="100%" > diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index 23ee719bf..e47201692 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -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() { + What's the difference? - + } /> diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 4b9bba828..c89f812a8 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -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() { - + - BlitzKit + + BlitzKit{' '} + + {packageJson.version} + + + Everything World of Tanks Blitz + + About + + + Credits + + + Discord + + + GitHub + + + {/* patreon supporters? */} + + + Legal @@ -32,14 +86,12 @@ export function Footer() { Terms of service - - - - - About - - - Credits + + Ad settings