+ {selectedView === "home" && (
+
+ { setSelectedView("dynamic") }}>
+
+
+
+ Dynamic Page
+
+ { setSelectedView("video") }}>
+
+
+
+ Video Page
+
+ { setSelectedView("video") }}>
+
+
+
+ Video Page
+
+
+ )}
+
+ {selectedView === "dynamic" && (
+
+ )}
+
+ {selectedView === "video" && (
+
+ )}
+
+ );
+}
+
+const ActivityChooserWrapper = styled("div", {
+ display: "flex",
+ flexDirection: "row",
+ justifyContent: "start",
+ marginTop: 10,
+});
+
+const ActivityOption = styled("div", {
+ width: "180px",
+ textAlign: "center",
+ borderRadius: 10,
+ background: "#F6F6F6",
+ border: "4px solid #F5F5F5",
+ margin: "auto",
+
+ // hover
+ "&:hover": {
+ cursor: "pointer",
+ background: "#ededed",
+ border: "4px solid #ededed",
+
+ transition: "background 0.2s ease-in-out, border 0.2s ease-in-out",
+ },
+});
+
+const ActivityTypeImage = styled("div", {
+ height: 80,
+ borderRadius: 8,
+ margin: 2,
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "end",
+ textAlign: "center",
+ background: "#ffffff",
+
+ // hover
+ "&:hover": {
+ cursor: "pointer",
+ },
+});
+
+const ActivityTypeTitle = styled("div", {
+ display: "flex",
+ fontSize: 12,
+ height: "20px",
+ fontWeight: 500,
+ color: "rgba(0, 0, 0, 0.38);",
+
+ // center text vertically
+ alignItems: "center",
+ justifyContent: "center",
+ textAlign: "center",
+
+});
+
+export default NewActivityModal;
diff --git a/front/components/Pages/CourseEdit/NewActivityModal/DynamicCanva.tsx b/front/components/Pages/CourseEdit/NewActivityModal/DynamicCanva.tsx
new file mode 100644
index 00000000..1f92fa30
--- /dev/null
+++ b/front/components/Pages/CourseEdit/NewActivityModal/DynamicCanva.tsx
@@ -0,0 +1,56 @@
+import FormLayout, { ButtonBlack, Flex, FormField, FormLabel, FormMessage, Input, Textarea } from "@components/UI/Form/Form";
+import React, { useState } from "react";
+import * as Form from '@radix-ui/react-form';
+
+function DynamicCanvaModal({ submitActivity, chapterId }: any) {
+ const [activityName, setActivityName] = useState("");
+ const [activityDescription, setActivityDescription] = useState("");
+
+ const handleActivityNameChange = (e: any) => {
+ setActivityName(e.target.value);
+ };
+
+ const handleActivityDescriptionChange = (e: any) => {
+ setActivityDescription(e.target.value);
+ };
+
+ const handleSubmit = async (e: any) => {
+ e.preventDefault();
+ console.log({ activityName, activityDescription, chapterId });
+ submitActivity({
+ name: activityName,
+ chapterId: chapterId,
+ type: "dynamic",
+ });
+ };
+ return (
+