mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: optimize legacy redirect pages
This commit is contained in:
1 parent
9cb5113f6e
commit
cf38cb3a6e
1 file changed
+25
-30
@@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { DiscordLogoIcon, PaperPlaneIcon } from '@radix-ui/react-icons';
|
|
||||||
import { Button, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
|
||||||
import { PageWrapper } from '../components/PageWrapper';
|
|
||||||
import { getStrings } from '../core/i18n/getStrings';
|
import { getStrings } from '../core/i18n/getStrings';
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
path: string;
|
path: string;
|
||||||
@@ -16,30 +12,29 @@ const strings = getStrings(locale);
|
|||||||
const resolvedPath = `/${locale === undefined ? '' : `${locale}/`}${path}`;
|
const resolvedPath = `/${locale === undefined ? '' : `${locale}/`}${path}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout>
|
<html>
|
||||||
<link
|
<head>
|
||||||
slot="head"
|
<meta charset="utf-8" />
|
||||||
rel="canonical"
|
<link rel="canonical" href={`${Astro.url.origin}${resolvedPath}`} />
|
||||||
href={`${Astro.url.origin}${resolvedPath}`}
|
<meta http-equiv="refresh" content={`0; url=${resolvedPath}`} />
|
||||||
/>
|
</head>
|
||||||
<meta slot="head" http-equiv="refresh" content={`0; url=${resolvedPath}`} />
|
|
||||||
|
|
||||||
<PageWrapper align="center" justify="center" gap="0">
|
<body>
|
||||||
<Heading>{strings.website.redirect.title}</Heading>
|
<div
|
||||||
<Text color="gray">{strings.website.redirect.body}</Text>
|
style={{
|
||||||
|
display: 'flex',
|
||||||
<Flex mt="4" gap="2">
|
flexDirection: 'column',
|
||||||
<Link href={resolvedPath}>
|
alignItems: 'center',
|
||||||
<Button>
|
justifyContent: 'center',
|
||||||
<PaperPlaneIcon /> Redirect
|
width: '100vw',
|
||||||
</Button>
|
height: '100vh',
|
||||||
</Link>
|
backgroundColor: 'black',
|
||||||
|
color: 'white',
|
||||||
<Link href="https://discord.gg/nDt7AjGJQH">
|
fontFamily: 'sans-serif',
|
||||||
<Button variant="outline">
|
}}
|
||||||
<DiscordLogoIcon /> Discord
|
>
|
||||||
</Button>
|
<h2>{strings.website.redirect.title}</h2>
|
||||||
</Link>
|
<span>{strings.website.redirect.body}</span>
|
||||||
</Flex>
|
</div>
|
||||||
</PageWrapper>
|
</body>
|
||||||
</BaseLayout>
|
</html>
|
||||||
Reference in new issue
Block a user