blob: dbd1779aca70cd99dc27baa411cc54520040a23b [file] [log] [blame]
pineafan5b612d92022-02-17 19:22:50 +00001import { Card, CardRow } from '../Components/Card';
pineafane0283a82022-02-13 10:05:56 +00002import Header from '../Components/Header';
3import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels';
Samuel Shuert016ea022021-09-01 16:17:24 -05004
pineafan74f16742022-11-07 21:57:55 +00005const duplicate = (arr, numberOfRepetitions) => arr.flatMap(i => Array.from({ length: numberOfRepetitions }).fill(i));
6
pineafan7bd0ad62022-10-26 22:11:29 +01007export default function Home(props) {
Samuel Shuert016ea022021-09-01 16:17:24 -05008 return (
pineafana5ce9102021-09-02 17:21:31 +01009 <>
10 <Header
pineafanff3d4522022-05-06 19:51:02 +010011 name="Clicks"
pineafan74f16742022-11-07 21:57:55 +000012 subtext="We develop "
pineafanff3d4522022-05-06 19:51:02 +010013 customImage="https://assets.clicks.codes/web/logos/clicks.svg"
14 embedImage="https://assets.clicks.codes/web/logos/clicks.png"
pineafana5ce9102021-09-02 17:21:31 +010015 gradient={["6576CC", "4B5899"]}
pineafana841c762021-11-14 21:21:04 +000016 wave="web/waves/header/cmp"
pineafana5ce9102021-09-02 17:21:31 +010017 buttons={[]}
pineafanff3d4522022-05-06 19:51:02 +010018 index={true}
pineafand94d40e2022-10-23 19:55:29 +010019 fullscreen={true}
pineafanb18f0192022-10-27 22:08:36 +010020 showSubBar={props.showSubBar}
pineafan74f16742022-11-07 21:57:55 +000021 effects={{ type: 50, changingSubtext: {
22 common: [
23 "websites", "Discord bots", "utilities", "APIs"
24 ], rare: ["overly complicated header animations"]
25 }}}
pineafana5ce9102021-09-02 17:21:31 +010026 />
pineafane0283a82022-02-13 10:05:56 +000027 <AutoLayout>
28 <Panel halfSize={false}>
29 <Title>Projects</Title>
30 <Divider />
pineafand94d40e2022-10-23 19:55:29 +010031 <Text>{"Here's things we've released and are in the making"}</Text>
pineafane0283a82022-02-13 10:05:56 +000032 <CardRow>
33 <Card
34 wave="gps" title="GPS" subtext="Cards Against Humanity on Discord"
35 icon="bots/gps/circle"
36 buttons={[
37 {color: "6576CC", link: "https://discordapp.com/oauth2/authorize?client_id=679361555732627476&scope=bot&permissions=130048", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +010038 {color: "6576CC", link: "/gps", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000039 ]}
40 buttonText={"FFFFFF"} gradient={["78ECF2", "71AFE5"]}
pineafanff3d4522022-05-06 19:51:02 +010041 url="/gps"
pineafanb18f0192022-10-27 22:08:36 +010042 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000043 />
44 <Card
pineafan802daca2022-10-24 21:57:29 +010045 wave="rsm" title="RSM" subtext="Moderation Redefined"
pineafane0283a82022-02-13 10:05:56 +000046 icon="bots/rsm/circle"
47 buttons={[
48 {color: "424242", link: "https://discord.com/api/oauth2/authorize?client_id=715989276382462053&permissions=121295465718&scope=bot%20applications.commands",text:"Invite"},
pineafanff3d4522022-05-06 19:51:02 +010049 {color: "424242", link: "/rsm", text:"About"}
pineafane0283a82022-02-13 10:05:56 +000050 ]}
51 buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]}
pineafanff3d4522022-05-06 19:51:02 +010052 url="/rsm"
pineafanb18f0192022-10-27 22:08:36 +010053 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000054 />
55 <Card
56 wave="clicksforms" title="ClicksForms" subtext="Create custom forms for Discord"
57 icon="bots/clicksforms/circle"
58 buttons={[
pineafanff3d4522022-05-06 19:51:02 +010059 {color: "775EBF", link: "https://clicksminuteper.github.io/docs/clicksforms", text:"API", newTab: true},
pineafane0283a82022-02-13 10:05:56 +000060 {color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands",text:"Invite"},
pineafanff3d4522022-05-06 19:51:02 +010061 {color: "775EBF", link: "/clicksforms", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000062 ]}
63 buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
pineafanff3d4522022-05-06 19:51:02 +010064 url="/clicksforms"
pineafane0283a82022-02-13 10:05:56 +000065 />
66 <Card
67 wave="castaway" title="Castaway" subtext="Stranded on Discord"
68 icon="bots/castaway/circle"
69 buttons={[
pineafanff3d4522022-05-06 19:51:02 +010070 {color: "F2D478", link: "/castaway", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000071 ]}
72 buttonText={"000000"} gradient={["71AFE5", "78ECF2"]}
pineafanff3d4522022-05-06 19:51:02 +010073 url="/castaway"
pineafane0283a82022-02-13 10:05:56 +000074 />
75 <Card
76 wave="hooky" title="Hooky" subtext="Webhook protection for Discord"
pineafanb7c79742022-11-06 18:08:36 +000077 icon={"bots/hooky/circle"}
pineafane0283a82022-02-13 10:05:56 +000078 buttons={[
79 {color: "EDC575", link: "https://discord.com/oauth2/authorize?client_id=752188923505279037&scope=bot&permissions=536882176", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +010080 {color: "EDC575", link: "/hooky", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000081 ]}
82 buttonText={"000000"} gradient={["424242", "8D8D8D"]}
pineafanff3d4522022-05-06 19:51:02 +010083 url="/hooky"
pineafane0283a82022-02-13 10:05:56 +000084 />
pineafanb7c79742022-11-06 18:08:36 +000085 <Card
86 title="New projects..." subtext="We're actively working on projects! You can join our Discord to find out more."
87 buttons={[
88 {color: "6576CC", link: "https://discord.gg/bPaNnxe", text:"Join our Discord"}
89 ]}
90 buttonText={"FFFFFF"} border={"C4C4C4"}
91 url="/" overwritePosition={"center"}
92 />
pineafane0283a82022-02-13 10:05:56 +000093 </CardRow>
94 </Panel>
95 <Panel halfSize={true}>
96 <Title>Code Bases</Title>
97 <Divider />
pineafand94d40e2022-10-23 19:55:29 +010098 <Text>We release open source projects in a few different places depending on the language and purpose</Text>
pineafane0283a82022-02-13 10:05:56 +000099 <CardRow>
100 <Card
101 wave="github" title="GitHub" subtext="View our open source projects"
102 icon="web/icons/github"
103 buttons={[
104 {color: "424242", link: "https://github.com/clicksminuteper", text: "Visit"}
105 ]}
106 buttonText={"FFFFFF"} gradient={["FFFFFF", "C4C4C4"]}
pineafanff3d4522022-05-06 19:51:02 +0100107 url="https://github.com/clicksminuteper"
pineafane0283a82022-02-13 10:05:56 +0000108 />
109 <Card
110 wave="pypi" title="PyPi" subtext="View our modules for python"
111 icon="web/icons/pypi"
112 buttons={[
113 {color: "FFC91E", link: "https://pypi.org/user/ClicksMinutePer/", text: "Visit"}
114 ]}
115 buttonText={"000000"} gradient={["2F6490", "3775A8"]}
pineafanff3d4522022-05-06 19:51:02 +0100116 url="https://pypi.org/user/ClicksMinutePer/"
pineafane0283a82022-02-13 10:05:56 +0000117 />
118 </CardRow>
119 </Panel>
120 <Panel halfSize={true}>
121 <Title>Socials</Title>
122 <Divider />
pineafanb7c79742022-11-06 18:08:36 +0000123 <Text>{"We've got Discord, feel free to ask us anything"}</Text>
pineafane0283a82022-02-13 10:05:56 +0000124 <CardRow>
pineafanff3d4522022-05-06 19:51:02 +0100125 <Card
126 wave="discord" title="Discord" subtext="Join our Discord server to talk with the community"
127 icon="web/icons/discord"
128 buttons={[
129 {color: "404EED", link: "https://discord.gg/bPaNnxe", text: "Join"}
130 ]}
131 buttonText={"FFFFFF"} gradient={["404EED", "404EED"]}
132 url="https://discord.gg/bPaNnxe"
133 />
pineafane0283a82022-02-13 10:05:56 +0000134 </CardRow>
135 </Panel>
136 </AutoLayout>
pineafana5ce9102021-09-02 17:21:31 +0100137 </>
Samuel Shuert016ea022021-09-01 16:17:24 -0500138 )
139}