Add Vercel sponsor banner as environment (#83)
This commit is contained in:
@@ -5,6 +5,8 @@ type Props = {
|
|||||||
[key: string]: any
|
[key: string]: any
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const vercelSponsor = process.env["NEXT_PUBLIC_VERCEL_SPONSOR"] === "true";
|
||||||
|
|
||||||
const Footer: FC<Props> = (props) => (
|
const Footer: FC<Props> = (props) => (
|
||||||
<Stack
|
<Stack
|
||||||
as="footer"
|
as="footer"
|
||||||
@@ -24,10 +26,14 @@ const Footer: FC<Props> = (props) => (
|
|||||||
<Link href="https://www.gnu.org/licenses/agpl-3.0.html" isExternal={true}>
|
<Link href="https://www.gnu.org/licenses/agpl-3.0.html" isExternal={true}>
|
||||||
<Text as="span">Licensed under AGPLv3</Text>
|
<Text as="span">Licensed under AGPLv3</Text>
|
||||||
</Link>
|
</Link>
|
||||||
|
{vercelSponsor && (
|
||||||
|
<>
|
||||||
<Text as="span" display={["none", null, "unset"]}>·</Text>
|
<Text as="span" display={["none", null, "unset"]}>·</Text>
|
||||||
<Link href="https://vercel.com?utm_source=lingva-team&utm_campaign=oss" isExternal={true}>
|
<Link href="https://vercel.com?utm_source=lingva-team&utm_campaign=oss" isExternal={true}>
|
||||||
<Text as="span">▲ Powered by Vercel</Text>
|
<Text as="span">▲ Powered by Vercel</Text>
|
||||||
</Link>
|
</Link>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user