pineafan | 5b612d9 | 2022-02-17 19:22:50 +0000 | [diff] [blame] | 1 | import { Card, CardRow } from '../Components/Card'; |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 2 | import Header from '../Components/Header'; |
| 3 | import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels'; |
Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 4 | |
pineafan | 74f1674 | 2022-11-07 21:57:55 +0000 | [diff] [blame] | 5 | |
pineafan | 7bd0ad6 | 2022-10-26 22:11:29 +0100 | [diff] [blame] | 6 | export default function Home(props) { |
minion | 42e42a0 | 2022-12-05 00:14:53 +0000 | [diff] [blame] | 7 | let subtext = "" |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 8 | switch (props.season.season) { |
| 9 | case "christmas": { |
minion | 42e42a0 | 2022-12-05 00:14:53 +0000 | [diff] [blame] | 10 | subtext = "Merry Christmas!" |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 11 | break; |
| 12 | } |
| 13 | case "halloween": { |
Skyler | 67d0e56 | 2022-12-05 00:01:45 +0000 | [diff] [blame] | 14 | subtext = "Happy Halloween!" |
| 15 | break; |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 16 | } |
PineappleFan | 31d1bf5 | 2023-06-23 18:00:39 +0100 | [diff] [blame] | 17 | case "aprilFools": { |
| 18 | subtext = "Professional programmers since 1970" |
| 19 | break; |
| 20 | } |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 21 | default: { |
minion | 42e42a0 | 2022-12-05 00:14:53 +0000 | [diff] [blame] | 22 | subtext = "Creating projects that click" |
PineappleFan | 31d1bf5 | 2023-06-23 18:00:39 +0100 | [diff] [blame] | 23 | break; |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 24 | } |
| 25 | } |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 26 | const aprilFoolsStyle = props.season.season === "aprilFools" ? { |
| 27 | transform: props.season.season === "aprilFools" ? "rotate(1deg)" : "none" |
| 28 | } : {}; |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 29 | |
Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 30 | return ( |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 31 | <> |
| 32 | <Header |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 33 | name="Clicks" |
Skyler | 67d0e56 | 2022-12-05 00:01:45 +0000 | [diff] [blame] | 34 | subtext={subtext} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 35 | customImage="https://assets.clicks.codes/web/logos/clicks.svg" |
| 36 | embedImage="https://assets.clicks.codes/web/logos/clicks.png" |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 37 | gradient={["6576CC", "4B5899"]} |
pineafan | a841c76 | 2021-11-14 21:21:04 +0000 | [diff] [blame] | 38 | wave="web/waves/header/cmp" |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 39 | buttons={[]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 40 | index={true} |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 41 | fullscreen={true} |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 42 | showSubBar={props.showSubBar} |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 43 | season={props.season} |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 44 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 45 | <AutoLayout> |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 46 | <Panel halfSize={false} forceStyle={aprilFoolsStyle}> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 47 | <Title>Projects</Title> |
| 48 | <Divider /> |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 49 | <Text>{"Here's things we've released and are in the making"}</Text> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 50 | <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"}, |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 56 | {color: "6576CC", link: "/gps", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 57 | ]} |
| 58 | buttonText={"FFFFFF"} gradient={["78ECF2", "71AFE5"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 59 | url="/gps" |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 60 | showMessage={props.showMessage} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 61 | /> |
| 62 | <Card |
Skyler Grey | a47a4f7 | 2023-03-13 23:14:16 +0000 | [diff] [blame] | 63 | wave="nucleus" title="Nucleus" subtext="The core of your server" |
| 64 | icon="bots/nucleus/circle" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 65 | buttons={[ |
Skyler Grey | a47a4f7 | 2023-03-13 23:14:16 +0000 | [diff] [blame] | 66 | {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"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 68 | ]} |
| 69 | buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]} |
Skyler Grey | a47a4f7 | 2023-03-13 23:14:16 +0000 | [diff] [blame] | 70 | url="/nucleus" |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 71 | showMessage={props.showMessage} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 72 | /> |
| 73 | <Card |
| 74 | wave="clicksforms" title="ClicksForms" subtext="Create custom forms for Discord" |
| 75 | icon="bots/clicksforms/circle" |
| 76 | buttons={[ |
PineaFan | 4141862 | 2023-10-14 21:36:48 +0100 | [diff] [blame^] | 77 | {color: "775EBF", link: "https://clickscodes.github.io/docs/clicksforms", text:"API", newTab: true}, |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 78 | {color: "775EBF", link: "https://discord.com/api/oauth2/authorize?client_id=805392054678192169&permissions=2416307200&scope=bot%20applications.commands",text:"Invite"}, |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 79 | {color: "775EBF", link: "/clicksforms", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 80 | ]} |
| 81 | buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 82 | url="/clicksforms" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 83 | /> |
| 84 | <Card |
| 85 | wave="castaway" title="Castaway" subtext="Stranded on Discord" |
| 86 | icon="bots/castaway/circle" |
| 87 | buttons={[ |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 88 | {color: "F2D478", link: "/castaway", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 89 | ]} |
| 90 | buttonText={"000000"} gradient={["71AFE5", "78ECF2"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 91 | url="/castaway" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 92 | /> |
| 93 | <Card |
| 94 | wave="hooky" title="Hooky" subtext="Webhook protection for Discord" |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 95 | icon={"bots/hooky/circle"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 96 | buttons={[ |
| 97 | {color: "EDC575", link: "https://discord.com/oauth2/authorize?client_id=752188923505279037&scope=bot&permissions=536882176", text: "Invite"}, |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 98 | {color: "EDC575", link: "/hooky", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 99 | ]} |
| 100 | buttonText={"000000"} gradient={["424242", "8D8D8D"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 101 | url="/hooky" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 102 | /> |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 103 | <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 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 111 | </CardRow> |
| 112 | </Panel> |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 113 | <Panel halfSize={true} forceStyle={aprilFoolsStyle}> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 114 | <Title>Code Bases</Title> |
| 115 | <Divider /> |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 116 | <Text>We release open source projects in a few different places depending on the language and purpose</Text> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 117 | <CardRow> |
| 118 | <Card |
| 119 | wave="github" title="GitHub" subtext="View our open source projects" |
| 120 | icon="web/icons/github" |
| 121 | buttons={[ |
PineaFan | 4141862 | 2023-10-14 21:36:48 +0100 | [diff] [blame^] | 122 | {color: "424242", link: "https://github.com/clickscodes", text: "Visit"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 123 | ]} |
| 124 | buttonText={"FFFFFF"} gradient={["FFFFFF", "C4C4C4"]} |
PineaFan | 4141862 | 2023-10-14 21:36:48 +0100 | [diff] [blame^] | 125 | url="https://github.com/clickscodes" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 126 | /> |
| 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"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 134 | url="https://pypi.org/user/ClicksMinutePer/" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 135 | /> |
| 136 | </CardRow> |
| 137 | </Panel> |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 138 | <Panel halfSize={true} forceStyle={aprilFoolsStyle}> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 139 | <Title>Socials</Title> |
| 140 | <Divider /> |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 141 | <Text>{"We've got Discord, feel free to ask us anything"}</Text> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 142 | <CardRow> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 143 | <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 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 152 | </CardRow> |
| 153 | </Panel> |
| 154 | </AutoLayout> |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 155 | </> |
Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 156 | ) |
| 157 | } |