From 0500de93b3c768af9751b6a28f525ae126d892a5 Mon Sep 17 00:00:00 2001 From: Freya Gustavsson Date: Mon, 11 Nov 2024 16:47:08 +0100 Subject: [PATCH] feat: Introduce a footer Introduce a footer with the external links from the sidebar as they mixed in-app and external links. Also added GitHub links to Dashboard and Service. --- frontend/src/main.css | 9 ++++ frontend/src/main.tsx | 1 + frontend/src/routes/__root.tsx | 97 +++++++++++++++++++++++++--------- 3 files changed, 83 insertions(+), 24 deletions(-) create mode 100644 frontend/src/main.css diff --git a/frontend/src/main.css b/frontend/src/main.css new file mode 100644 index 00000000..827d75a5 --- /dev/null +++ b/frontend/src/main.css @@ -0,0 +1,9 @@ +.packit-footer { + color: var(--pf-t--global--text--color--regular); + background-color: var(--pf-t--global--background--color--secondary--default); + z-index: 1; +} + +.packit-footer-header { + margin-bottom: var(--pf-t--global--spacer--md) +} diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index bfdbf114..db0cf742 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -13,6 +13,7 @@ import { ErrorApp } from "./components/errors/ErrorApp"; import { NotFoundCard } from "./components/errors/NotFoundCard"; import { Preloader } from "./components/shared/Preloader"; import { routeTree } from "./routeTree.gen"; +import "./main.css"; const queryClient = new QueryClient(); diff --git a/frontend/src/routes/__root.tsx b/frontend/src/routes/__root.tsx index 6bbe8e01..d84bad75 100644 --- a/frontend/src/routes/__root.tsx +++ b/frontend/src/routes/__root.tsx @@ -4,6 +4,10 @@ import { Button, Content, + Grid, + GridItem, + List, + ListItem, Masthead, MastheadBrand, MastheadContent, @@ -15,11 +19,14 @@ import { NavItem, NavList, Page, + PageBody, + PageSection, PageSidebar, PageSidebarBody, PageToggleButton, Popover, SkipToContent, + Title, ToggleGroup, ToggleGroupItem, Toolbar, @@ -29,13 +36,13 @@ import { } from "@patternfly/react-core"; import { BarsIcon, + BookOpenIcon, CodeBranchIcon, - CopyIcon, + DesktopIcon, ExternalLinkAltIcon, + KeyIcon, MoonIcon, - ShareSquareIcon, SunIcon, - UndoIcon, } from "@patternfly/react-icons"; import { QueryClient } from "@tanstack/react-query"; import { @@ -205,27 +212,6 @@ export const Route = createRootRouteWithContext()({ Usage - - - Status - - - Blog posts - - - - FAQ - - - ); @@ -248,6 +234,69 @@ export const Route = createRootRouteWithContext()({ skipToContent={PageSkipToContent} > + + + + + Packit + + + + + Status + + + + + Blog posts + + + + + FAQ + + + + + + + GitHub + + + + + Dashboard + + + + + Service + + + + + + ); },