umami/components/layout/Header.js

30 lines
940 B
JavaScript
Raw Normal View History

import { Column, Icon, Row, Text } from 'react-basics';
import Link from 'next/link';
2023-02-04 17:59:52 +01:00
import LanguageButton from 'components/input/LanguageButton';
import ThemeButton from 'components/input/ThemeButton';
2023-03-02 08:59:01 +01:00
import SettingsButton from 'components/input/SettingsButton';
import Icons from 'components/icons';
import styles from './Header.module.css';
2020-07-24 04:56:55 +02:00
export default function Header() {
2020-07-24 04:56:55 +02:00
return (
<header className={styles.header}>
<Row>
<Column>
<Link href="https://umami.is" target="_blank" className={styles.title}>
<Icon size="lg">
<Icons.Logo />
</Icon>
<Text>umami</Text>
</Link>
</Column>
<Column className={styles.buttons}>
<ThemeButton tooltipPosition="bottom" />
<LanguageButton tooltipPosition="bottom" menuPosition="bottom" />
<SettingsButton />
</Column>
</Row>
</header>
2020-07-24 04:56:55 +02:00
);
}