2024-09-17 22:13:35 -05:00
|
|
|
---
|
|
|
|
|
import { imgur, ImgurSize } from '@blitzkit/core';
|
|
|
|
|
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
|
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-10-12 22:07:59 -05:00
|
|
|
<BaseLayout>
|
|
|
|
|
<title>{tool.title}</title>
|
|
|
|
|
<meta property="og:image" content={imgur(tool.image)} />
|
|
|
|
|
|
2024-09-17 22:13:35 -05:00
|
|
|
{
|
2024-10-12 22:07:59 -05:00
|
|
|
tool.pageDescription !== undefined && (
|
2024-09-17 22:13:35 -05:00
|
|
|
<>
|
2024-10-12 22:07:59 -05:00
|
|
|
<meta name="description" content={tool.pageDescription} />
|
|
|
|
|
<meta property="og:description" content={tool.pageDescription} />
|
2024-10-09 22:04:43 -05:00
|
|
|
</>
|
2024-09-17 22:13:35 -05:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-12 22:07:59 -05:00
|
|
|
<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>
|