blob: bd2d7aa1332fa2dd375aa32d528b5c92cbc6d848 [file] [log] [blame]
import { Card, CardRow } from '../Components/Card';
import Header from '../Components/Header'
import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels';
import { List, ListItem, Code } from '../Components/Texttools';
import Link from 'next/link';
import React from 'react';
export default class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
toHighlight: null,
};
}
highlightSection(that, section) {
console.log(section);
that.setState({toHighlight: section});
}
render() {
return (
<>
<Header
name="ClicksForms"
subtext="Custom forms on Discord"
gradient={["71AFE5", "6576CC"]}
wave="web/waves/header/clicksforms"
buttons={[
{id: "commands", color: "6576CC", buttonText: "FFFFFF", link: "#commands", text: "Commands"},
{id: "services", color: "6576CC", buttonText: "FFFFFF", link: "#services", text: "Services"},
{id: "privacy", color: "6576CC", buttonText: "FFFFFF", link: "#privacy", text: "Privacy"},
{id: "invite", color: "775EBF", buttonText: "FFFFFF", link: "#invite", text: "Invite"}
]}
hideArrow={true}
that={this}
callback={this.highlightSection}
/>
<AutoLayout>
<Panel halfSize={true} id="commands">
<Title>Commands</Title>
<Divider bound={this.state.toHighlight} name="commands"/>
<Text>Standard commands to use ClicksForms</Text>
<List colour="6576CC">
<ListItem><Code colour="6576CC">/accept</Code> Completes a form you are asked to fill in.</ListItem>
<ListItem><Code colour="6576CC">/apply</Code> Apply to a form.</ListItem>
<ListItem><Code colour="6576CC">/create</Code> Creates a new form.</ListItem>
<ListItem><Code colour="6576CC">/download</Code> Downloads a form from a service e.g. Google Forms.</ListItem>
<ListItem><Code colour="6576CC">/help</Code> Lists all commands.</ListItem>
<ListItem><Code colour="6576CC">/responses</Code> Lets you view responses to your servers form.</ListItem>
<ListItem><Code colour="6576CC">/manage</Code> Lets you manage your servers forms.</ListItem>
</List>
</Panel>
<Panel halfSize={true} id="services">
<Title>Services</Title>
<Divider bound={this.state.toHighlight} name="services"/>
<Text>ClicksForms supports services such as <a href="https://docs.google.com/forms">Google Forms</a> through our Add-on.</Text>
<Text>Our API is public. You can view it <Link href="/clicksforms/privacy">GitHub</Link>.</Text>
</Panel>
<Panel halfSize={true} id="privacy">
<Title>Privacy</Title>
<Divider bound={this.state.toHighlight} name="privacy"/>
<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>
<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>
</Panel>
<Panel halfSize={true} id="invite">
<Title>Invite</Title>
<Divider bound={this.state.toHighlight} name="invite"/>
<CardRow><Card
wave="clicksforms"
icon="bots/clicksforms/circle"
buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
title="Invite"
subtext="Invite ClicksForms to your server"
buttons={[
{color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands", text: "Invite"}
]}
/></CardRow>
</Panel>
</AutoLayout>
</>
)
}
}