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 | df39fd4 | 2021-09-04 16:05:27 +0100 | [diff] [blame] | 4 | |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 5 | class Divider extends Component { |
| 6 | render() { |
| 7 | return ( |
| 8 | <> |
| 9 | <div className={Styles.divider}></div> |
| 10 | </> |
| 11 | ) |
| 12 | } |
| 13 | } |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 14 | |
| 15 | class NavBar extends Component { |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 16 | constructor(props) { |
| 17 | super(props); |
| 18 | } |
pineafan | 54a1e55 | 2021-09-03 17:51:18 +0100 | [diff] [blame] | 19 | |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 20 | render() { |
Skyler Grey | 59abe29 | 2022-12-05 01:27:02 +0000 | [diff] [blame] | 21 | const season = this.props.season.filePath; |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 22 | return ( |
pineafan | 7bd0ad6 | 2022-10-26 22:11:29 +0100 | [diff] [blame] | 23 | <div className={Styles.cutoffContainer}> |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 24 | <div className={Styles.container + " " + (this.props.subBar ? Styles.slideUp : null)}> |
Skyler Turner | 899f8ff | 2022-05-07 15:12:20 +0100 | [diff] [blame] | 25 | <a href="#skipNav" className={Styles.skipNav}>Skip navigation</a> |
pineafan | 3b0852d | 2022-05-06 20:39:59 +0100 | [diff] [blame] | 26 | <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] | 27 | <Divider /> |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 28 | <a className={Styles.icon} href="/gps"><img alt="GPS" className={Styles.icon} src={`https://assets.clicks.codes/bots/gps/${season}.svg`} /></a> |
TheCodedProf | 18d5b68 | 2023-03-05 17:16:07 -0500 | [diff] [blame] | 29 | {/* <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> |
PineaFan | 93f540e | 2022-12-04 22:05:57 +0000 | [diff] [blame] | 31 | <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> |
pineafan | ff3d452 | 2022-05-06 19:51:02 +0100 | [diff] [blame] | 33 | <Divider /> |
| 34 | <ThemeChangeButton/> |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 35 | </div> |
pineafan | b18f019 | 2022-10-27 22:08:36 +0100 | [diff] [blame] | 36 | <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] | 37 | </div> |
pineafan | aa9c4fd | 2022-06-10 19:58:10 +0100 | [diff] [blame] | 38 | ) |
| 39 | } |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 40 | } |
| 41 | |
Skyler Turner | 899f8ff | 2022-05-07 15:12:20 +0100 | [diff] [blame] | 42 | export default NavBar; |