From bf631e3c01e763da16ac3b6becb4827d1e6dc1a3 Mon Sep 17 00:00:00 2001 From: Maria Betania Cedeno Tepedino Date: Thu, 15 Aug 2024 15:44:12 +0200 Subject: [PATCH 1/2] Add menu button and pages --- frontend/src/components/Header/Header.tsx | 8 ++- .../src/components/Header/NavigationMenu.tsx | 62 +++++++++++++++++++ .../src/components/Pages/FlotillaSite.tsx | 6 ++ .../components/Pages/FrontPage/FrontPage.tsx | 1 + .../Pages/FrontPage/MissionControlPage.tsx | 46 ++++++++++++++ .../FrontPage/RobotCards/RobotStatusCard.tsx | 1 + .../RobotCards/RobotStatusSection.tsx | 7 ++- .../Pages/InspectionPage/InspectionPage.tsx | 24 +++++++ .../MissionHistoryPage/FilterSection.tsx | 7 ++- .../components/Pages/RobotPage/RobotsPage.tsx | 24 +++++++ frontend/src/language/en.json | 8 ++- frontend/src/language/no.json | 8 ++- frontend/src/utils/icons.tsx | 3 + 13 files changed, 197 insertions(+), 8 deletions(-) create mode 100644 frontend/src/components/Header/NavigationMenu.tsx create mode 100644 frontend/src/components/Pages/FrontPage/MissionControlPage.tsx create mode 100644 frontend/src/components/Pages/InspectionPage/InspectionPage.tsx create mode 100644 frontend/src/components/Pages/RobotPage/RobotsPage.tsx diff --git a/frontend/src/components/Header/Header.tsx b/frontend/src/components/Header/Header.tsx index 32eb2a086..c065f6dc4 100644 --- a/frontend/src/components/Header/Header.tsx +++ b/frontend/src/components/Header/Header.tsx @@ -7,10 +7,15 @@ import { Icons } from 'utils/icons' import { useAlertContext } from 'components/Contexts/AlertContext' import { AlertBanner } from 'components/Alerts/AlertsBanner' import { FrontPageSectionId } from 'models/FrontPageSectionId' +import { NavigationMenu } from './NavigationMenu' const StyledTopBar = styled(TopBar)` - align-items: center; + display: flex; box-shadow: none; + padding: 8px 24px 0px 24px; + justify-content: space-between; + align-items: center; + align-self: stretch; ` const StyledWrapper = styled.div` display: flex; @@ -64,6 +69,7 @@ export const Header = ({ page }: { page: string }) => { +