blob: 05dd9d1218d4c0bf1de5b4a88b1193d6861e1978 [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) {
minion42e42a02022-12-05 00:14:53 +00007 let subtext = ""
PineaFan93f540e2022-12-04 22:05:57 +00008 switch (props.season.season) {
9 case "christmas": {
minion42e42a02022-12-05 00:14:53 +000010 subtext = "Merry Christmas!"
PineaFan93f540e2022-12-04 22:05:57 +000011 break;
12 }
13 case "halloween": {
Skyler67d0e562022-12-05 00:01:45 +000014 subtext = "Happy Halloween!"
15 break;
PineaFan93f540e2022-12-04 22:05:57 +000016 }
PineappleFan31d1bf52023-06-23 18:00:39 +010017 case "aprilFools": {
18 subtext = "Professional programmers since 1970"
19 break;
20 }
PineaFan93f540e2022-12-04 22:05:57 +000021 default: {
minion42e42a02022-12-05 00:14:53 +000022 subtext = "Creating projects that click"
PineappleFan31d1bf52023-06-23 18:00:39 +010023 break;
PineaFan93f540e2022-12-04 22:05:57 +000024 }
25 }
PineaFana465f352023-02-05 16:45:01 +000026 const aprilFoolsStyle = props.season.season === "aprilFools" ? {
27 transform: props.season.season === "aprilFools" ? "rotate(1deg)" : "none"
28 } : {};
PineaFan93f540e2022-12-04 22:05:57 +000029
Samuel Shuert016ea022021-09-01 16:17:24 -050030 return (
pineafana5ce9102021-09-02 17:21:31 +010031 <>
32 <Header
pineafanff3d4522022-05-06 19:51:02 +010033 name="Clicks"
Skyler67d0e562022-12-05 00:01:45 +000034 subtext={subtext}
pineafanff3d4522022-05-06 19:51:02 +010035 customImage="https://assets.clicks.codes/web/logos/clicks.svg"
36 embedImage="https://assets.clicks.codes/web/logos/clicks.png"
pineafana5ce9102021-09-02 17:21:31 +010037 gradient={["6576CC", "4B5899"]}
pineafana841c762021-11-14 21:21:04 +000038 wave="web/waves/header/cmp"
pineafana5ce9102021-09-02 17:21:31 +010039 buttons={[]}
pineafanff3d4522022-05-06 19:51:02 +010040 index={true}
pineafand94d40e2022-10-23 19:55:29 +010041 fullscreen={true}
pineafanb18f0192022-10-27 22:08:36 +010042 showSubBar={props.showSubBar}
PineaFana465f352023-02-05 16:45:01 +000043 season={props.season}
pineafana5ce9102021-09-02 17:21:31 +010044 />
pineafane0283a82022-02-13 10:05:56 +000045 <AutoLayout>
PineaFana465f352023-02-05 16:45:01 +000046 <Panel halfSize={false} forceStyle={aprilFoolsStyle}>
pineafane0283a82022-02-13 10:05:56 +000047 <Title>Projects</Title>
48 <Divider />
pineafand94d40e2022-10-23 19:55:29 +010049 <Text>{"Here's things we've released and are in the making"}</Text>
pineafane0283a82022-02-13 10:05:56 +000050 <CardRow>
51 <Card
52 wave="gps" title="GPS" subtext="Cards Against Humanity on Discord"
53 icon="bots/gps/circle"
54 buttons={[
55 {color: "6576CC", link: "https://discordapp.com/oauth2/authorize?client_id=679361555732627476&scope=bot&permissions=130048", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +010056 {color: "6576CC", link: "/gps", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000057 ]}
58 buttonText={"FFFFFF"} gradient={["78ECF2", "71AFE5"]}
pineafanff3d4522022-05-06 19:51:02 +010059 url="/gps"
pineafanb18f0192022-10-27 22:08:36 +010060 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000061 />
62 <Card
Skyler Greya47a4f72023-03-13 23:14:16 +000063 wave="nucleus" title="Nucleus" subtext="The core of your server"
64 icon="bots/nucleus/circle"
pineafane0283a82022-02-13 10:05:56 +000065 buttons={[
Skyler Greya47a4f72023-03-13 23:14:16 +000066 {color: "424242", link: "https://discordapp.com/api/oauth2/authorize?client_id=715989276382462053&permissions=396173372662&scope=bot%20applications.commands",text:"Invite"},
67 {color: "424242", link: "/nucleus", text:"About"}
pineafane0283a82022-02-13 10:05:56 +000068 ]}
69 buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]}
Skyler Greya47a4f72023-03-13 23:14:16 +000070 url="/nucleus"
pineafanb18f0192022-10-27 22:08:36 +010071 showMessage={props.showMessage}
pineafane0283a82022-02-13 10:05:56 +000072 />
73 <Card
74 wave="clicksforms" title="ClicksForms" subtext="Create custom forms for Discord"
75 icon="bots/clicksforms/circle"
76 buttons={[
PineaFan41418622023-10-14 21:36:48 +010077 {color: "775EBF", link: "https://clickscodes.github.io/docs/clicksforms", text:"API", newTab: true},
pineafane0283a82022-02-13 10:05:56 +000078 {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 +010079 {color: "775EBF", link: "/clicksforms", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000080 ]}
81 buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]}
pineafanff3d4522022-05-06 19:51:02 +010082 url="/clicksforms"
pineafane0283a82022-02-13 10:05:56 +000083 />
84 <Card
85 wave="castaway" title="Castaway" subtext="Stranded on Discord"
86 icon="bots/castaway/circle"
87 buttons={[
pineafanff3d4522022-05-06 19:51:02 +010088 {color: "F2D478", link: "/castaway", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000089 ]}
90 buttonText={"000000"} gradient={["71AFE5", "78ECF2"]}
pineafanff3d4522022-05-06 19:51:02 +010091 url="/castaway"
pineafane0283a82022-02-13 10:05:56 +000092 />
93 <Card
94 wave="hooky" title="Hooky" subtext="Webhook protection for Discord"
pineafanb7c79742022-11-06 18:08:36 +000095 icon={"bots/hooky/circle"}
pineafane0283a82022-02-13 10:05:56 +000096 buttons={[
97 {color: "EDC575", link: "https://discord.com/oauth2/authorize?client_id=752188923505279037&scope=bot&permissions=536882176", text: "Invite"},
pineafanff3d4522022-05-06 19:51:02 +010098 {color: "EDC575", link: "/hooky", text: "About"}
pineafane0283a82022-02-13 10:05:56 +000099 ]}
100 buttonText={"000000"} gradient={["424242", "8D8D8D"]}
pineafanff3d4522022-05-06 19:51:02 +0100101 url="/hooky"
pineafane0283a82022-02-13 10:05:56 +0000102 />
pineafanb7c79742022-11-06 18:08:36 +0000103 <Card
104 title="New projects..." subtext="We're actively working on projects! You can join our Discord to find out more."
105 buttons={[
106 {color: "6576CC", link: "https://discord.gg/bPaNnxe", text:"Join our Discord"}
107 ]}
108 buttonText={"FFFFFF"} border={"C4C4C4"}
109 url="/" overwritePosition={"center"}
110 />
pineafane0283a82022-02-13 10:05:56 +0000111 </CardRow>
112 </Panel>
PineaFana465f352023-02-05 16:45:01 +0000113 <Panel halfSize={true} forceStyle={aprilFoolsStyle}>
pineafane0283a82022-02-13 10:05:56 +0000114 <Title>Code Bases</Title>
115 <Divider />
pineafand94d40e2022-10-23 19:55:29 +0100116 <Text>We release open source projects in a few different places depending on the language and purpose</Text>
pineafane0283a82022-02-13 10:05:56 +0000117 <CardRow>
118 <Card
119 wave="github" title="GitHub" subtext="View our open source projects"
120 icon="web/icons/github"
121 buttons={[
PineaFan41418622023-10-14 21:36:48 +0100122 {color: "424242", link: "https://github.com/clickscodes", text: "Visit"}
pineafane0283a82022-02-13 10:05:56 +0000123 ]}
124 buttonText={"FFFFFF"} gradient={["FFFFFF", "C4C4C4"]}
PineaFan41418622023-10-14 21:36:48 +0100125 url="https://github.com/clickscodes"
pineafane0283a82022-02-13 10:05:56 +0000126 />
127 <Card
128 wave="pypi" title="PyPi" subtext="View our modules for python"
129 icon="web/icons/pypi"
130 buttons={[
131 {color: "FFC91E", link: "https://pypi.org/user/ClicksMinutePer/", text: "Visit"}
132 ]}
133 buttonText={"000000"} gradient={["2F6490", "3775A8"]}
pineafanff3d4522022-05-06 19:51:02 +0100134 url="https://pypi.org/user/ClicksMinutePer/"
pineafane0283a82022-02-13 10:05:56 +0000135 />
136 </CardRow>
137 </Panel>
PineaFana465f352023-02-05 16:45:01 +0000138 <Panel halfSize={true} forceStyle={aprilFoolsStyle}>
pineafane0283a82022-02-13 10:05:56 +0000139 <Title>Socials</Title>
140 <Divider />
pineafanb7c79742022-11-06 18:08:36 +0000141 <Text>{"We've got Discord, feel free to ask us anything"}</Text>
pineafane0283a82022-02-13 10:05:56 +0000142 <CardRow>
pineafanff3d4522022-05-06 19:51:02 +0100143 <Card
144 wave="discord" title="Discord" subtext="Join our Discord server to talk with the community"
145 icon="web/icons/discord"
146 buttons={[
147 {color: "404EED", link: "https://discord.gg/bPaNnxe", text: "Join"}
148 ]}
149 buttonText={"FFFFFF"} gradient={["404EED", "404EED"]}
150 url="https://discord.gg/bPaNnxe"
151 />
pineafane0283a82022-02-13 10:05:56 +0000152 </CardRow>
153 </Panel>
154 </AutoLayout>
pineafana5ce9102021-09-02 17:21:31 +0100155 </>
Samuel Shuert016ea022021-09-01 16:17:24 -0500156 )
157}