diff --git a/apps/web/components/Dashboard/Course/EditCourseStructure/Buttons/NewActivityButton.tsx b/apps/web/components/Dashboard/Course/EditCourseStructure/Buttons/NewActivityButton.tsx index afa30d9a..77d02ff0 100644 --- a/apps/web/components/Dashboard/Course/EditCourseStructure/Buttons/NewActivityButton.tsx +++ b/apps/web/components/Dashboard/Course/EditCourseStructure/Buttons/NewActivityButton.tsx @@ -87,6 +87,7 @@ function NewActivityButton(props: NewActivityButtonProps) { isDialogOpen={newActivityModal} onOpenChange={setNewActivityModal} minHeight="no-min" + minWidth='md' addDefCloseButton={false} dialogContent={ + <> {selectedView === 'home' && ( - +
{ setSelectedView('dynamic') }} > - - Dynamic Page - - Dynamic Page +
+ Dynamic Page +
+
+ Dynamic Page +
{ setSelectedView('video') }} > - - Video Page - - Video Page +
+ Video Page +
+
+ Video +
{ setSelectedView('documentpdf') }} > - - Document PDF Page - - PDF Document Page +
+ Document PDF Page +
+
+ Document +
- + { + setSelectedView('assignments') + }} + > +
+ Assignment Page +
+
+ Assignments +
+
+
)} {selectedView === 'dynamic' && ( @@ -82,63 +99,25 @@ function NewActivityModal({ course={course} /> )} - + + {selectedView === 'assignments' && ( + ) + } + ) } -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', -}) +const ActivityOption = ({ onClick, children }: any) => ( +
+ {children} +
+) export default NewActivityModal diff --git a/apps/web/components/Objects/Modals/Activities/Create/NewActivityModal/Assignment.tsx b/apps/web/components/Objects/Modals/Activities/Create/NewActivityModal/Assignment.tsx new file mode 100644 index 00000000..a8eccc51 --- /dev/null +++ b/apps/web/components/Objects/Modals/Activities/Create/NewActivityModal/Assignment.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +function Assignment() { + return ( +
Assignment
+ ) +} + +export default Assignment \ No newline at end of file diff --git a/apps/web/public/activities_types/assignment-page-activity.png b/apps/web/public/activities_types/assignment-page-activity.png new file mode 100644 index 00000000..46de7b82 Binary files /dev/null and b/apps/web/public/activities_types/assignment-page-activity.png differ