Files
blitzkit/packages/website/src/layouts/ToolLayout.astro
T

42 lines
892 B
Plaintext
Raw Normal View History

2024-09-17 22:13:35 -05:00
---
import { imgur, ImgurSize } from '@blitzkit/core';
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
2024-11-28 13:35:18 -06:00
import ToolOpenGraph from '../components/ToolOpenGraph.astro';
2024-10-12 22:07:59 -05:00
import { type Tool } from '../constants/tools';
import BaseLayout from './BaseLayout.astro';
2024-09-17 22:13:35 -05:00
2024-10-12 22:07:59 -05:00
interface Props {
tool: Tool;
}
const { tool } = Astro.props;
2024-09-17 22:13:35 -05:00
---
2024-11-28 13:35:18 -06:00
<ToolOpenGraph tool={tool} />
2024-10-12 22:07:59 -05:00
<BaseLayout>
<Box
style={{
backgroundImage: `url(${imgur(tool!.image, {
format: 'jpeg',
size: ImgurSize.SmallThumbnail,
})})`,
backgroundSize: 'cover',
}}
>
<Flex
direction="column"
align="center"
py="6"
style={{
backdropFilter: 'blur(4rem)',
WebkitBackdropFilter: 'blur(4rem)',
}}
>
<Heading size="7">{tool?.title}</Heading>
<Text>{tool?.description}</Text>
</Flex>
</Box>
2024-09-17 22:13:35 -05:00
<slot />
2024-10-12 22:07:59 -05:00
</BaseLayout>