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
|
|
|
|
|
};
|
|
|
|
|
|
2022-01-24 10:13:26 +01:00
|
|
|
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}
|
|
|
|
|
>
|
2022-01-23 23:30:36 +01:00
|
|
|
<Link href="https://github.com/TheDavidDelta/lingva-translate/blob/main/LICENSE" isExternal={true}>
|
|
|
|
|
<Text as="span">© 2021 TheDavidDelta & contributors</Text>
|
|
|
|
|
</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>
|
2022-01-24 10:13:26 +01:00
|
|
|
{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;
|