Merge pull request #50 from TiE23/ISSUE-033
ISSUE-033 - Created a new component, <IndexHeading> that is a lightly…
This commit is contained in:
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
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user