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 | |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 16 | highlightSection(section) { |
| 17 | this.setState({toHighlight: section}); |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | render() { |
| 21 | return ( |
| 22 | <> |
| 23 | <Header |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 24 | name={"Clicks​Forms"} |
| 25 | customImage={"https://assets.clicks.codes/web/logos/clicksforms.svg"} |
| 26 | embedImage="https://assets.clicks.codes/bots/clicksforms/normal.png" |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 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 | ]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 36 | callback={() => this.highlightSection()} |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 37 | /> |
| 38 | <AutoLayout> |
| 39 | <Panel halfSize={true} id="commands"> |
| 40 | <Title>Commands</Title> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 41 | <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="commands"/> |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 42 | <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> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 53 | <Panel halfSize={true} id="services" style={this.state.toHighlight == "services" ? {border: "solid 10px red"} : {}}> |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 54 | <Title>Services</Title> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 55 | <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="services"/> |
pineafan | fd93e6e | 2022-05-06 20:30:09 +0100 | [diff] [blame^] | 56 | <Text>ClicksForms supports services such as <Link href="https://docs.google.com/forms">Google Forms</Link> through our Add-on.</Text> |
Pineapplefan | ad55375 | 2022-02-13 20:02:56 +0000 | [diff] [blame] | 57 | <Text>Our API is public. You can view it <Link href="/clicksforms/docs">here</Link>.</Text> |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 58 | </Panel> |
| 59 | <Panel halfSize={true} id="privacy"> |
| 60 | <Title>Privacy</Title> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 61 | <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="privacy"/> |
pineafan | fd93e6e | 2022-05-06 20:30:09 +0100 | [diff] [blame^] | 62 | <Text>You should always know what we know and store about you, so <Link href="https://clicksminuteper.github.io/policies/clicksforms">here</Link> is the complete list.</Text> |
| 63 | <Text>We also have a list of terms for using ClicksForms, it can be viewed <Link href="https://clicksminuteper.github.io/policies/clicksformstos">here</Link>.</Text> |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 64 | </Panel> |
| 65 | <Panel halfSize={true} id="invite"> |
| 66 | <Title>Invite</Title> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 67 | <Divider toHighlight={this.state.toHighlight} highlightColour="6576CC" name="invite"/> |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 68 | <CardRow><Card |
| 69 | wave="clicksforms" |
| 70 | icon="bots/clicksforms/circle" |
| 71 | buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 72 | title="ClicksForms" |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 73 | 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 | ]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 77 | url="https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands" |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 78 | /></CardRow> |
| 79 | </Panel> |
| 80 | </AutoLayout> |
| 81 | </> |
| 82 | ) |
| 83 | } |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 84 | } |