pineafan | 54a1e55 | 2021-09-03 17:51:18 +0100 | [diff] [blame] | 1 | import React, { Component } from "react"; |
pineafan | e0283a8 | 2022-02-13 10:05:56 +0000 | [diff] [blame] | 2 | import Styles from '../styles/Components/navbar.module.css'; |
Skyler Turner | 16c08d3 | 2021-11-04 20:06:50 +0000 | [diff] [blame] | 3 | import ThemeChangeButton from './ThemeChangeButton'; |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame^] | 4 | import { getSeason } from '../pages/api/season'; |
pineafan | df39fd4 | 2021-09-04 16:05:27 +0100 | [diff] [blame] | 5 | |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 6 | class Divider extends Component { |
| 7 | render() { |
| 8 | return ( |
| 9 | <> |
| 10 | <div className={Styles.divider}></div> |
| 11 | </> |
| 12 | ) |
| 13 | } |
| 14 | } |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 15 | |
| 16 | class NavBar extends Component { |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 17 | constructor(props) { |
| 18 | super(props); |
| 19 | } |
pineafan | 54a1e55 | 2021-09-03 17:51:18 +0100 | [diff] [blame] | 20 | |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 21 | render() { |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame^] | 22 | const season = getSeason().filePath; |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 23 | return ( |
pineafan | 7bd0ad6 | 2022-10-26 22:11:29 +0100 | [diff] [blame] | 24 | <div className={Styles.cutoffContainer}> |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 25 | <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}> |
Skyler Turner | 899f8ff | 2022-05-07 15:12:20 +0100 | [diff] [blame] | 26 | <a href="#skipNav" className={Styles.skipNav}>Skip navigation</a> |
pineafan | 3b0852d | 2022-05-06 20:39:59 +0100 | [diff] [blame] | 27 | <a className={Styles.icon} href="/"><img alt="Clicks" className={Styles.icon} src="https://assets.clicks.codes/web/logos/clicks.svg" /></a> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 28 | <Divider /> |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame^] | 29 | <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> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 34 | <Divider /> |
| 35 | <ThemeChangeButton/> |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 36 | </div> |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 37 | <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}>{this.props.element}</div> |
pineafan | 7bd0ad6 | 2022-10-26 22:11:29 +0100 | [diff] [blame] | 38 | </div> |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 39 | ) |
| 40 | } |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 41 | } |
| 42 | |
Skyler Turner | 899f8ff | 2022-05-07 15:12:20 +0100 | [diff] [blame] | 43 | export default NavBar; |