diff --git a/pages/links/discord.tsx b/pages/links/discord.tsx index fdfde66..7d31119 100644 --- a/pages/links/discord.tsx +++ b/pages/links/discord.tsx @@ -1,8 +1,9 @@ import { useEffect, useState } from 'react'; +const redirectTitle = 'Discord'; const redirectUrl = 'https://discord.gg/mxhcENzG2j'; -export default function DiscordRedirect() { +export default function WeblateRedirect() { const [countdown, setCountdown] = useState(5); useEffect(() => { @@ -39,14 +40,12 @@ export default function DiscordRedirect() {

- Sudo-Flix Discord + Sudo-Flix {redirectTitle}


@@ -55,20 +54,20 @@ export default function DiscordRedirect() { display: 'flex', justifyContent: 'center', alignItems: 'center', - height: '50vh', + height: '80vh', }} >
-

- Redirecting you to our Discord in: + {countdown > 0 + ? `Redirecting you to our ${redirectTitle} in:` + : `Redirecting you now...`} {countdown <= 0 ? ( -
+ (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } > - - (e.currentTarget.style.textDecoration = 'underline') - } - onMouseLeave={(e) => - (e.currentTarget.style.textDecoration = 'none') - } - > - *Click here if you are not redirected - -
- ) : null} - {countdown} -

+ *Click here if you're not redirected + + ) : ( + {countdown} + )} +
+
+

© 2024 sudo-flix

+

+ Follow us on{' '} + + (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } + > + Twitter + {' '} + and check out our{' '} + + (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } + > + Github + + . +

+
); } diff --git a/pages/links/weblate.tsx b/pages/links/weblate.tsx index 68fda4f..2d48cef 100644 --- a/pages/links/weblate.tsx +++ b/pages/links/weblate.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from 'react'; +const redirectTitle = 'Weblate'; const redirectUrl = 'https://weblate.tinypixel.uk/projects/sudo-flix/main/'; export default function WeblateRedirect() { @@ -39,14 +40,12 @@ export default function WeblateRedirect() {

- Sudo-Flix Weblate + Sudo-Flix {redirectTitle}


@@ -55,20 +54,20 @@ export default function WeblateRedirect() { display: 'flex', justifyContent: 'center', alignItems: 'center', - height: '50vh', + height: '80vh', }} >
-

- Redirecting you to our Weblate in: + {countdown > 0 + ? `Redirecting you to our ${redirectTitle} in:` + : `Redirecting you now...`} {countdown <= 0 ? ( -
+ (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } > - - (e.currentTarget.style.textDecoration = 'underline') - } - onMouseLeave={(e) => - (e.currentTarget.style.textDecoration = 'none') - } - > - *Click here if you are not redirected - -
- ) : null} - {countdown} -

+ *Click here if you're not redirected + + ) : ( + {countdown} + )} +
+
+

© 2024 sudo-flix

+

+ Follow us on{' '} + + (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } + > + Twitter + {' '} + and check out our{' '} + + (e.currentTarget.style.textDecoration = 'underline') + } + onMouseLeave={(e) => + (e.currentTarget.style.textDecoration = 'none') + } + > + Github + + . +

+
); }