diff --git a/front/app/_orgs/[orgslug]/(withmenu)/course/[courseid]/edit/page.tsx b/front/app/_orgs/[orgslug]/(withmenu)/course/[courseid]/edit/page.tsx index cafe8d37..84e237b4 100644 --- a/front/app/_orgs/[orgslug]/(withmenu)/course/[courseid]/edit/page.tsx +++ b/front/app/_orgs/[orgslug]/(withmenu)/course/[courseid]/edit/page.tsx @@ -256,7 +256,8 @@ function CourseEdit(params: any) { - - - {selectedView === "home" && ( - { setSelectedView("dynamic") }}>✨📄 - { setSelectedView("video") }}>📹 + { setSelectedView("dynamic") }}> + + Dynamic Page + + Dynamic Page + + { setSelectedView("video") }}> + + Video Page + + Video Page + + { setSelectedView("video") }}> + + Video Page + + Video Page + )} @@ -30,30 +43,64 @@ function NewActivityModal({ closeModal, submitActivity, submitFileActivity, chap {selectedView === "video" && ( )} - ); } -const ActivityChooserWrapper = styled.div` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - gap: 20px; -`; +const ActivityChooserWrapper = styled("div", { + display: "flex", + flexDirection: "row", + justifyContent: "start", + marginTop: 10, +}); -const ActivityButton = styled.button` - padding: 40px; - border-radius: 10px !important; - border: none; - font-size: 80px !important; - margin: 40px; - background-color: #8c949c33 !important; - cursor: pointer; - &:hover { - background-color: #8c949c7b; - } -`; +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 index e53052d3..1f92fa30 100644 --- a/front/components/Pages/CourseEdit/NewActivityModal/DynamicCanva.tsx +++ b/front/components/Pages/CourseEdit/NewActivityModal/DynamicCanva.tsx @@ -1,4 +1,6 @@ +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(""); @@ -22,14 +24,32 @@ function DynamicCanvaModal({ submitActivity, chapterId }: any) { }); }; return ( -
-
-
- -
- -
-
+ + + + Activity name + Please provide a name for your activity + + + + + + + + Activity description + Please provide a description for your activity + + +