Files

45 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2021-03-16 01:33:19 +01:00
import { FC } from "react";
2022-01-23 23:30:36 +01:00
import { Stack, Text, Link } from "@chakra-ui/react";
2021-03-16 01:33:19 +01:00
type Props = {
[key: string]: any
};
const vercelSponsor = process.env["NEXT_PUBLIC_VERCEL_SPONSOR"] === "true";
2021-03-16 01:33:19 +01:00
const Footer: FC<Props> = (props) => (
2022-01-23 23:30:36 +01:00
<Stack
2021-03-17 21:30:47 +01:00
as="footer"
2021-03-16 01:33:19 +01:00
w="full"
p={3}
fontSize={["sm", null, "md"]}
2022-01-23 23:30:36 +01:00
direction={["column", null, "row"]}
justify="center"
align="center"
spacing={[1, null, 2]}
2021-03-16 01:33:19 +01:00
{...props}
>
<Link href="https://github.com/thedaviddelta/lingva-translate/blob/main/LICENSE" isExternal={true}>
<Text as="span">&#169; 2021{new Date().getFullYear()} thedaviddelta & contributors</Text>
2022-01-23 23:30:36 +01:00
</Link>
<Text as="span" display={["none", null, "unset"]}>·</Text>
<Link href="https://www.gnu.org/licenses/agpl-3.0.html" isExternal={true}>
<Text as="span">Licensed under AGPLv3</Text>
</Link>
<Text as="span" display={["none", null, "unset"]}>·</Text>
<Link href="https://cloudhost.es" isExternal={true}>
<Text as="span">AI enhancements by Cloud Host</Text>
</Link>
{vercelSponsor && (
<>
<Text as="span" display={["none", null, "unset"]}>·</Text>
<Link href="https://vercel.com?utm_source=lingva-team&utm_campaign=oss" isExternal={true}>
<Text as="span"> Powered by Vercel</Text>
</Link>
</>
)}
2022-01-23 23:30:36 +01:00
</Stack>
2021-03-16 01:33:19 +01:00
);
export default Footer;