mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
my butt
This commit is contained in:
1 parent
2610697d86
commit
8c050add23
4 files changed
+6
-8
No files matched your search
@@ -34,7 +34,7 @@ export function WN8SurroundingStat({
|
|||||||
style={{
|
style={{
|
||||||
color: theme.colors.textHighContrast,
|
color: theme.colors.textHighContrast,
|
||||||
fontSize: 24,
|
fontSize: 24,
|
||||||
fontWeight: 'bold',
|
fontWeight: 700,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export function RowStat({
|
|||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color: theme.textHighContrast,
|
color: theme.textHighContrast,
|
||||||
fontWeight: 'bold',
|
fontWeight: 700,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function GenericStatsRow({ stat }: GenericStatsRowProps) {
|
|||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color: theme.colors.textHighContrast,
|
color: theme.colors.textHighContrast,
|
||||||
fontWeight: 'bold',
|
fontWeight: 700,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|||||||
@@ -5,26 +5,24 @@ const fonts = [
|
|||||||
{
|
{
|
||||||
file: require('./Roboto.ttf') as string,
|
file: require('./Roboto.ttf') as string,
|
||||||
weight: 400 as const,
|
weight: 400 as const,
|
||||||
name: 'Roboto',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: require('./Roboto-Bold.ttf') as string,
|
file: require('./Roboto-Bold.ttf') as string,
|
||||||
weight: 700 as const,
|
weight: 700 as const,
|
||||||
name: 'Roboto-Bold',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
file: require('./Roboto-Black.ttf') as string,
|
file: require('./Roboto-Black.ttf') as string,
|
||||||
weight: 900 as const,
|
weight: 900 as const,
|
||||||
name: 'Roboto-Black',
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export default async function jsxToSvg(jsx: JSX.Element) {
|
export default async function jsxToSvg(jsx: JSX.Element) {
|
||||||
return await satori(jsx, {
|
return await satori(jsx, {
|
||||||
width: 480,
|
width: 480,
|
||||||
fonts: fonts.map(({ file, ...font }) => ({
|
fonts: fonts.map(({ file, weight }) => ({
|
||||||
|
weight,
|
||||||
|
name: 'Roboto',
|
||||||
data: readFileSync(`${__dirname}/${file}`),
|
data: readFileSync(`${__dirname}/${file}`),
|
||||||
...font,
|
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user