- Header: add "+ AI enhancements" italic subtitle below logo - Footer: update copyright year to 2021–current, add "AI enhancements by Cloud Host" link - Admin page: wrap all states in pageBg Box so dark-mode background shows correctly Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import { FC } from "react";
|
||
import { Stack, Text, Link } from "@chakra-ui/react";
|
||
|
||
type Props = {
|
||
[key: string]: any
|
||
};
|
||
|
||
const vercelSponsor = process.env["NEXT_PUBLIC_VERCEL_SPONSOR"] === "true";
|
||
|
||
const Footer: FC<Props> = (props) => (
|
||
<Stack
|
||
as="footer"
|
||
w="full"
|
||
p={3}
|
||
fontSize={["sm", null, "md"]}
|
||
direction={["column", null, "row"]}
|
||
justify="center"
|
||
align="center"
|
||
spacing={[1, null, 2]}
|
||
{...props}
|
||
>
|
||
<Link href="https://github.com/thedaviddelta/lingva-translate/blob/main/LICENSE" isExternal={true}>
|
||
<Text as="span">© 2021–{new Date().getFullYear()} 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>
|
||
<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>
|
||
</>
|
||
)}
|
||
</Stack>
|
||
);
|
||
|
||
export default Footer;
|