fix: remove old banners

This commit is contained in:
TrèsAbhi committed 2024-07-02 18:28:04 -05:00
1 parent 29af2101f4
commit 366a5111b7
22 files changed
+14 -10

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 921 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

+3 -3
View File
@@ -1,10 +1,10 @@
import { style, styleVariants } from '@vanilla-extract/css'; import { style, styleVariants } from '@vanilla-extract/css';
const MAX_EXPANDED_TOOLS = 680; const MIN_EXPANDED_TOOLS = 752;
export const hamburgerButton = style({ export const hamburgerButton = style({
'@media': { '@media': {
[`screen and (min-width: ${MAX_EXPANDED_TOOLS}px)`]: { [`screen and (min-width: ${MIN_EXPANDED_TOOLS}px)`]: {
display: 'none', display: 'none',
}, },
}, },
@@ -49,7 +49,7 @@ export const toolCard = style({
export const toolTexts = style({ export const toolTexts = style({
'@media': { '@media': {
[`screen and (max-width: ${MAX_EXPANDED_TOOLS}px)`]: { [`screen and (max-width: ${MIN_EXPANDED_TOOLS}px)`]: {
display: 'none', display: 'none',
}, },
}, },
+9 -5
View File
@@ -18,13 +18,14 @@ import {
Separator, Separator,
Text, Text,
} from '@radix-ui/themes'; } from '@radix-ui/themes';
import { usePathname, useRouter } from 'next/navigation'; import { usePathname } from 'next/navigation';
import { useState } from 'react'; import { useState } from 'react';
import { REGIONS } from '../../constants/regions'; import { REGIONS } from '../../constants/regions';
import { TOOLS } from '../../constants/tools'; import { TOOLS } from '../../constants/tools';
import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID'; import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID';
import { logoutPatreon } from '../../core/blitz/logoutPatreon'; import { logoutPatreon } from '../../core/blitz/logoutPatreon';
import { logoutWargaming } from '../../core/blitz/logoutWargaming'; import { logoutWargaming } from '../../core/blitz/logoutWargaming';
import { imgur, ImgurSize } from '../../core/blitzkit/imgur';
import { patreonLoginUrl } from '../../core/blitzkit/patreonLoginUrl'; import { patreonLoginUrl } from '../../core/blitzkit/patreonLoginUrl';
import { BlitzkitWide } from '../../icons/BlitzkitWide'; import { BlitzkitWide } from '../../icons/BlitzkitWide';
import { PatreonIcon } from '../../icons/Patreon'; import { PatreonIcon } from '../../icons/Patreon';
@@ -38,10 +39,10 @@ import * as styles from './index.css';
export const NAVBAR_HEIGHT = 64; export const NAVBAR_HEIGHT = 64;
export default function Navbar() { export default function Navbar() {
const router = useRouter();
const [showHamburgerMenu, setShowHamburgerMenu] = useState(false); const [showHamburgerMenu, setShowHamburgerMenu] = useState(false);
const pathname = usePathname(); const pathname = usePathname();
const logins = useApp((state) => state.logins); const logins = useApp((state) => state.logins);
const filteredTools = TOOLS.filter((tool) => !tool.href);
return ( return (
<Box <Box
@@ -80,7 +81,7 @@ export default function Navbar() {
</Flex> </Flex>
<Flex justify="center" gap="4" className={styles.toolTexts}> <Flex justify="center" gap="4" className={styles.toolTexts}>
{TOOLS.filter((tool) => !tool.href).map((tool) => { {filteredTools.map((tool) => {
const selected = pathname.startsWith(`/tools/${tool.id}`); const selected = pathname.startsWith(`/tools/${tool.id}`);
return ( return (
@@ -247,13 +248,16 @@ export default function Navbar() {
</Flex> </Flex>
<Flex mt="6" gap="3" justify="center" wrap="wrap"> <Flex mt="6" gap="3" justify="center" wrap="wrap">
{TOOLS.filter((tool) => !tool.href).map((tool) => ( {filteredTools.map((tool) => (
<Link <Link
key={tool.id} key={tool.id}
href={`/tools/${tool.id}`} href={`/tools/${tool.id}`}
className={styles.toolCard} className={styles.toolCard}
style={{ style={{
backgroundImage: `url(/assets/banners/${tool.id}.webp)`, backgroundImage: `url(${imgur(tool.image, {
format: 'jpeg',
size: ImgurSize.MediumThumbnail,
})})`,
cursor: tool.disabled ? 'default' : 'pointer', cursor: tool.disabled ? 'default' : 'pointer',
opacity: tool.disabled ? 0.25 : 1, opacity: tool.disabled ? 0.25 : 1,
height: 64, height: 64,
+2 -2
View File
@@ -120,11 +120,11 @@ export const tankPerformanceTool: Tool = {
export const TOOLS: Tool[] = [ export const TOOLS: Tool[] = [
tankopediaTool, tankopediaTool,
ratingTool,
compareTool, compareTool,
tankPerformanceTool,
// playerStatsTool, // playerStatsTool,
sessionTool, sessionTool,
ratingTool,
discordTool, discordTool,
moreTool, moreTool,
tankPerformanceTool,
]; ];