Files
Homarr/src/components/layout/Logo.tsx

41 lines
868 B
TypeScript
Raw Normal View History

2022-05-15 12:42:53 +02:00
import { Group, Image, Text } from '@mantine/core';
2022-04-25 00:11:32 +02:00
import * as React from 'react';
import { CURRENT_VERSION } from '../../../data/constants';
2022-04-25 00:11:32 +02:00
export function Logo({ style }: any) {
2022-05-12 14:24:15 +02:00
return (
<Group>
2022-05-15 12:42:53 +02:00
<Image
width={50}
src="/imgs/logo.png"
style={{
position: 'relative',
left: 15,
}}
/>
<Text
sx={style}
weight="bold"
variant="gradient"
gradient={{ from: 'red', to: 'orange', deg: 145 }}
>
Homarr
</Text>
<Text
style={{
2022-05-15 12:42:53 +02:00
position: 'relative',
left: -14,
bottom: -2,
color: 'gray',
fontStyle: 'inherit',
fontSize: 'inherit',
2022-05-15 12:42:53 +02:00
alignSelf: 'center',
alignContent: 'center',
}}
>
{CURRENT_VERSION}
</Text>
</Group>
2022-05-12 14:24:15 +02:00
);
2022-04-25 00:11:32 +02:00
}