diff --git a/package.json b/package.json
index 13b7adc..057ca60 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@bedrock-layout/appboundary": "^2.2.4",
+ "@bedrock-layout/center": "^2.2.5",
"@bedrock-layout/columns": "^2.3.4",
"@bedrock-layout/cover": "^2.2.5",
"@bedrock-layout/frame": "^2.2.4",
diff --git a/src/components/Workspaces/Workspace/Workspace.tsx b/src/components/Workspaces/Workspace/Workspace.tsx
index d280c63..ff1a249 100644
--- a/src/components/Workspaces/Workspace/Workspace.tsx
+++ b/src/components/Workspaces/Workspace/Workspace.tsx
@@ -1,7 +1,32 @@
import { useParams } from "react-router-dom";
+import { Cover } from "@bedrock-layout/cover";
+import { Center } from "@bedrock-layout/center";
+import { Stack } from "@bedrock-layout/stack";
+
+import { PreviewWindow, H2 } from "./styles";
+import { WorkspaceControls } from "./WorkspaceControls";
+import { MockupBlock } from "../../Common/MockupBlock.styled";
+
+import { workspaceObject } from "../workspaces";
export const Workspace = () => {
- const params = useParams();
- return
{params.workspaceName}
;
-
+ const { workspaceId } = useParams();
+ return (
+
+ {workspaceId ? workspaceObject[workspaceId] : ""}
+
+ Preview Item
+
+
+
+ );
};
diff --git a/src/components/Workspaces/Workspace/WorkspaceControls.tsx b/src/components/Workspaces/Workspace/WorkspaceControls.tsx
new file mode 100644
index 0000000..82aa46c
--- /dev/null
+++ b/src/components/Workspaces/Workspace/WorkspaceControls.tsx
@@ -0,0 +1,11 @@
+import { MockupBlock } from "../../Common/MockupBlock.styled";
+
+export const WorkspaceControls = () => (
+
+ WorkspaceControls
+
+);
diff --git a/src/components/Workspaces/Workspace/styles.ts b/src/components/Workspaces/Workspace/styles.ts
new file mode 100644
index 0000000..e4f3f3c
--- /dev/null
+++ b/src/components/Workspaces/Workspace/styles.ts
@@ -0,0 +1,29 @@
+import styled from "styled-components";
+import { PadBox } from "@bedrock-layout/padbox";
+
+import bg from "../../../public/images/misc/checker-40x40.png";
+
+export type PreviewWindowProps = {
+ height: number,
+ width: number,
+};
+export const PreviewWindow = styled(PadBox).attrs(() => ({
+ padding: "lg",
+}))`
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ height: ${({ height }) => height}px;
+ width: ${({ width }) => width}px;
+
+ border-radius: 2em;
+ background-image: url("${bg}");
+`;
+
+export const H2 = styled.h2`
+ margin: 0.2em;
+ color: ${p => p.theme.colors.darkGrey};
+ font-family: ${p => p.theme.fonts.f1Regular};
+ max-inline-size: 600px;
+`;
diff --git a/src/components/Workspaces/WorkspaceList/WorkspaceList.tsx b/src/components/Workspaces/WorkspaceList/WorkspaceList.tsx
index b3fb792..b620190 100644
--- a/src/components/Workspaces/WorkspaceList/WorkspaceList.tsx
+++ b/src/components/Workspaces/WorkspaceList/WorkspaceList.tsx
@@ -2,15 +2,14 @@ import { WorkspaceListBox } from "./styles";
import { Stack } from "@bedrock-layout/stack";
import { NavLink } from "react-router-dom";
import { MenuItem } from "../../Common/MenuItem.styled";
+import { workspaceList } from "../workspaces";
export const WorkspaceList = () => (
-
-
-
-
-
+ {workspaceList.map((workspace, i) => (
+
+ ))}
);
diff --git a/src/components/Workspaces/workspaces.ts b/src/components/Workspaces/workspaces.ts
new file mode 100644
index 0000000..4189823
--- /dev/null
+++ b/src/components/Workspaces/workspaces.ts
@@ -0,0 +1,28 @@
+export const workspaceList = [
+ {
+ name: "Workspace 1",
+ id: "workspace1",
+ },
+ {
+ name: "Workspace 2",
+ id: "workspace2",
+ },
+ {
+ name: "Workspace 3",
+ id: "workspace3",
+ },
+ {
+ name: "Workspace 4 has a longer name than the rest",
+ id: "workspace4",
+ },
+];
+
+export const workspaceObject = ((list: typeof workspaceList) => {
+ const obj: {[key: string]: string} = {};
+ list.forEach(item => {
+ obj[item.id] = item.name;
+ });
+ console.log("workspaceObject", obj);
+ return obj;
+})(workspaceList);
+console.log(workspaceObject);
diff --git a/src/index.tsx b/src/index.tsx
index e9cb396..735b07f 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -28,7 +28,7 @@ ReactDOM.render(
} />
}>
Workspaces Home} />
- } />
+ } />
Page Not Found} />
diff --git a/src/public/images/misc/checker-40x40.png b/src/public/images/misc/checker-40x40.png
new file mode 100644
index 0000000..1b21321
Binary files /dev/null and b/src/public/images/misc/checker-40x40.png differ
diff --git a/yarn.lock b/yarn.lock
index 1d64612..f2d8572 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1081,6 +1081,13 @@
dependencies:
"@bedrock-layout/spacing-constants" "^2.5.1"
+"@bedrock-layout/center@^2.2.5":
+ version "2.2.5"
+ resolved "https://registry.yarnpkg.com/@bedrock-layout/center/-/center-2.2.5.tgz#a559215267ae6e008cadc790b8b287c74d99dcd0"
+ integrity sha512-Y3fXSFdwcxZh1A+VED/itwT5gAmlfuD0+5/hGV1/iHPvR8qCtZ7fbx/YyjA3Jb0P+NRX6sXrq5dCWv54fxvNMQ==
+ dependencies:
+ "@bedrock-layout/spacing-constants" "^2.5.1"
+
"@bedrock-layout/columns@^2.3.4":
version "2.3.4"
resolved "https://registry.yarnpkg.com/@bedrock-layout/columns/-/columns-2.3.4.tgz#805de442f9c5962dd9609d8ef8a05dd9768d7bd1"