Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce a footer #486

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions frontend/src/main.css
Original file line number Diff line number Diff line change
@@ -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)
}
1 change: 1 addition & 0 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
97 changes: 73 additions & 24 deletions frontend/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import {
Button,
Content,
Grid,
GridItem,
List,
ListItem,
Masthead,
MastheadBrand,
MastheadContent,
Expand All @@ -15,11 +19,14 @@ import {
NavItem,
NavList,
Page,
PageBody,
PageSection,
PageSidebar,
PageSidebarBody,
PageToggleButton,
Popover,
SkipToContent,
Title,
ToggleGroup,
ToggleGroupItem,
Toolbar,
Expand All @@ -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 {
Expand Down Expand Up @@ -205,27 +212,6 @@ export const Route = createRootRouteWithContext<RouterContext>()({
<NavItem isActive={!!matchRoute({ to: "/usage" })}>
<Link to={"/usage"}>Usage</Link>
</NavItem>
<NavExpandable
title="External links"
groupId="nav-expandable-group-external"
isExpanded
>
<NavItem key="status" id="status">
<a href="https://status.packit.dev">Status</a>
</NavItem>
<NavItem key="blog-posts" id="blog-posts">
<a href="https://packit.dev/posts">Blog posts</a>
</NavItem>
<NavItem key="faq-page" id="faq-page">
<a
target="_blank"
href="https://packit.dev/docs/faq"
rel="noreferrer"
>
FAQ
</a>
</NavItem>
</NavExpandable>
</NavList>
</Nav>
);
Expand All @@ -248,6 +234,69 @@ export const Route = createRootRouteWithContext<RouterContext>()({
skipToContent={PageSkipToContent}
>
<Outlet />
<PageSection component="footer" variant="secondary">
<Grid hasGutter className="pf-v6-u-py-xl">
<GridItem md={4} mdOffset={1} sm={12}>
<Title headingLevel="h3" className="packit-footer-header">
Packit
</Title>
<List isPlain>
<ListItem>
<a
target="_blank"
rel="noreferrer"
href="https://status.packit.dev"
>
Status
</a>
</ListItem>
<ListItem>
<a
target="_blank"
rel="noreferrer"
href="https://packit.dev/posts"
>
Blog posts
</a>
</ListItem>
<ListItem>
<a
target="_blank"
href="https://packit.dev/docs/faq"
rel="noreferrer"
>
FAQ
</a>
</ListItem>
</List>
</GridItem>
<GridItem md={3} sm={12}>
<Title headingLevel="h3" className="packit-footer-header">
GitHub
</Title>
<List isPlain>
<ListItem>
<a
target="_blank"
rel="noreferrer"
href="https://github.com/packit/dashboard"
>
Dashboard
</a>
</ListItem>
<ListItem>
<a
target="_blank"
rel="noreferrer"
href="https://github.com/packit/packit-service"
>
Packit Service
</a>
</ListItem>
</List>
</GridItem>
</Grid>
</PageSection>
</Page>
);
},
Expand Down
Loading