diff --git a/src/components/header.js b/src/components/header.js index 7ae8701..7b547af 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -1,11 +1,16 @@ +import React from "react" import { Link } from "gatsby" import PropTypes from "prop-types" -import React from "react" import logo from "../images/index/npm-logo-no-text.svg" + import "../styles/header.css" import "../styles/bootstrap.min.css" +import $ from "jquery/dist/jquery" +import "bootstrap/dist/js/bootstrap" + const Header = () => { + let curActive = [' ', ' ', ' ']; if (window.location.pathname === '/about'){curActive[0] = 'active';} if (window.location.pathname === '/projects/physics' || window.location.pathname === '/projects/education' || window.location.pathname === '/projects/math' || window.location.pathname === '/projects/software'){curActive[1] = 'active';} @@ -13,18 +18,19 @@ const Header = () => { return (
-