From 4c61a24c216cfbaafe716818acada964d70989cc Mon Sep 17 00:00:00 2001 From: Kyle Geib Date: Thu, 3 Feb 2022 12:26:23 -0500 Subject: [PATCH] ISSUE-033 - Created a new component, that is a lightly stylized new header element for basic indexes. I also adjusted the 404 page to now include the menu for the sake of usability. --- src/components/Common/IndexHeading.styled.ts | 7 +++++++ src/components/Workspaces/WorkspacesRoute.tsx | 3 ++- src/index.tsx | 6 ++++-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/components/Common/IndexHeading.styled.ts diff --git a/src/components/Common/IndexHeading.styled.ts b/src/components/Common/IndexHeading.styled.ts new file mode 100644 index 0000000..8685a64 --- /dev/null +++ b/src/components/Common/IndexHeading.styled.ts @@ -0,0 +1,7 @@ +import styled from "styled-components"; + +export const IndexHeading = styled.div` + font-family: ${p => p.theme.fonts.f1Bold}; + font-size: 2em; + margin: 0.2em 0.7em; +`; diff --git a/src/components/Workspaces/WorkspacesRoute.tsx b/src/components/Workspaces/WorkspacesRoute.tsx index 59c3686..af8586d 100644 --- a/src/components/Workspaces/WorkspacesRoute.tsx +++ b/src/components/Workspaces/WorkspacesRoute.tsx @@ -15,6 +15,7 @@ import { ChyronPrototypeControls } from "./PrototypingControls/ChyronPrototype"; import { AngledFlagWorkSpace } from "./CustomWorkSpaces/AngledFlagWorkSpace"; import { AngledFlagPrototypeControls } from "./PrototypingControls/AngledFlagPrototype"; import { ChyronContainer } from "../BroadcastGraphics/Chyrons/Container"; +import { IndexHeading } from "../Common/IndexHeading.styled"; const WORKSPACE_LIST_WIDTH = 180; @@ -48,7 +49,7 @@ export default function Workspaces() { widthCutoff={WORKSPACE_LIST_WIDTH} > - Workspaces Home} /> + Workspaces Home} /> @@ -23,11 +25,11 @@ ReactDOM.render( }> - Home} /> + Home} /> } /> } /> + Page Not Found} /> - Page Not Found} />