pineafan | 5b612d9 | 2022-02-17 19:22:50 +0000 | [diff] [blame^] | 1 | import { Card, CardRow } from '../Components/Card'; |
Samuel Shuert | 8aac601 | 2021-09-02 13:21:30 -0500 | [diff] [blame] | 2 | import Header from '../Components/Header' |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 3 | import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels'; |
| 4 | import { List, ListItem, Code } from '../Components/Texttools'; |
| 5 | import Link from 'next/link'; |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 6 | import React from 'react'; |
Samuel Shuert | 8aac601 | 2021-09-02 13:21:30 -0500 | [diff] [blame] | 7 | |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 8 | export default class Home extends React.Component { |
| 9 | constructor(props) { |
| 10 | super(props); |
| 11 | this.state = { |
| 12 | toHighlight: null, |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | highlightSection(that, section) { |
| 17 | console.log(section); |
| 18 | that.setState({toHighlight: section}); |
| 19 | } |
| 20 | |
| 21 | render() { |
| 22 | return ( |
| 23 | <> |
| 24 | <Header |
| 25 | name="ClicksForms" |
| 26 | 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 | ]} |
| 35 | hideArrow={true} |
| 36 | that={this} |
| 37 | callback={this.highlightSection} |
| 38 | /> |
| 39 | <AutoLayout> |
| 40 | <Panel halfSize={true} id="commands"> |
| 41 | <Title>Commands</Title> |
| 42 | <Divider bound={this.state.toHighlight} name="commands"/> |
| 43 | <Text>Standard commands to use ClicksForms</Text> |
| 44 | <List colour="6576CC"> |
| 45 | <ListItem><Code colour="6576CC">/accept</Code> Completes a form you are asked to fill in.</ListItem> |
| 46 | <ListItem><Code colour="6576CC">/apply</Code> Apply to a form.</ListItem> |
| 47 | <ListItem><Code colour="6576CC">/create</Code> Creates a new form.</ListItem> |
| 48 | <ListItem><Code colour="6576CC">/download</Code> Downloads a form from a service e.g. Google Forms.</ListItem> |
| 49 | <ListItem><Code colour="6576CC">/help</Code> Lists all commands.</ListItem> |
| 50 | <ListItem><Code colour="6576CC">/responses</Code> Lets you view responses to your servers form.</ListItem> |
| 51 | <ListItem><Code colour="6576CC">/manage</Code> Lets you manage your servers forms.</ListItem> |
| 52 | </List> |
| 53 | </Panel> |
| 54 | <Panel halfSize={true} id="services"> |
| 55 | <Title>Services</Title> |
| 56 | <Divider bound={this.state.toHighlight} name="services"/> |
| 57 | <Text>ClicksForms supports services such as <a href="https://docs.google.com/forms">Google Forms</a> through our Add-on.</Text> |
| 58 | <Text>Our API is public. You can view it <Link href="/clicksforms/privacy">GitHub</Link>.</Text> |
| 59 | </Panel> |
| 60 | <Panel halfSize={true} id="privacy"> |
| 61 | <Title>Privacy</Title> |
| 62 | <Divider bound={this.state.toHighlight} name="privacy"/> |
| 63 | <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> |
| 64 | <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> |
| 65 | </Panel> |
| 66 | <Panel halfSize={true} id="invite"> |
| 67 | <Title>Invite</Title> |
| 68 | <Divider bound={this.state.toHighlight} name="invite"/> |
| 69 | <CardRow><Card |
| 70 | wave="clicksforms" |
| 71 | icon="bots/clicksforms/circle" |
| 72 | buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]} |
| 73 | title="Invite" |
| 74 | subtext="Invite ClicksForms to your server" |
| 75 | buttons={[ |
| 76 | {color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands", text: "Invite"} |
| 77 | ]} |
| 78 | /></CardRow> |
| 79 | </Panel> |
| 80 | </AutoLayout> |
| 81 | </> |
| 82 | ) |
| 83 | } |
| 84 | } |