blob: 1211c9e4e3ad4ef06c840f8a5a24770a4aae3dc7 [file] [log] [blame]
Samuel Shuert8aac6012021-09-02 13:21:30 -05001import Card from '../Components/Card'
pineafane0283a82022-02-13 10:05:56 +00002import CardRow from '../Components/CardRow';
Samuel Shuert8aac6012021-09-02 13:21:30 -05003import Header from '../Components/Header'
pineafane0283a82022-02-13 10:05:56 +00004import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels';
5import { List, ListItem, Code } from '../Components/Texttools';
6import Link from 'next/link';
pineafan1de98762022-02-13 13:35:30 +00007import React from 'react';
Samuel Shuert8aac6012021-09-02 13:21:30 -05008
pineafan1de98762022-02-13 13:35:30 +00009export default class Home extends React.Component {
10 constructor(props) {
11 super(props);
12 this.state = {
13 toHighlight: null,
14 };
15 }
16
17 highlightSection(that, section) {
18 console.log(section);
19 that.setState({toHighlight: section});
20 }
21
22 render() {
23 return (
24 <>
25 <Header
26 name="ClicksForms"
27 subtext="Custom forms on Discord"
28 gradient={["71AFE5", "6576CC"]}
29 wave="web/waves/header/clicksforms"
30 buttons={[
31 {id: "commands", color: "6576CC", buttonText: "FFFFFF", link: "#commands", text: "Commands"},
32 {id: "services", color: "6576CC", buttonText: "FFFFFF", link: "#services", text: "Services"},
33 {id: "privacy", color: "6576CC", buttonText: "FFFFFF", link: "#privacy", text: "Privacy"},
34 {id: "invite", color: "775EBF", buttonText: "FFFFFF", link: "#invite", text: "Invite"}
35 ]}
36 hideArrow={true}
37 that={this}
38 callback={this.highlightSection}
39 />
40 <AutoLayout>
41 <Panel halfSize={true} id="commands">
42 <Title>Commands</Title>
43 <Divider bound={this.state.toHighlight} name="commands"/>
44 <Text>Standard commands to use ClicksForms</Text>
45 <List colour="6576CC">
46 <ListItem><Code colour="6576CC">/accept</Code> Completes a form you are asked to fill in.</ListItem>
47 <ListItem><Code colour="6576CC">/apply</Code> Apply to a form.</ListItem>
48 <ListItem><Code colour="6576CC">/create</Code> Creates a new form.</ListItem>
49 <ListItem><Code colour="6576CC">/download</Code> Downloads a form from a service e.g. Google Forms.</ListItem>
50 <ListItem><Code colour="6576CC">/help</Code> Lists all commands.</ListItem>
51 <ListItem><Code colour="6576CC">/responses</Code> Lets you view responses to your servers form.</ListItem>
52 <ListItem><Code colour="6576CC">/manage</Code> Lets you manage your servers forms.</ListItem>
53 </List>
54 </Panel>
55 <Panel halfSize={true} id="services">
56 <Title>Services</Title>
57 <Divider bound={this.state.toHighlight} name="services"/>
58 <Text>ClicksForms supports services such as <a href="https://docs.google.com/forms">Google Forms</a> through our Add-on.</Text>
59 <Text>Our API is public. You can view it <Link href="/clicksforms/privacy">GitHub</Link>.</Text>
60 </Panel>
61 <Panel halfSize={true} id="privacy">
62 <Title>Privacy</Title>
63 <Divider bound={this.state.toHighlight} name="privacy"/>
64 <Text>You should always know what we know and store about you, so <a href="https://clicksminuteper.github.io/policies/clicksforms">here</a> is the complete list.</Text>
65 <Text>We also have a list of terms for using ClicksForms, it can be viewed <a href="https://clicksminuteper.github.io/policies/clicksformstos">here</a>.</Text>
66 </Panel>
67 <Panel halfSize={true} id="invite">
68 <Title>Invite</Title>
69 <Divider bound={this.state.toHighlight} name="invite"/>
70 <CardRow><Card
71 wave="clicksforms"
72 icon="bots/clicksforms/circle"
73 buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
74 title="Invite"
75 subtext="Invite ClicksForms to your server"
76 buttons={[
77 {color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands", text: "Invite"}
78 ]}
79 /></CardRow>
80 </Panel>
81 </AutoLayout>
82 </>
83 )
84 }
85}