blob: 3144db46bb4d3c654c143f4a328263fe6df084d6 [file] [log] [blame]
pineafanfd93e6e2022-05-06 20:30:09 +01001import React, { Component } from 'react'
2import Header from '../../../Components/Header'
3import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../../../Components/Panels'
4import { Code } from '../../../Components/Texttools'
5import { Card, CardRow } from '../../../Components/Card'
6import HCaptcha from 'react-hcaptcha';
7import { useReward } from 'react-rewards'
8import Link from 'next/link'
9
10function About(props) {
11 const { reward, isAnimating } = useReward('confetti', 'confetti', {
12 elementSize: 12,
13 spread: 85,
14 position: "absolute",
15 colors: ["#F27878", "#E5AB71", "#E5DC71", "#A1CC65", "#68D49E", "#71AFE5", "#6576CC", "#8D58B2", "#BF5E9F"]
16 });
17
18 return (
19 <>
20 <Header
21 name="Nucleus Verification"
22 subtext="Remove automated accounts from your server"
23 customImage={"https://assets.clicks.codes/web/logos/nucleus.svg"}
24 embedImage={"https://assets.clicks.codes/bots/nucleus/normal.png"}
25 gradient={["F27878", "D96B6B"]}
26 wave="web/waves/header/nucleus"
27 buttons={[
28 {color: "424242", buttonText: "FFFFFF", link: "#about", text: "About"},
29 {color: "424242", buttonText: "FFFFFF", link: "#privacy", text: "Privacy"},
30 {color: "F27878", buttonText: "FFFFFF", link: "#invite", text: "Invite"}
31 ]}
32 />
33 <AutoLayout>
34 <Panel halfSize={false} id="about">
35 <Title>About Verification</Title>
36 <Divider />
37 <Text>Nucleus is designed to help keep your server safe. Verification is how we remove bots from your server.</Text>
38 <Text>Many bot accounts are designed to join and spam in servers, and verification can prevent this easily:</Text>
39 <HCaptcha
40 id="Captchas mitigate problems"
41 sitekey="85074411-fa13-4d9b-b901-53095c6d1fc6"
42 onVerify={reward}
43 theme="dark"
44 />
45 <Text>Users will need to run <Code colour="F27878">/verify</Code> when they join, and will be given a link to complete this check online.</Text>
46 <Text>It is completely free to use verification, and for users to verify.</Text>
47 <div id="confetti" />
48 </Panel>
49 <Panel halfSize={true} id="privacy">
50 <Title>Privacy</Title>
51 <Divider />
52 <Text>Verification stores the smallest amount of data required to function, and is deleted automatically.</Text>
53 <Text>This includes the user&apos;s ID, the server ID, role name and server icon.</Text>
54 <Text>The full list of data stored by Nucleus can be found <Link href="https://clicksminuteper.github.io/policies/nucleus">here</Link>.</Text>
55 </Panel>
56 <Panel halfSize={true} id="invite">
57 <Title>Invite</Title>
58 <Divider />
59 <CardRow>
60 <Card
61 wave="nucleus"
62 icon="bots/nucleus/circle"
63 buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]}
64 title="Nucleus"
65 subtext="Invite Nucleus to your server"
66 buttons={[
67 {color: "424242", link: "https://discord.com/api/oauth2/authorize?client_id=715989276382462053&permissions=121295465718&scope=bot%20applications.commands", text: "Invite"}
68 ]}
69 url="https://discord.com/api/oauth2/authorize?client_id=715989276382462053&permissions=121295465718&scope=bot%20applications.commands"
70 />
71 </CardRow>
72 </Panel>
73 </AutoLayout>
74 </>
75 )
76}
77
78export default About;