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) { |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 7 | 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 Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 34 | return ( |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 35 | <> |
| 36 | <Header |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 37 | name="Clicks" |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 38 | subtext={currentSubtext} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 39 | customImage="https://assets.clicks.codes/web/logos/clicks.svg" |
| 40 | embedImage="https://assets.clicks.codes/web/logos/clicks.png" |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 41 | gradient={["6576CC", "4B5899"]} |
pineafan | a841c76 | 2021-11-14 21:21:04 +0000 | [diff] [blame] | 42 | wave="web/waves/header/cmp" |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 43 | buttons={[]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 44 | index={true} |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 45 | fullscreen={true} |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 46 | showSubBar={props.showSubBar} |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 47 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 48 | <AutoLayout> |
| 49 | <Panel halfSize={false}> |
| 50 | <Title>Projects</Title> |
| 51 | <Divider /> |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 52 | <Text>{"Here's things we've released and are in the making"}</Text> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 53 | <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"}, |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 59 | {color: "6576CC", link: "/gps", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 60 | ]} |
| 61 | buttonText={"FFFFFF"} gradient={["78ECF2", "71AFE5"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 62 | url="/gps" |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 63 | showMessage={props.showMessage} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 64 | /> |
| 65 | <Card |
pineafan | 802daca | 2022-10-24 21:57:29 +0100 | [diff] [blame] | 66 | wave="rsm" title="RSM" subtext="Moderation Redefined" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 67 | 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"}, |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 70 | {color: "424242", link: "/rsm", text:"About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 71 | ]} |
| 72 | buttonText={"FFFFFF"} gradient={["F27878", "D96B6B"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 73 | url="/rsm" |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 74 | showMessage={props.showMessage} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 75 | /> |
| 76 | <Card |
| 77 | wave="clicksforms" title="ClicksForms" subtext="Create custom forms for Discord" |
| 78 | icon="bots/clicksforms/circle" |
| 79 | buttons={[ |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 80 | {color: "775EBF", link: "https://clicksminuteper.github.io/docs/clicksforms", text:"API", newTab: true}, |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 81 | {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] | 82 | {color: "775EBF", link: "/clicksforms", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 83 | ]} |
| 84 | buttonText={"FFFFFF"} gradient={["71AFE5", "6576CC"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 85 | url="/clicksforms" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 86 | /> |
| 87 | <Card |
| 88 | wave="castaway" title="Castaway" subtext="Stranded on Discord" |
| 89 | icon="bots/castaway/circle" |
| 90 | buttons={[ |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 91 | {color: "F2D478", link: "/castaway", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 92 | ]} |
| 93 | buttonText={"000000"} gradient={["71AFE5", "78ECF2"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 94 | url="/castaway" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 95 | /> |
| 96 | <Card |
| 97 | wave="hooky" title="Hooky" subtext="Webhook protection for Discord" |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 98 | icon={"bots/hooky/circle"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 99 | buttons={[ |
| 100 | {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] | 101 | {color: "EDC575", link: "/hooky", text: "About"} |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 102 | ]} |
| 103 | buttonText={"000000"} gradient={["424242", "8D8D8D"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 104 | url="/hooky" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 105 | /> |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 106 | <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 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 114 | </CardRow> |
| 115 | </Panel> |
| 116 | <Panel halfSize={true}> |
| 117 | <Title>Code Bases</Title> |
| 118 | <Divider /> |
pineafan | d94d40e | 2022-10-23 19:55:29 +0100 | [diff] [blame] | 119 | <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] | 120 | <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"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 128 | url="https://github.com/clicksminuteper" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 129 | /> |
| 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"]} |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 137 | url="https://pypi.org/user/ClicksMinutePer/" |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 138 | /> |
| 139 | </CardRow> |
| 140 | </Panel> |
| 141 | <Panel halfSize={true}> |
| 142 | <Title>Socials</Title> |
| 143 | <Divider /> |
pineafan | b7c7974 | 2022-11-06 18:08:36 +0000 | [diff] [blame] | 144 | <Text>{"We've got Discord, feel free to ask us anything"}</Text> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 145 | <CardRow> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 146 | <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 | /> |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 155 | </CardRow> |
| 156 | </Panel> |
| 157 | </AutoLayout> |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 158 | </> |
Samuel Shuert | 016ea02 | 2021-09-01 16:17:24 -0500 | [diff] [blame] | 159 | ) |
| 160 | } |