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 { 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}
|
||||
>
|
||||
<Routes>
|
||||
<Route index element={<h1>Workspaces Home</h1>} />
|
||||
<Route index element={<IndexHeading>Workspaces Home</IndexHeading>} />
|
||||
<Route path="chyron" element={
|
||||
<Workspace
|
||||
workspaceId="chyron"
|
||||
|
||||
+4
-2
@@ -14,6 +14,8 @@ import { GlobalStyle, theme } from "./shared/theme";
|
||||
import { GlobalFonts } from "./fonts";
|
||||
import { store } from "./store";
|
||||
|
||||
import { IndexHeading } from "./components/Common/IndexHeading.styled";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Provider store={store}>
|
||||
@@ -23,11 +25,11 @@ ReactDOM.render(
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<App />}>
|
||||
<Route index element={<h1>Home</h1>} />
|
||||
<Route index element={<IndexHeading>Home</IndexHeading>} />
|
||||
<Route path="broadcast" element={<Broadcast />} />
|
||||
<Route path="workspaces/*" element={<Workspaces />} />
|
||||
<Route path="*" element={<IndexHeading>Page Not Found</IndexHeading>} />
|
||||
</Route>
|
||||
<Route path="*" element={<h1>Page Not Found</h1>} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</ThemeProvider>
|
||||
|
||||
Reference in new issue
Block a user