ISSUE-033 - Created a new component, <IndexHeading> 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.
This commit is contained in:
Kyle Geib committed 2022-02-03 12:26:23 -05:00
1 parent 218dc84507
commit 4c61a24c21
3 files changed
+13 -3

No files matched your search

@@ -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;
`;
@@ -15,6 +15,7 @@ import { ChyronPrototypeControls } from "./PrototypingControls/ChyronPrototype";
import { AngledFlagWorkSpace } from "./CustomWorkSpaces/AngledFlagWorkSpace"; import { AngledFlagWorkSpace } from "./CustomWorkSpaces/AngledFlagWorkSpace";
import { AngledFlagPrototypeControls } from "./PrototypingControls/AngledFlagPrototype"; import { AngledFlagPrototypeControls } from "./PrototypingControls/AngledFlagPrototype";
import { ChyronContainer } from "../BroadcastGraphics/Chyrons/Container"; import { ChyronContainer } from "../BroadcastGraphics/Chyrons/Container";
import { IndexHeading } from "../Common/IndexHeading.styled";
const WORKSPACE_LIST_WIDTH = 180; const WORKSPACE_LIST_WIDTH = 180;
@@ -48,7 +49,7 @@ export default function Workspaces() {
widthCutoff={WORKSPACE_LIST_WIDTH} widthCutoff={WORKSPACE_LIST_WIDTH}
> >
<Routes> <Routes>
<Route index element={<h1>Workspaces Home</h1>} /> <Route index element={<IndexHeading>Workspaces Home</IndexHeading>} />
<Route path="chyron" element={ <Route path="chyron" element={
<Workspace <Workspace
workspaceId="chyron" workspaceId="chyron"
+4 -2
View File
@@ -14,6 +14,8 @@ import { GlobalStyle, theme } from "./shared/theme";
import { GlobalFonts } from "./fonts"; import { GlobalFonts } from "./fonts";
import { store } from "./store"; import { store } from "./store";
import { IndexHeading } from "./components/Common/IndexHeading.styled";
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<Provider store={store}> <Provider store={store}>
@@ -23,11 +25,11 @@ ReactDOM.render(
<BrowserRouter> <BrowserRouter>
<Routes> <Routes>
<Route path="/" element={<App />}> <Route path="/" element={<App />}>
<Route index element={<h1>Home</h1>} /> <Route index element={<IndexHeading>Home</IndexHeading>} />
<Route path="broadcast" element={<Broadcast />} /> <Route path="broadcast" element={<Broadcast />} />
<Route path="workspaces/*" element={<Workspaces />} /> <Route path="workspaces/*" element={<Workspaces />} />
<Route path="*" element={<IndexHeading>Page Not Found</IndexHeading>} />
</Route> </Route>
<Route path="*" element={<h1>Page Not Found</h1>} />
</Routes> </Routes>
</BrowserRouter> </BrowserRouter>
</ThemeProvider> </ThemeProvider>