blob: 17e052b8673f3b519c227be44b27aed45c475f7c [file] [log] [blame]
pineafan5b612d92022-02-17 19:22:50 +00001import { Card, CardRow } from '../Components/Card';
Samuel Shuert8aac6012021-09-02 13:21:30 -05002import Header from '../Components/Header'
pineafane0283a82022-02-13 10:05:56 +00003import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels';
4import { List, ListItem, Code } from '../Components/Texttools';
pineafan1de98762022-02-13 13:35:30 +00005import React from 'react';
Samuel Shuert8aac6012021-09-02 13:21:30 -05006
pineafan1de98762022-02-13 13:35:30 +00007export default class Home extends React.Component {
8 constructor(props) {
9 super(props);
10 this.state = {
11 toHighlight: null,
12 };
13 }
14
pineafanff3d4522022-05-06 19:51:02 +010015 highlightSection(section) {
16 this.setState({toHighlight: section});
pineafan1de98762022-02-13 13:35:30 +000017 }
18
19 render() {
20 return (
21 <>
22 <Header
pineafanff3d4522022-05-06 19:51:02 +010023 name={"Clicks​Forms"}
24 customImage={"https://assets.clicks.codes/web/logos/clicksforms.svg"}
25 embedImage="https://assets.clicks.codes/bots/clicksforms/normal.png"
pineafan1de98762022-02-13 13:35:30 +000026 subtext="Custom forms on Discord"
27 gradient={["71AFE5", "6576CC"]}
28 wave="web/waves/header/clicksforms"
29 buttons={[
30 {id: "commands", color: "6576CC", buttonText: "FFFFFF", link: "#commands", text: "Commands"},
31 {id: "services", color: "6576CC", buttonText: "FFFFFF", link: "#services", text: "Services"},
32 {id: "privacy", color: "6576CC", buttonText: "FFFFFF", link: "#privacy", text: "Privacy"},
33 {id: "invite", color: "775EBF", buttonText: "FFFFFF", link: "#invite", text: "Invite"}
34 ]}
pineafanff3d4522022-05-06 19:51:02 +010035 callback={() => this.highlightSection()}
PineaFana465f352023-02-05 16:45:01 +000036 season={this.props.season}
pineafan1de98762022-02-13 13:35:30 +000037 />
38 <AutoLayout>
39 <Panel halfSize={true} id="commands">
40 <Title>Commands</Title>
pineafanff3d4522022-05-06 19:51:02 +010041 <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="commands"/>
pineafan1de98762022-02-13 13:35:30 +000042 <Text>Standard commands to use ClicksForms</Text>
43 <List colour="6576CC">
44 <ListItem><Code colour="6576CC">/accept</Code> Completes a form you are asked to fill in.</ListItem>
45 <ListItem><Code colour="6576CC">/apply</Code> Apply to a form.</ListItem>
46 <ListItem><Code colour="6576CC">/create</Code> Creates a new form.</ListItem>
47 <ListItem><Code colour="6576CC">/download</Code> Downloads a form from a service e.g. Google Forms.</ListItem>
48 <ListItem><Code colour="6576CC">/help</Code> Lists all commands.</ListItem>
49 <ListItem><Code colour="6576CC">/responses</Code> Lets you view responses to your servers form.</ListItem>
50 <ListItem><Code colour="6576CC">/manage</Code> Lets you manage your servers forms.</ListItem>
51 </List>
52 </Panel>
pineafan9babd752022-10-21 21:47:52 +010053 <Panel halfSize={true} id="services" style={this.state.toHighlight === "services" ? {border: "solid 10px red"} : {}}>
pineafan1de98762022-02-13 13:35:30 +000054 <Title>Services</Title>
pineafanff3d4522022-05-06 19:51:02 +010055 <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="services"/>
pineafan3b0852d2022-05-06 20:39:59 +010056 <Text>ClicksForms supports services such as <a href="https://docs.google.com/forms">Google Forms</a> through our Add-on.</Text>
57 <Text>Our API is public. You can view it <a href="/clicksforms/docs">here</a>.</Text>
pineafan1de98762022-02-13 13:35:30 +000058 </Panel>
59 <Panel halfSize={true} id="privacy">
60 <Title>Privacy</Title>
pineafanff3d4522022-05-06 19:51:02 +010061 <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="privacy"/>
PineaFan41418622023-10-14 21:36:48 +010062 <Text>You should always know what we know and store about you, so <a href="https://clickscodes.github.io/policies/clicksforms">here</a> is the complete list.</Text>
63 <Text>We also have a list of terms for using ClicksForms, it can be viewed <a href="https://clickscodes.github.io/policies/clicksformstos">here</a>.</Text>
pineafan1de98762022-02-13 13:35:30 +000064 </Panel>
65 <Panel halfSize={true} id="invite">
66 <Title>Invite</Title>
pineafanff3d4522022-05-06 19:51:02 +010067 <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="invite"/>
pineafan1de98762022-02-13 13:35:30 +000068 <CardRow><Card
69 wave="clicksforms"
70 icon="bots/clicksforms/circle"
71 buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
pineafanff3d4522022-05-06 19:51:02 +010072 title="ClicksForms"
pineafan1de98762022-02-13 13:35:30 +000073 subtext="Invite ClicksForms to your server"
74 buttons={[
75 {color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands", text: "Invite"}
76 ]}
pineafanff3d4522022-05-06 19:51:02 +010077 url="https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands"
pineafan1de98762022-02-13 13:35:30 +000078 /></CardRow>
79 </Panel>
80 </AutoLayout>
81 </>
82 )
83 }
pineafanff3d4522022-05-06 19:51:02 +010084}