pineafan | 15b813d | 2022-02-13 10:06:09 +0000 | [diff] [blame] | 1 | import Header from '../Components/Header' |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 2 | import Marquee from 'react-fast-marquee' |
| 3 | import { AutoLayout, Panel, Title, Subtitle, Text, Divider } from '../Components/Panels'; |
| 4 | import { Component } from 'react'; |
| 5 | import Image from 'next/image'; |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 6 | |
| 7 | class Supporter extends Component { |
| 8 | constructor(props) { |
| 9 | super(props); |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 10 | } |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 11 | |
| 12 | render() { |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 13 | return <a style={{ |
| 14 | display: 'flex', flexDirection: 'column', alignItems: 'center', |
| 15 | justifyContent: 'center', backgroundColor: '#6576CC', color: '#FFFFFF', |
| 16 | paddingInline: '20px', paddingBlock: '0.25rem', |
| 17 | borderRadius: '10px', boxShadow: '0px -3px 10px 2px #424242' |
| 18 | }} |
| 19 | href={this.props.sub.length > 1 ? this.props.sub[1] : "#"} |
| 20 | title={this.props.sub[0]} |
| 21 | >{this.props.children}</a> |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 22 | } |
| 23 | } |
| 24 | |
| 25 | |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 26 | export default function Home(props) { |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 27 | const groups = [ |
| 28 | { // Devs and testers |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 29 | "TheCodedProf": ["Programmer", "https://github.com/TheCodedProf"], |
| 30 | "Minion3665": ["Programmer", "https://a.starrysky.fyi"], |
PineaFan | b45cc63 | 2023-10-14 22:14:40 +0100 | [diff] [blame] | 31 | "PineaFan": ["Programmer", "https://github.com/PineaFan"], |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 32 | "Eek": ["Programmer", "https://nexy7574.co.uk"], |
| 33 | "Dilythion": ["Programmer"], |
| 34 | "Tani": ["Programmer"], |
| 35 | "CocoboloDesk": ["Clicks Team"], |
| 36 | "GenElectrovise": ["Plugins"], |
| 37 | "DOSmile": ["Mentoring"], |
| 38 | "Zanderp25": ["Programming and design", "https://zanderp25.com"] |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 39 | }, |
| 40 | { // Packages |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 41 | "react-tiny-popover": ["React popovers (No longer used but we stil love you <3)", "https://www.npmjs.com/package/react-tiny-popover"], |
| 42 | "react-in-viewport": ["Scroll in effects", "https://www.npmjs.com/package/react-in-viewport"], |
| 43 | "hcaptcha": ["Nucleus Verify captchas", "https://www.hcaptcha.com"], |
| 44 | "react-fast-marquee": ["These scrolling sections", "https://www.npmjs.com/package/react-fast-marquee"], |
| 45 | "theme-ui": ["Checked out the opposite theme?", "https://www.npmjs.com/package/theme-ui"], |
| 46 | "Nextjs": ["It's all built in Next", "https://nextjs.org"], |
| 47 | "Discord.py": ["Wouldn't have started Clicks without you <3", "https://discordpy.readthedocs.io"], |
| 48 | "Discord.js": ["Thanks to the community of devs", "https://discord.js.org"] |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 49 | }, |
| 50 | { // Programs |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 51 | "Figma": ["Designing", "https://figma.com"], |
| 52 | "Discord": ["Chatting", "https://discord.com"], |
| 53 | "Flaticon": ["Icons", "https://flaticon.com"], |
| 54 | "GitHub": ["Code hosting and GH Pages", "https://github.com"], |
| 55 | "Gerrit": ["Code hosting", "https://gerritcodereview.com"], |
| 56 | "NextCloud": ["Self hosted cloud", "https://nextcloud.com"], |
| 57 | "Cloudflare": ["All DNS and domains - Thanks for staying free <3", "https://cloudflare.com"] |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 58 | }, |
| 59 | { // Special thanks |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 60 | "InternetMetro": ["Minecraft server building", "https://kendalbentley85.wixsite.com/internetmetro"], |
| 61 | "Eddy": ["Minecraft server building"], |
| 62 | "Quantum": ["Thanks for all the suggestions"], |
| 63 | "LNGZL Development": ["Unscan was great while it lasted, thanks for keeping Nucleus alive", "https://v.lngzl.nl/ez"] |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 64 | } |
| 65 | ] |
pineafan | 15b813d | 2022-02-13 10:06:09 +0000 | [diff] [blame] | 66 | return ( |
| 67 | <> |
| 68 | <Header |
| 69 | name="Supporters" |
| 70 | subtext="The people who help Clicks function" |
| 71 | gradient={["71AFE5", "6576CC"]} |
| 72 | wave="web/waves/header/clicksforms" |
| 73 | buttons={[]} |
PineaFan | a465f35 | 2023-02-05 16:45:01 +0000 | [diff] [blame] | 74 | season={props.season} |
pineafan | 15b813d | 2022-02-13 10:06:09 +0000 | [diff] [blame] | 75 | /> |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 76 | <AutoLayout> |
| 77 | <Panel halfSize={false}> |
| 78 | <Title>Supporters</Title> |
| 79 | <Text>People and packages who have helped and are helping Clicks</Text> |
| 80 | { |
| 81 | groups.map((group, index) => { |
| 82 | return ( |
| 83 | <div key={index} style={{width: "100%"}}> |
| 84 | <Marquee |
| 85 | gradient={false} |
| 86 | style={{width: "100%", height: "30px"}} |
| 87 | speed={Math.floor(Math.random() * (40) + 20)} |
| 88 | direction={"right"} |
| 89 | > |
| 90 | { |
| 91 | Object.keys(groups[index]).map((supporter, index2) => { |
| 92 | return ( |
PineaFan | a76b08f | 2023-10-14 22:13:19 +0100 | [diff] [blame] | 93 | <Supporter key={index2} sub={groups[index][supporter]}>{supporter}</Supporter> |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 94 | ) |
| 95 | }) |
| 96 | } |
| 97 | </Marquee> |
| 98 | </div> |
| 99 | ) |
| 100 | }) |
| 101 | } |
pineafan | 1de9876 | 2022-02-13 13:35:30 +0000 | [diff] [blame] | 102 | <Image src="/heart.svg" width={100} height={100} alt="<3"/> |
pineafan | 4627016 | 2022-02-13 12:06:17 +0000 | [diff] [blame] | 103 | </Panel> |
| 104 | </AutoLayout> |
pineafan | 15b813d | 2022-02-13 10:06:09 +0000 | [diff] [blame] | 105 | </> |
| 106 | ) |
| 107 | } |