blob: b7738abe8756f1eccaeb620c115ce455f01d14a3 [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 +00005
pineafan7bd0ad62022-10-26 22:11:29 +01006export default function Home(props) {
PineaFan93f540e2022-12-04 22:05:57 +00007 let subtexts = []
8 switch (props.season.season) {
9 case "christmas": {
10 subtexts = [
11 "Merry Christmas!",
12 "Happy Holidays!",
13 "Season's Greetings!",
14 "Merry Clicksmas!",
15 ]
16 break;
17 }
18 case "halloween": {
19 subtexts = [
20 "Happy Halloween!",
21 "Trick or Treat!",
22 "boo"
23 ]
24 }
25 default: {
26 subtexts = [
27 "Creating projects that click"
28 ];
29 }
30 }
31
32 let currentSubtext = subtexts[Math.floor(props.randomSeed * subtexts.length)];
33
Samuel Shuert016ea022021-09-01 16:17:24 -050034 return (
pineafana5ce9102021-09-02 17:21:31 +010035 <>
36 <Header
pineafanff3d4522022-05-06 19:51:02 +010037 name="Clicks"
PineaFan93f540e2022-12-04 22:05:57 +000038 subtext={currentSubtext}
pineafanff3d4522022-05-06 19:51:02 +010039 customImage="https://assets.clicks.codes/web/logos/clicks.svg"
40 embedImage="https://assets.clicks.codes/web/logos/clicks.png"
pineafana5ce9102021-09-02 17:21:31 +010041 gradient={["6576CC", "4B5899"]}
pineafana841c762021-11-14 21:21:04 +000042 wave="web/waves/header/cmp"
pineafana5ce9102021-09-02 17:21:31 +010043 buttons={[]}
pineafanff3d4522022-05-06 19:51:02 +010044 index={true}
pineafand94d40e2022-10-23 19:55:29 +010045 fullscreen={true}
pineafanb18f0192022-10-27 22:08:36 +010046 showSubBar={props.showSubBar}
pineafana5ce9102021-09-02 17:21:31 +010047 />
pineafane0283a82022-02-13 10:05:56 +000048 <AutoLayout>
49 <Panel halfSize={false}>
50 <Title>Projects</Title>
51 <Divider />
pineafand94d40e2022-10-23 19:55:29 +010052 <Text>{"Here's things we've released and are in the making"}</Text>
pineafane0283a82022-02-13 10:05:56 +000053 <CardRow>
54 <Card
55 wave="gps" title="GPS" subtext="Cards Against Humanity on Discord"
56 icon="bots/gps/circle"
57 buttons={[
58 {color: "6576CC", link: "https://discordapp.com/oauth2/authorize?client_id=679361555732627476&scope=bot&permissions=130048", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +010059 {color: "6576CC", link: "/gps", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000060 ]}
61 buttonText={"FFFFFF"} gradient={["78ECF2", "71AFE5"]}
pineafanff3d4522022-05-06 19:51:02 +010062 url="/gps"
pineafanb18f0192022-10-27 22:08:36 +010063 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000064 />
65 <Card
pineafan802daca2022-10-24 21:57:29 +010066 wave="rsm" title="RSM" subtext="Moderation Redefined"
pineafane0283a82022-02-13 10:05:56 +000067 icon="bots/rsm/circle"
68 buttons={[
69 {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 +010070 {color: "424242", link: "/rsm", text:"About"}
pineafane0283a82022-02-13 10:05:56 +000071 ]}
72 buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]}
pineafanff3d4522022-05-06 19:51:02 +010073 url="/rsm"
pineafanb18f0192022-10-27 22:08:36 +010074 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000075 />
76 <Card
77 wave="clicksforms" title="ClicksForms" subtext="Create custom forms for Discord"
78 icon="bots/clicksforms/circle"
79 buttons={[
pineafanff3d4522022-05-06 19:51:02 +010080 {color: "775EBF", link: "https://clicksminuteper.github.io/docs/clicksforms", text:"API", newTab: true},
pineafane0283a82022-02-13 10:05:56 +000081 {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 +010082 {color: "775EBF", link: "/clicksforms", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000083 ]}
84 buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
pineafanff3d4522022-05-06 19:51:02 +010085 url="/clicksforms"
pineafane0283a82022-02-13 10:05:56 +000086 />
87 <Card
88 wave="castaway" title="Castaway" subtext="Stranded on Discord"
89 icon="bots/castaway/circle"
90 buttons={[
pineafanff3d4522022-05-06 19:51:02 +010091 {color: "F2D478", link: "/castaway", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000092 ]}
93 buttonText={"000000"} gradient={["71AFE5", "78ECF2"]}
pineafanff3d4522022-05-06 19:51:02 +010094 url="/castaway"
pineafane0283a82022-02-13 10:05:56 +000095 />
96 <Card
97 wave="hooky" title="Hooky" subtext="Webhook protection for Discord"
pineafanb7c79742022-11-06 18:08:36 +000098 icon={"bots/hooky/circle"}
pineafane0283a82022-02-13 10:05:56 +000099 buttons={[
100 {color: "EDC575", link: "https://discord.com/oauth2/authorize?client_id=752188923505279037&scope=bot&permissions=536882176", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +0100101 {color: "EDC575", link: "/hooky", text: "About"}
pineafane0283a82022-02-13 10:05:56 +0000102 ]}
103 buttonText={"000000"} gradient={["424242", "8D8D8D"]}
pineafanff3d4522022-05-06 19:51:02 +0100104 url="/hooky"
pineafane0283a82022-02-13 10:05:56 +0000105 />
pineafanb7c79742022-11-06 18:08:36 +0000106 <Card
107 title="New projects..." subtext="We're actively working on projects! You can join our Discord to find out more."
108 buttons={[
109 {color: "6576CC", link: "https://discord.gg/bPaNnxe", text:"Join our Discord"}
110 ]}
111 buttonText={"FFFFFF"} border={"C4C4C4"}
112 url="/" overwritePosition={"center"}
113 />
pineafane0283a82022-02-13 10:05:56 +0000114 </CardRow>
115 </Panel>
116 <Panel halfSize={true}>
117 <Title>Code Bases</Title>
118 <Divider />
pineafand94d40e2022-10-23 19:55:29 +0100119 <Text>We release open source projects in a few different places depending on the language and purpose</Text>
pineafane0283a82022-02-13 10:05:56 +0000120 <CardRow>
121 <Card
122 wave="github" title="GitHub" subtext="View our open source projects"
123 icon="web/icons/github"
124 buttons={[
125 {color: "424242", link: "https://github.com/clicksminuteper", text: "Visit"}
126 ]}
127 buttonText={"FFFFFF"} gradient={["FFFFFF", "C4C4C4"]}
pineafanff3d4522022-05-06 19:51:02 +0100128 url="https://github.com/clicksminuteper"
pineafane0283a82022-02-13 10:05:56 +0000129 />
130 <Card
131 wave="pypi" title="PyPi" subtext="View our modules for python"
132 icon="web/icons/pypi"
133 buttons={[
134 {color: "FFC91E", link: "https://pypi.org/user/ClicksMinutePer/", text: "Visit"}
135 ]}
136 buttonText={"000000"} gradient={["2F6490", "3775A8"]}
pineafanff3d4522022-05-06 19:51:02 +0100137 url="https://pypi.org/user/ClicksMinutePer/"
pineafane0283a82022-02-13 10:05:56 +0000138 />
139 </CardRow>
140 </Panel>
141 <Panel halfSize={true}>
142 <Title>Socials</Title>
143 <Divider />
pineafanb7c79742022-11-06 18:08:36 +0000144 <Text>{"We've got Discord, feel free to ask us anything"}</Text>
pineafane0283a82022-02-13 10:05:56 +0000145 <CardRow>
pineafanff3d4522022-05-06 19:51:02 +0100146 <Card
147 wave="discord" title="Discord" subtext="Join our Discord server to talk with the community"
148 icon="web/icons/discord"
149 buttons={[
150 {color: "404EED", link: "https://discord.gg/bPaNnxe", text: "Join"}
151 ]}
152 buttonText={"FFFFFF"} gradient={["404EED", "404EED"]}
153 url="https://discord.gg/bPaNnxe"
154 />
pineafane0283a82022-02-13 10:05:56 +0000155 </CardRow>
156 </Panel>
157 </AutoLayout>
pineafana5ce9102021-09-02 17:21:31 +0100158 </>
Samuel Shuert016ea022021-09-01 16:17:24 -0500159 )
160}