blob: 0b81c848c96e92fa5d1009c89f7c14effce95179 [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';
PineaFan93f540e2022-12-04 22:05:57 +00004import { getSeason } from '../pages/api/season';
pineafandf39fd42021-09-04 16:05:27 +01005
pineafanff3d4522022-05-06 19:51:02 +01006class Divider extends Component {
7 render() {
8 return (
9 <>
10 <div className={Styles.divider}></div>
11 </>
12 )
13 }
14}
pineafana5ce9102021-09-02 17:21:31 +010015
16class NavBar extends Component {
pineafanaa9c4fd2022-06-10 19:58:10 +010017 constructor(props) {
18 super(props);
19 }
pineafan54a1e552021-09-03 17:51:18 +010020
pineafanaa9c4fd2022-06-10 19:58:10 +010021 render() {
PineaFan93f540e2022-12-04 22:05:57 +000022 const season = getSeason().filePath;
pineafanaa9c4fd2022-06-10 19:58:10 +010023 return (
pineafan7bd0ad62022-10-26 22:11:29 +010024 <div className={Styles.cutoffContainer}>
pineafanb18f0192022-10-27 22:08:36 +010025 <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}>
Skyler Turner899f8ff2022-05-07 15:12:20 +010026 <a href="#skipNav" className={Styles.skipNav}>Skip navigation</a>
pineafan3b0852d2022-05-06 20:39:59 +010027 <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 +010028 <Divider />
PineaFan93f540e2022-12-04 22:05:57 +000029 <a className={Styles.icon} href="/gps"><img alt="GPS" className={Styles.icon} src={`https://assets.clicks.codes/bots/gps/${season}.svg`} /></a>
30 <a className={Styles.icon} href="/rsm"><img alt="RSM" className={Styles.icon} src={`https://assets.clicks.codes/bots/rsm/${season}.svg`} /></a>
31 {/* <a className={Styles.icon} href="/nucleus#"><img alt="Nucleus" className={Styles.icon} src={`https://assets.clicks.codes/bots/nucleus/${season}.svg`} /></a> */}
32 <a className={Styles.icon} href="/clicksforms"><img alt="ClicksForms" className={Styles.icon} src={`https://assets.clicks.codes/bots/clicksforms/${season}.svg`} /></a>
33 <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 +010034 <Divider />
35 <ThemeChangeButton/>
pineafana5ce9102021-09-02 17:21:31 +010036 </div>
pineafanb18f0192022-10-27 22:08:36 +010037 <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}>{this.props.element}</div>
pineafan7bd0ad62022-10-26 22:11:29 +010038 </div>
pineafanaa9c4fd2022-06-10 19:58:10 +010039 )
40 }
pineafana5ce9102021-09-02 17:21:31 +010041}
42
Skyler Turner899f8ff2022-05-07 15:12:20 +010043export default NavBar;