mirror of https://github.com/sussy-code/docs.git
create a discord redirect page
This commit is contained in:
parent
2639be8262
commit
d87e0337db
|
@ -8,19 +8,19 @@
|
||||||
"name": "sudo-flix-docs",
|
"name": "sudo-flix-docs",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@neato/guider": "^1.0.1",
|
"@neato/guider": "^1.0.3",
|
||||||
"next": "^14.1.4",
|
"next": "^14.2.3",
|
||||||
"next-seo": "^6.5.0",
|
"next-seo": "^6.5.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "18.2.73",
|
"@types/react": "18.2.73",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-next": "^14.1.4",
|
"eslint-config-next": "^14.2.3",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-prettier": "^5.1.2",
|
"eslint-plugin-prettier": "^5.1.3",
|
||||||
"prettier": "^3.1.1",
|
"prettier": "^3.2.5",
|
||||||
"typescript": "5.4.3"
|
"typescript": "5.4.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -325,9 +325,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@neato/guider": {
|
"node_modules/@neato/guider": {
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@neato/guider/-/guider-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@neato/guider/-/guider-1.1.0.tgz",
|
||||||
"integrity": "sha512-5O0rS2UlyCaGQDvat6bl8ysHqkIDQN17eDuZOLO+mczMw/hKKN5OHFwZiGcPIGcDh1CpOPht5p/HBgvnrURXmA==",
|
"integrity": "sha512-FZW3yagav5n8qbCVg7m7zdwZZ5rZE6gCvj9tGDe4UJQ9j9NeoFXsLdRvf17qbjTCllMw1oS9usXIXPxHGK6Iwg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^1.7.18",
|
"@headlessui/react": "^1.7.18",
|
||||||
"@iconify-icon/react": "^2.0.1",
|
"@iconify-icon/react": "^2.0.1",
|
||||||
|
@ -6189,9 +6189,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react": {
|
"node_modules/react": {
|
||||||
"version": "18.2.0",
|
"version": "18.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
||||||
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
|
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
},
|
},
|
||||||
|
@ -6200,15 +6200,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-dom": {
|
"node_modules/react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
||||||
"integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
|
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0",
|
"loose-envify": "^1.1.0",
|
||||||
"scheduler": "^0.23.0"
|
"scheduler": "^0.23.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18.2.0"
|
"react": "^18.3.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-fast-compare": {
|
"node_modules/react-fast-compare": {
|
||||||
|
@ -6677,9 +6677,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/scheduler": {
|
"node_modules/scheduler": {
|
||||||
"version": "0.23.0",
|
"version": "0.23.2",
|
||||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
||||||
"integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
|
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
}
|
}
|
||||||
|
@ -8332,9 +8332,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@neato/guider": {
|
"@neato/guider": {
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@neato/guider/-/guider-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@neato/guider/-/guider-1.1.0.tgz",
|
||||||
"integrity": "sha512-5O0rS2UlyCaGQDvat6bl8ysHqkIDQN17eDuZOLO+mczMw/hKKN5OHFwZiGcPIGcDh1CpOPht5p/HBgvnrURXmA==",
|
"integrity": "sha512-FZW3yagav5n8qbCVg7m7zdwZZ5rZE6gCvj9tGDe4UJQ9j9NeoFXsLdRvf17qbjTCllMw1oS9usXIXPxHGK6Iwg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@headlessui/react": "^1.7.18",
|
"@headlessui/react": "^1.7.18",
|
||||||
"@iconify-icon/react": "^2.0.1",
|
"@iconify-icon/react": "^2.0.1",
|
||||||
|
@ -12463,20 +12463,20 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react": {
|
"react": {
|
||||||
"version": "18.2.0",
|
"version": "18.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
||||||
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
|
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
||||||
"integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
|
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"loose-envify": "^1.1.0",
|
"loose-envify": "^1.1.0",
|
||||||
"scheduler": "^0.23.0"
|
"scheduler": "^0.23.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-fast-compare": {
|
"react-fast-compare": {
|
||||||
|
@ -12812,9 +12812,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scheduler": {
|
"scheduler": {
|
||||||
"version": "0.23.0",
|
"version": "0.23.2",
|
||||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
|
||||||
"integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
|
"integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
export default function DiscordRedirect() {
|
||||||
|
const [countdown, setCountdown] = useState(5);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const interval = setInterval(() => {
|
||||||
|
setCountdown((currentCountdown) => currentCountdown - 1);
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
const timer = setTimeout(() => {
|
||||||
|
window.location.href = 'https://discord.gg/mxhcENzG2j';
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
clearTimeout(timer);
|
||||||
|
clearInterval(interval);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
height: '100vh',
|
||||||
|
width: '100%',
|
||||||
|
background: '#0C0B13',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div style={{ textAlign: 'center' }}>
|
||||||
|
<h1
|
||||||
|
style={{ fontSize: '2.5em', paddingBlock: '0.6em', color: '#A6A4AE' }}
|
||||||
|
>
|
||||||
|
Sudo-Flix Discord
|
||||||
|
</h1>
|
||||||
|
<hr
|
||||||
|
style={{
|
||||||
|
marginInline: '2em',
|
||||||
|
backgroundColor: '#37334C',
|
||||||
|
border: 'none',
|
||||||
|
height: '0.1em',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
height: '50vh',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
padding: '1em',
|
||||||
|
marginInline: '2.5em',
|
||||||
|
border: 'solid 1px #37334C',
|
||||||
|
borderRadius: '0.3em',
|
||||||
|
alignItems: 'center',
|
||||||
|
textAlign: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h1 style={{ fontSize: '1.65em', color: '#A6A4AE' }}>
|
||||||
|
Redirecting you to our Discord in:
|
||||||
|
<br />
|
||||||
|
<span style={{ fontWeight: 700 }}>{countdown}</span>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
|
@ -5,7 +5,7 @@ title: 'Start self-hosting'
|
||||||
# How to self-host
|
# How to self-host
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
We provide support and answer questions. If you have any enquiries, feel free to ask in our [Discord server](https://discord.gg/kdkTZ4McvD).
|
We provide support and answer questions. If you have any enquiries, feel free to ask in our [Discord server](/links/discord).
|
||||||
</Note>
|
</Note>
|
||||||
|
|
||||||
Since sudo-flix has many different components, there are a few configurations of how you can host it. Each of these configurations has their own benefits, whether that be having complete control over your data or customizing your experience.
|
Since sudo-flix has many different components, there are a few configurations of how you can host it. Each of these configurations has their own benefits, whether that be having complete control over your data or customizing your experience.
|
||||||
|
|
|
@ -11,7 +11,7 @@ We provide support to users and hosters in our discord server. Though we have so
|
||||||
3. No asking developers to help you code
|
3. No asking developers to help you code
|
||||||
4. No duplicate tickets
|
4. No duplicate tickets
|
||||||
|
|
||||||
<Button to='https://discord.gg/kdkTZ4McvD'>Join the Discord</Button>
|
<Button to='/links/discord'>Join the Discord</Button>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
|
5378
pnpm-lock.yaml
5378
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -10,7 +10,7 @@ const starLinks = [
|
||||||
newTab: true,
|
newTab: true,
|
||||||
icon: 'akar-icons:github-fill',
|
icon: 'akar-icons:github-fill',
|
||||||
}),
|
}),
|
||||||
link('Discord', 'https://discord.gg/kdkTZ4McvD', {
|
link('Discord', '/links/discord', {
|
||||||
style: 'star',
|
style: 'star',
|
||||||
newTab: true,
|
newTab: true,
|
||||||
icon: 'fa6-brands:discord',
|
icon: 'fa6-brands:discord',
|
||||||
|
@ -20,7 +20,7 @@ const starLinks = [
|
||||||
export default defineTheme({
|
export default defineTheme({
|
||||||
github: "sussy-code/smov",
|
github: "sussy-code/smov",
|
||||||
navigation: [
|
navigation: [
|
||||||
link('Discord', 'https://discord.gg/kdkTZ4McvD', {
|
link('Discord', '/links/discord', {
|
||||||
style: 'star',
|
style: 'star',
|
||||||
newTab: true,
|
newTab: true,
|
||||||
icon: 'mdi:discord',
|
icon: 'mdi:discord',
|
||||||
|
@ -35,7 +35,7 @@ export default defineTheme({
|
||||||
editRepositoryBase: "https://github.com/sussy-code/docs/blob/master",
|
editRepositoryBase: "https://github.com/sussy-code/docs/blob/master",
|
||||||
socials: [
|
socials: [
|
||||||
social.github("https://github.com/sussy-code"),
|
social.github("https://github.com/sussy-code"),
|
||||||
social.discord("https://discord.gg/kdkTZ4McvD"),
|
social.discord("/links/discord"),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
meta: (pageMeta) => (
|
meta: (pageMeta) => (
|
||||||
|
|
Loading…
Reference in New Issue