blob: 2e620b452bd48905d84f5953849dc692c37782dd [file] [log] [blame]
pineafan54a1e552021-09-03 17:51:18 +01001import React, { Component } from "react";
pineafane0283a82022-02-13 10:05:56 +00002import Styles from '../styles/Components/navbar.module.css';
Skyler Turner16c08d32021-11-04 20:06:50 +00003import ThemeChangeButton from './ThemeChangeButton';
pineafandf39fd42021-09-04 16:05:27 +01004
pineafanff3d4522022-05-06 19:51:02 +01005class Divider extends Component {
6 render() {
7 return (
8 <>
9 <div className={Styles.divider}></div>
10 </>
11 )
12 }
13}
pineafana5ce9102021-09-02 17:21:31 +010014
15class NavBar extends Component {
pineafanaa9c4fd2022-06-10 19:58:10 +010016 constructor(props) {
17 super(props);
18 }
pineafan54a1e552021-09-03 17:51:18 +010019
pineafanaa9c4fd2022-06-10 19:58:10 +010020 render() {
Skyler Grey59abe292022-12-05 01:27:02 +000021 const season = this.props.season.filePath;
pineafanaa9c4fd2022-06-10 19:58:10 +010022 return (
pineafan7bd0ad62022-10-26 22:11:29 +010023 <div className={Styles.cutoffContainer}>
pineafanb18f0192022-10-27 22:08:36 +010024 <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}>
Skyler Turner899f8ff2022-05-07 15:12:20 +010025 <a href="#skipNav" className={Styles.skipNav}>Skip navigation</a>
pineafan3b0852d2022-05-06 20:39:59 +010026 <a className={Styles.icon} href="/"><img alt="Clicks" className={Styles.icon} src="https://assets.clicks.codes/web/logos/clicks.svg" /></a>
pineafanff3d4522022-05-06 19:51:02 +010027 <Divider />
PineaFan93f540e2022-12-04 22:05:57 +000028 <a className={Styles.icon} href="/gps"><img alt="GPS" className={Styles.icon} src={`https://assets.clicks.codes/bots/gps/${season}.svg`} /></a>
TheCodedProf18d5b682023-03-05 17:16:07 -050029 {/* <a className={Styles.icon} href="/rsm"><img alt="RSM" className={Styles.icon} src={`https://assets.clicks.codes/bots/rsm/${season}.svg`} /></a> */}
30 <a className={Styles.icon} href="/nucleus"><img alt="Nucleus" className={Styles.icon} src={`https://assets.clicks.codes/bots/nucleus/${season}.svg`} /></a>
PineaFan93f540e2022-12-04 22:05:57 +000031 <a className={Styles.icon} href="/clicksforms"><img alt="ClicksForms" className={Styles.icon} src={`https://assets.clicks.codes/bots/clicksforms/${season}.svg`} /></a>
32 <a className={Styles.icon} href="/hooky"><img alt="Hooky" className={Styles.icon} src={`https://assets.clicks.codes/bots/hooky/${season}.svg`} /></a>
pineafanff3d4522022-05-06 19:51:02 +010033 <Divider />
34 <ThemeChangeButton/>
pineafana5ce9102021-09-02 17:21:31 +010035 </div>
pineafanb18f0192022-10-27 22:08:36 +010036 <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}>{this.props.element}</div>
pineafan7bd0ad62022-10-26 22:11:29 +010037 </div>
pineafanaa9c4fd2022-06-10 19:58:10 +010038 )
39 }
pineafana5ce9102021-09-02 17:21:31 +010040}
41
Skyler Turner899f8ff2022-05-07 15:12:20 +010042export default NavBar;