umami/components/layout/Footer.js

34 lines
914 B
JavaScript
Raw Normal View History

import { Row, Column } from 'react-basics';
2023-03-04 06:26:39 +01:00
import { FormattedMessage } from 'react-intl';
2022-08-08 20:31:36 +02:00
import { CURRENT_VERSION, HOMEPAGE_URL, REPO_URL } from 'lib/constants';
2023-03-04 06:26:39 +01:00
import { labels } from 'components/messages';
import styles from './Footer.module.css';
2023-04-21 17:00:42 +02:00
export function Footer() {
2020-08-07 11:27:12 +02:00
return (
2023-03-04 06:26:39 +01:00
<footer className={styles.footer}>
<Row>
<Column defaultSize={12} lg={11} xl={11}>
<div>
2023-03-04 06:26:39 +01:00
<FormattedMessage
{...labels.poweredBy}
values={{
name: (
<a href={HOMEPAGE_URL}>
<b>umami</b>
</a>
),
}}
/>
</div>
</Column>
<Column className={styles.version} defaultSize={12} lg={1} xl={1}>
2023-02-09 08:14:11 +01:00
<a href={REPO_URL}>{`v${CURRENT_VERSION}`}</a>
</Column>
</Row>
2020-08-07 11:27:12 +02:00
</footer>
);
}
2023-04-21 17:00:42 +02:00
export default Footer;