diff --git a/application/frontend/src/scaffolding/Header/Header.tsx b/application/frontend/src/scaffolding/Header/Header.tsx index 334dd7b1..133441da 100644 --- a/application/frontend/src/scaffolding/Header/Header.tsx +++ b/application/frontend/src/scaffolding/Header/Header.tsx @@ -3,6 +3,7 @@ import './header.scss'; import { Menu, Search } from 'lucide-react'; import React, { useState } from 'react'; import { Link, useHistory } from 'react-router-dom'; +import { NavLink } from 'react-router-dom'; import { Button } from 'semantic-ui-react'; import { ClearFilterButton } from '../../components/FilterButton/FilterButton'; @@ -34,21 +35,25 @@ export const Header = () => {
- + Home - - + + + Browse - - + + + Chat - - + + + Map Analysis - - + + + Explorer - +
@@ -122,21 +127,51 @@ export const Header = () => { )}
- + Home - - + + + Browse - - + + + Chat - - + + + Map Analysis - - + + + Explorer - +
diff --git a/application/frontend/src/scaffolding/Header/header.scss b/application/frontend/src/scaffolding/Header/header.scss index f2f8727e..d7aaeb79 100644 --- a/application/frontend/src/scaffolding/Header/header.scss +++ b/application/frontend/src/scaffolding/Header/header.scss @@ -66,6 +66,21 @@ color: var(--foreground); } } + .nav-link--active { + color: var(--foreground); + position: relative; + } + + .nav-link--active::after { + content: ''; + position: absolute; + left: 0; + right: 0; + bottom: -0.5rem; + height: 2px; + background-color: #60a5fa; // same sky-blue theme + border-radius: 2px; + } } .navbar__actions { @@ -254,6 +269,11 @@ background-color: var(--muted); } } + .nav-link--active { + background-color: rgba(96, 165, 250, 0.18); + color: var(--foreground); + font-weight: 500; + } } .mobile-auth {