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