feat: move images to blitzkit
No files matched your search
|
After Width: | Height: | Size: 611 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 404 KiB |
|
After Width: | Height: | Size: 443 KiB |
|
After Width: | Height: | Size: 330 KiB |
|
After Width: | Height: | Size: 715 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 676 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 274 KiB |
|
After Width: | Height: | Size: 346 KiB |
|
After Width: | Height: | Size: 406 KiB |
|
After Width: | Height: | Size: 360 KiB |
|
After Width: | Height: | Size: 193 KiB |
|
After Width: | Height: | Size: 200 KiB |
@@ -1,4 +1,3 @@
|
|||||||
import { imgur } from '@blitzkit/core';
|
|
||||||
import { Flex, Heading, Link, Text } from '@radix-ui/themes';
|
import { Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||||
import { Var } from '../core/radix/var';
|
import { Var } from '../core/radix/var';
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@ export function AesonPlug() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={imgur('akrxfFC')}
|
src="/assets/images/third-party/wotb-news.png"
|
||||||
style={{ width: '6rem', height: '6rem', objectFit: 'cover' }}
|
style={{ width: '6rem', height: '6rem', objectFit: 'cover' }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -198,10 +198,9 @@ const strings = getStrings(locale);
|
|||||||
<Box
|
<Box
|
||||||
style={{
|
style={{
|
||||||
borderRadius: Var('radius-2'),
|
borderRadius: Var('radius-2'),
|
||||||
backgroundImage: `url(${imgur(tool.image, { format: 'jpeg', size: ImgurSize.LargeThumbnail })})`,
|
backgroundImage: `url(/assets/images/tools/${tool.id}.webp)`,
|
||||||
backgroundSize: '200%',
|
backgroundSize: '200%',
|
||||||
backgroundPosition: 'right center',
|
backgroundPosition: 'right center',
|
||||||
overflow: 'hidden',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
@@ -227,6 +226,7 @@ const strings = getStrings(locale);
|
|||||||
data-expanded
|
data-expanded
|
||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
width="100%"
|
width="100%"
|
||||||
|
display={{ initial: 'block', sm: 'none' }}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: Var('black-a7'),
|
backgroundColor: Var('black-a7'),
|
||||||
backdropFilter: 'blur(0.5rem)',
|
backdropFilter: 'blur(0.5rem)',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { imgur, ShellType } from '@blitzkit/core';
|
import { ShellType } from '@blitzkit/core';
|
||||||
import { literals } from '@blitzkit/i18n/src/literals';
|
import { literals } from '@blitzkit/i18n/src/literals';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
@@ -42,7 +42,7 @@ export function CustomShellButton() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="custom shell"
|
alt="custom shell"
|
||||||
src={imgur('j2CoXak')}
|
src="/assets/images/icons/custom-shell.png"
|
||||||
style={{
|
style={{
|
||||||
width: '50%',
|
width: '50%',
|
||||||
height: '50%',
|
height: '50%',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
asset,
|
asset,
|
||||||
imgur,
|
|
||||||
resolvePenetrationCoefficient,
|
resolvePenetrationCoefficient,
|
||||||
TIER_ROMAN_NUMERALS,
|
TIER_ROMAN_NUMERALS,
|
||||||
uniqueGuns,
|
uniqueGuns,
|
||||||
@@ -104,7 +103,7 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
left="50%"
|
left="50%"
|
||||||
style={{
|
style={{
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
backgroundImage: `url(${imgur('27Gwth4')})`,
|
backgroundImage: 'url(/assets/images/icons/aim-caret.png)',
|
||||||
backgroundSize: 'contain',
|
backgroundSize: 'contain',
|
||||||
transform: 'translateX(-50%)',
|
transform: 'translateX(-50%)',
|
||||||
borderRadius: '50%',
|
borderRadius: '50%',
|
||||||
@@ -412,7 +411,10 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
content={strings.website.tools.tankopedia.sandbox.model.name}
|
content={strings.website.tools.tankopedia.sandbox.model.name}
|
||||||
>
|
>
|
||||||
<Flex height="100%" align="center">
|
<Flex height="100%" align="center">
|
||||||
<img src={imgur('jAdYf0m')} style={{ height: '1.25em' }} />
|
<img
|
||||||
|
src="/assets/images/icons/tankopedia-model.png"
|
||||||
|
style={{ height: '1.25em' }}
|
||||||
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</SegmentedControl.Item>
|
</SegmentedControl.Item>
|
||||||
@@ -421,7 +423,10 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
content={strings.website.tools.tankopedia.sandbox.dynamic.name}
|
content={strings.website.tools.tankopedia.sandbox.dynamic.name}
|
||||||
>
|
>
|
||||||
<Flex height="100%" align="center">
|
<Flex height="100%" align="center">
|
||||||
<img src={imgur('oe4Cq0g')} style={{ height: '1.25em' }} />
|
<img
|
||||||
|
src="/assets/images/icons/tankopedia-dynamic-armor.png"
|
||||||
|
style={{ height: '1.25em' }}
|
||||||
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</SegmentedControl.Item>
|
</SegmentedControl.Item>
|
||||||
@@ -430,14 +435,17 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
content={strings.website.tools.tankopedia.sandbox.static.name}
|
content={strings.website.tools.tankopedia.sandbox.static.name}
|
||||||
>
|
>
|
||||||
<Flex height="100%" align="center">
|
<Flex height="100%" align="center">
|
||||||
<img src={imgur('VQ4uDno')} style={{ height: '1.25em' }} />
|
<img
|
||||||
|
src="/assets/images/icons/tankopedia-static-armor.png"
|
||||||
|
style={{ height: '1.25em' }}
|
||||||
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</SegmentedControl.Item>
|
</SegmentedControl.Item>
|
||||||
{/* <SegmentedControl.Item value={`${TankopediaDisplay.ShootingRange}`}>
|
{/* <SegmentedControl.Item value={`${TankopediaDisplay.ShootingRange}`}>
|
||||||
<Tooltip content="Shooting range">
|
<Tooltip content="Shooting range">
|
||||||
<Flex height="100%" align="center">
|
<Flex height="100%" align="center">
|
||||||
<img src={imgur('q8ZPfzG')} style={{ height: '1.25em' }} />
|
<img src="/assets/images/icons/tankopedia-shooting-range.png" style={{ height: '1.25em' }} />
|
||||||
</Flex>
|
</Flex>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</SegmentedControl.Item> */}
|
</SegmentedControl.Item> */}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { imgur } from '@blitzkit/core';
|
|
||||||
import { Box, type BoxProps } from '@radix-ui/themes';
|
import { Box, type BoxProps } from '@radix-ui/themes';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
import { Var } from '../../../../../../../../core/radix/var';
|
import { Var } from '../../../../../../../../core/radix/var';
|
||||||
@@ -56,7 +55,7 @@ export const TargetCircle = forwardRef<HTMLDivElement, TargetCircleProps>(
|
|||||||
top="50%"
|
top="50%"
|
||||||
left="50%"
|
left="50%"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${imgur('27Gwth4')})`,
|
backgroundImage: 'url(/assets/images/icons/aim-caret.png)',
|
||||||
backgroundSize: 'contain',
|
backgroundSize: 'contain',
|
||||||
transform: 'translateX(-50%)',
|
transform: 'translateX(-50%)',
|
||||||
borderRadius: '50%',
|
borderRadius: '50%',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { asset, I_HAT, imgur, J_HAT } from '@blitzkit/core';
|
import { asset, I_HAT, J_HAT } from '@blitzkit/core';
|
||||||
import { Html } from '@react-three/drei';
|
import { Html } from '@react-three/drei';
|
||||||
import { useFrame, useLoader } from '@react-three/fiber';
|
import { useFrame, useLoader } from '@react-three/fiber';
|
||||||
import { clamp } from 'lodash-es';
|
import { clamp } from 'lodash-es';
|
||||||
@@ -101,7 +101,7 @@ export function SceneProps() {
|
|||||||
let { dispersion } = characteristics;
|
let { dispersion } = characteristics;
|
||||||
const gunRotationSpeed = degToRad(characteristics.gunTraverseSpeed);
|
const gunRotationSpeed = degToRad(characteristics.gunTraverseSpeed);
|
||||||
const mockTank = useLoader(GLTFLoader, asset(`3d/tanks/models/6929.glb`));
|
const mockTank = useLoader(GLTFLoader, asset(`3d/tanks/models/6929.glb`));
|
||||||
const texture = useLoader(TextureLoader, imgur('C28Z8nU'));
|
const texture = useLoader(TextureLoader, '/assets/images/3d/grid.png');
|
||||||
const path = new Vector3();
|
const path = new Vector3();
|
||||||
const direction = new Vector3();
|
const direction = new Vector3();
|
||||||
texture.anisotropy = 2;
|
texture.anisotropy = 2;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { asset, imgur, TankType } from '@blitzkit/core';
|
import { asset, TankType } from '@blitzkit/core';
|
||||||
import { literals } from '@blitzkit/i18n/src/literals';
|
import { literals } from '@blitzkit/i18n/src/literals';
|
||||||
import { CaretLeftIcon, CaretRightIcon, PlusIcon } from '@radix-ui/react-icons';
|
import { CaretLeftIcon, CaretRightIcon, PlusIcon } from '@radix-ui/react-icons';
|
||||||
import { Flex, Heading, IconButton, ScrollArea, Text } from '@radix-ui/themes';
|
import { Flex, Heading, IconButton, ScrollArea, Text } from '@radix-ui/themes';
|
||||||
@@ -140,7 +140,7 @@ export function TechTreeSection({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
<Flex
|
<Flex
|
||||||
key={multiplier}
|
key={multiplier}
|
||||||
style={{
|
style={{
|
||||||
background: `url(${imgur('7hDltb4')})`,
|
background: 'url(/assets/images/icons/xp-multiplier.png)',
|
||||||
backgroundSize: 'contain',
|
backgroundSize: 'contain',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { assertSecret, imgur, ImgurSize } from '@blitzkit/core';
|
import { assertSecret } from '@blitzkit/core';
|
||||||
import { CaretRightIcon } from '@radix-ui/react-icons';
|
import { CaretRightIcon } from '@radix-ui/react-icons';
|
||||||
import { Box, Button, Code, Flex, Heading, Text } from '@radix-ui/themes';
|
import { Box, Button, Code, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import type { Tool } from '../constants/tools';
|
import type { Tool } from '../constants/tools';
|
||||||
@@ -18,7 +18,7 @@ const { locale } = Astro.params;
|
|||||||
const strings = getStrings(locale);
|
const strings = getStrings(locale);
|
||||||
const toolStrings =
|
const toolStrings =
|
||||||
strings.website.tools[
|
strings.website.tools[
|
||||||
(tool.stringsId??tool.id ) as keyof typeof strings.website.tools
|
(tool.stringsId ?? tool.id) as keyof typeof strings.website.tools
|
||||||
];
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -48,12 +48,7 @@ const toolStrings =
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<Flex
|
<Flex
|
||||||
style={{
|
style={{ backgroundImage: `url(/assets/images/tools/${tool.id}.webp)` }}
|
||||||
backgroundImage: `url(${imgur(tool.image, {
|
|
||||||
format: 'jpeg',
|
|
||||||
size: ImgurSize.SmallThumbnail,
|
|
||||||
})})`,
|
|
||||||
}}
|
|
||||||
data-disabled={disabled}
|
data-disabled={disabled}
|
||||||
data-significant={tool.significant}
|
data-significant={tool.significant}
|
||||||
className="container"
|
className="container"
|
||||||
@@ -72,12 +67,7 @@ const toolStrings =
|
|||||||
<Box
|
<Box
|
||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${imgur(tool.image, {
|
backgroundImage: `url(/assets/images/tools/${tool.id}.webp)`,
|
||||||
format: 'jpeg',
|
|
||||||
size: tool.significant
|
|
||||||
? ImgurSize.HugeThumbnail
|
|
||||||
: ImgurSize.LargeThumbnail,
|
|
||||||
})})`,
|
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { AstroSeo } from '@astrolib/seo';
|
import { AstroSeo } from '@astrolib/seo';
|
||||||
import { imgur } from '@blitzkit/core';
|
|
||||||
import { type Tool } from '../constants/tools';
|
import { type Tool } from '../constants/tools';
|
||||||
import { getStrings } from '../core/i18n/getStrings';
|
import { getStrings } from '../core/i18n/getStrings';
|
||||||
|
|
||||||
@@ -23,7 +22,9 @@ const toolStrings =
|
|||||||
canonical={Astro.url.href}
|
canonical={Astro.url.href}
|
||||||
openGraph={{
|
openGraph={{
|
||||||
url: Astro.url.href,
|
url: Astro.url.href,
|
||||||
images: [{ url: imgur(tool.image) }],
|
images: [
|
||||||
|
{ url: `${Astro.url.origin}/assets/images/tools/${tool.id}.webp` },
|
||||||
|
],
|
||||||
title: toolStrings.name,
|
title: toolStrings.name,
|
||||||
description: toolStrings.seo_description,
|
description: toolStrings.seo_description,
|
||||||
site_name: 'BlitzKit',
|
site_name: 'BlitzKit',
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import type { ComponentProps } from 'react';
|
|||||||
export interface Tool {
|
export interface Tool {
|
||||||
id: string;
|
id: string;
|
||||||
stringsId?: string;
|
stringsId?: string;
|
||||||
image: string;
|
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
href?: string;
|
href?: string;
|
||||||
button: {
|
button: {
|
||||||
@@ -17,7 +16,6 @@ export interface Tool {
|
|||||||
|
|
||||||
export const tankopediaTool: Tool = {
|
export const tankopediaTool: Tool = {
|
||||||
id: 'tankopedia',
|
id: 'tankopedia',
|
||||||
image: 'D8j6GZx',
|
|
||||||
button: {
|
button: {
|
||||||
color: 'purple',
|
color: 'purple',
|
||||||
},
|
},
|
||||||
@@ -36,7 +34,6 @@ export const tankopediaTool: Tool = {
|
|||||||
|
|
||||||
export const compareTool: Tool = {
|
export const compareTool: Tool = {
|
||||||
id: 'compare',
|
id: 'compare',
|
||||||
image: 'O6VNl6e',
|
|
||||||
button: {
|
button: {
|
||||||
color: 'crimson',
|
color: 'crimson',
|
||||||
},
|
},
|
||||||
@@ -46,7 +43,6 @@ export const compareTool: Tool = {
|
|||||||
export const sessionTool: Tool = {
|
export const sessionTool: Tool = {
|
||||||
// TODO: rename to tracker
|
// TODO: rename to tracker
|
||||||
id: 'session',
|
id: 'session',
|
||||||
image: 'HdG9sTf',
|
|
||||||
button: {
|
button: {
|
||||||
color: 'blue',
|
color: 'blue',
|
||||||
},
|
},
|
||||||
@@ -56,7 +52,6 @@ export const sessionTool: Tool = {
|
|||||||
export const discordTool: Tool = {
|
export const discordTool: Tool = {
|
||||||
id: 'discord',
|
id: 'discord',
|
||||||
href: 'https://discord.com/application-directory/1097673957865443370',
|
href: 'https://discord.com/application-directory/1097673957865443370',
|
||||||
image: '0bWE5hC',
|
|
||||||
button: {
|
button: {
|
||||||
color: 'indigo',
|
color: 'indigo',
|
||||||
},
|
},
|
||||||
@@ -65,7 +60,6 @@ export const discordTool: Tool = {
|
|||||||
export const moreTool: Tool = {
|
export const moreTool: Tool = {
|
||||||
id: 'more',
|
id: 'more',
|
||||||
href: 'https://discord.gg/nDt7AjGJQH',
|
href: 'https://discord.gg/nDt7AjGJQH',
|
||||||
image: '1nPm6VI',
|
|
||||||
button: {
|
button: {
|
||||||
color: 'plum',
|
color: 'plum',
|
||||||
},
|
},
|
||||||
@@ -76,7 +70,6 @@ export const playersTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'blue',
|
color: 'blue',
|
||||||
},
|
},
|
||||||
image: 'YelSOfT',
|
|
||||||
href: '_', // TODO: remove this to re-enable link
|
href: '_', // TODO: remove this to re-enable link
|
||||||
branches: ['main', 'dev'],
|
branches: ['main', 'dev'],
|
||||||
};
|
};
|
||||||
@@ -86,7 +79,6 @@ export const performanceTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'jade',
|
color: 'jade',
|
||||||
},
|
},
|
||||||
image: 'vOKFB03',
|
|
||||||
branches: ['main', 'dev'],
|
branches: ['main', 'dev'],
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -95,14 +87,12 @@ export const embedTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'red',
|
color: 'red',
|
||||||
},
|
},
|
||||||
image: 'Q0faRYg',
|
|
||||||
branches: ['main', 'dev'],
|
branches: ['main', 'dev'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const homeTool: Tool = {
|
export const homeTool: Tool = {
|
||||||
id: 'home',
|
id: 'home',
|
||||||
button: { color: 'blue' },
|
button: { color: 'blue' },
|
||||||
image: 'rUPie9G',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const galleryTool: Tool = {
|
export const galleryTool: Tool = {
|
||||||
@@ -110,7 +100,6 @@ export const galleryTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'gold',
|
color: 'gold',
|
||||||
},
|
},
|
||||||
image: 'VhKlknk',
|
|
||||||
branches: ['main', 'dev'],
|
branches: ['main', 'dev'],
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -120,7 +109,6 @@ export const tierListTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'orange',
|
color: 'orange',
|
||||||
},
|
},
|
||||||
image: 'oKKc8Xv',
|
|
||||||
branches: ['main', 'dev', 'opentest', 'preview'],
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,7 +117,6 @@ export const chartsTool: Tool = {
|
|||||||
button: {
|
button: {
|
||||||
color: 'bronze',
|
color: 'bronze',
|
||||||
},
|
},
|
||||||
image: '6fhkljA',
|
|
||||||
branches: ['main', 'dev', 'opentest', 'preview'],
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
import { imgur, ImgurSize } from '@blitzkit/core';
|
|
||||||
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
|
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import ToolOpenGraph from '../components/ToolOpenGraph.astro';
|
import ToolOpenGraph from '../components/ToolOpenGraph.astro';
|
||||||
import { type Tool } from '../constants/tools';
|
import { type Tool } from '../constants/tools';
|
||||||
@@ -24,10 +23,7 @@ const toolStrings =
|
|||||||
<BaseLayout>
|
<BaseLayout>
|
||||||
<Box
|
<Box
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${imgur(tool!.image, {
|
backgroundImage: `url(/assets/images/tools/${tool.id}.webp)`,
|
||||||
format: 'jpeg',
|
|
||||||
size: ImgurSize.SmallThumbnail,
|
|
||||||
})})`,
|
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { imgur } from '@blitzkit/core';
|
|
||||||
import {
|
import {
|
||||||
CodeIcon,
|
CodeIcon,
|
||||||
HeightIcon,
|
HeightIcon,
|
||||||
@@ -63,7 +62,7 @@ function Content({ embed }: PageProps) {
|
|||||||
const embedStateStore = EmbedState.useStore();
|
const embedStateStore = EmbedState.useStore();
|
||||||
const config = embedConfigurations[embed] as EmbedConfig;
|
const config = embedConfigurations[embed] as EmbedConfig;
|
||||||
const [backgroundImage, setBackgroundImage] = useState(
|
const [backgroundImage, setBackgroundImage] = useState(
|
||||||
imgur('SO13zur', { format: 'jpeg' }),
|
'/assets/images/backgrounds/embed-default.webp',
|
||||||
);
|
);
|
||||||
const fileInput = useRef<HTMLInputElement>();
|
const fileInput = useRef<HTMLInputElement>();
|
||||||
const { strings } = useLocale();
|
const { strings } = useLocale();
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { imgur, ImgurSize } from '@blitzkit/core';
|
|
||||||
import { Box, Flex, Link, Text } from '@radix-ui/themes';
|
import { Box, Flex, Link, Text } from '@radix-ui/themes';
|
||||||
import { PreviewWrapper } from '../../../../components/Embeds/PreviewWrapper';
|
import { PreviewWrapper } from '../../../../components/Embeds/PreviewWrapper';
|
||||||
import { LinkI18n } from '../../../../components/LinkI18n';
|
import { LinkI18n } from '../../../../components/LinkI18n';
|
||||||
@@ -85,7 +84,8 @@ function Content() {
|
|||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
position="relative"
|
position="relative"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `url(${imgur('SO13zur', { format: 'jpeg', size: ImgurSize.SmallThumbnail })})`,
|
backgroundImage:
|
||||||
|
'url(/assets/images/backgrounds/embed-default.webp)',
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
}}
|
}}
|
||||||
|
|||||||