diff --git a/src/app.postcss b/src/app.postcss index c0a32d14..368f4933 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -14,6 +14,11 @@ html { #calendar .grid { --sc-theme-calendar-colors-background-highlight: var(--main-primary-color); } + +html .dark { + --scrollbarBG: #1f2937; +} + * { scrollbar-width: thin; scrollbar-color: var(--thumbBG) var(--scrollbarBG); diff --git a/src/lib/components/Apps/index.svelte b/src/lib/components/Apps/index.svelte index 0a8d464b..e3575f65 100644 --- a/src/lib/components/Apps/index.svelte +++ b/src/lib/components/Apps/index.svelte @@ -6,12 +6,15 @@ import SendAlt from 'carbon-icons-svelte/lib/SendAlt.svelte'; import ChartPie from 'carbon-icons-svelte/lib/ChartPie.svelte'; import IconButton from '$lib/components/IconButton/index.svelte'; + import Settings from 'carbon-icons-svelte/lib/Settings.svelte'; + import { apps } from './store'; import QandA from './components/QandA/index.svelte'; import LiveChat from './components/LiveChat/index.svelte'; import Notes from './components/Notes/index.svelte'; import Poll from './components/Poll/index.svelte'; import APPS_CONSTANTS from './constants'; + import { OverflowMenu, OverflowMenuItem } from 'carbon-components-svelte'; let selectedApp; @@ -48,8 +51,21 @@ }); -
-
+
+
+
+ { + handleAppClick; + $apps.dropdown = !$apps.dropdown; + }} + > + + +
+ .root { - height: 93vh; + height: calc(100vh - 48px); position: sticky; top: 0; border-left: 1px solid var(--border-color); @@ -129,4 +145,25 @@ overflow: auto; } } + + @media screen and (max-width: 1024px) { + .root { + position: absolute; + height: calc(100vh - 109px); + top: 109px; + right: 0; + z-index: 999; + } + .open { + position: absolute; + transform: translateX(0); + transition: all 0.2s ease-in-out; + } + .close { + position: absolute; + transform: translateX(100%); + display: none; + transition: all 0.2s ease-in-out; + } + } diff --git a/src/lib/components/Apps/store.js b/src/lib/components/Apps/store.js new file mode 100644 index 00000000..fe32e6d9 --- /dev/null +++ b/src/lib/components/Apps/store.js @@ -0,0 +1,6 @@ +import { writable } from 'svelte/store'; + +export const apps = writable({ + open: false, + dropdown: false +}); diff --git a/src/lib/components/Course/components/Ceritficate/Design.svelte b/src/lib/components/Course/components/Ceritficate/Design.svelte index b86d2059..da764441 100644 --- a/src/lib/components/Course/components/Ceritficate/Design.svelte +++ b/src/lib/components/Course/components/Ceritficate/Design.svelte @@ -45,8 +45,8 @@
-
-
+
+
Certificate settings @@ -99,7 +99,7 @@
{#if $course.certificate_theme === 'professional'} diff --git a/src/lib/components/Course/components/Lesson/AddLessonModal.svelte b/src/lib/components/Course/components/Lesson/AddLessonModal.svelte index 8dd45939..a4f3b586 100644 --- a/src/lib/components/Course/components/Lesson/AddLessonModal.svelte +++ b/src/lib/components/Course/components/Lesson/AddLessonModal.svelte @@ -55,7 +55,7 @@ (openModal = false)} bind:open={openModal} - width="w-[60%]" + width="w-[80%] md:w-[60%]" containerClass="overflow-hidden" modalHeading="Add New Lesson" > diff --git a/src/lib/components/Course/components/Lesson/Exercises/index.svelte b/src/lib/components/Course/components/Lesson/Exercises/index.svelte index 55f59683..5ba8b331 100644 --- a/src/lib/components/Course/components/Lesson/Exercises/index.svelte +++ b/src/lib/components/Course/components/Lesson/Exercises/index.svelte @@ -165,8 +165,8 @@

Created Jul 3, 2021

{:else} - -
+ +
Exercise

No exercises added for this lesson

diff --git a/src/lib/components/Course/components/Lesson/Materials/Video/Index.svelte b/src/lib/components/Course/components/Lesson/Materials/Video/Index.svelte index 2c0095ad..c1c718c2 100644 --- a/src/lib/components/Course/components/Lesson/Materials/Video/Index.svelte +++ b/src/lib/components/Course/components/Lesson/Materials/Video/Index.svelte @@ -11,13 +11,15 @@ const onChange = (tab) => () => (currentTab = tab); -

-
-

Add By

+
+
+

+ Add By +

{#each tabs as item (item.value)} - {/each} - {:else} - -
- - - -

{selectedSection.title}

-
- -
- {#if selectedSection.key === 1} - - {:else if selectedSection.key === 2} - - {:else if selectedSection.key === 3} - - {:else if selectedSection.key === 4} - - {:else if selectedSection.key === 5} - - {:else if selectedSection.key === 6} - - {:else if selectedSection.key === 7} - +
+
+ {#if !selectedSection} +
+ +
+ + + + + +
+
+
+

Page Builder

+
+ {#each sections as section} + + {/each} + {:else} + +
+ + + +

{selectedSection.title}

+
+ +
+ {#if selectedSection.key === 1} + + {:else if selectedSection.key === 2} + + {:else if selectedSection.key === 3} + + {:else if selectedSection.key === 4} + + {:else if selectedSection.key === 5} + + {:else if selectedSection.key === 6} + + {:else if selectedSection.key === 7} + + {/if} +
+ {/if} +
+ diff --git a/src/lib/components/CourseLandingPage/components/PricingSection.svelte b/src/lib/components/CourseLandingPage/components/PricingSection.svelte index 8da9e409..54951a14 100644 --- a/src/lib/components/CourseLandingPage/components/PricingSection.svelte +++ b/src/lib/components/CourseLandingPage/components/PricingSection.svelte @@ -38,7 +38,7 @@ -
-
- - - - - Student - {#each $lessons as lesson, index} - Lesson 0{getLectureNo(index + 1)} - {/each} - - - - {#each searchStudents(searchValue) as student} - - - -
-

- {student.profile.fullname} -

-
-
- {#each $lessons as lesson} - - handleAttendanceChange(e, student, lesson)} - /> - +
+ + + + + Student + {#each $lessons as lesson, index} + Lesson 0{getLectureNo(index + 1)} {/each} - - {/each} - - {#if students.length === 0} -
- + + + {#each searchStudents(searchValue) as student} + + + +
+

+ {student.profile.fullname} +

+
+
+ {#each $lessons as lesson} + + handleAttendanceChange(e, student, lesson)} + /> + + {/each} +
+
+ {/each} + + {#if students.length === 0} + -

No Student Added

+

No Student Added

-
- {/if} - -
+ {/if} + {#if students.length !== 0} + + {/if} +
+ diff --git a/src/routes/courses/[id]/landingpage/+page.svelte b/src/routes/courses/[id]/landingpage/+page.svelte index f1fb2e35..1df225ea 100644 --- a/src/routes/courses/[id]/landingpage/+page.svelte +++ b/src/routes/courses/[id]/landingpage/+page.svelte @@ -30,12 +30,12 @@
-
+
@@ -43,13 +43,8 @@ diff --git a/src/routes/courses/[id]/lessons/+page.svelte b/src/routes/courses/[id]/lessons/+page.svelte index f30b6954..935a76ce 100644 --- a/src/routes/courses/[id]/lessons/+page.svelte +++ b/src/routes/courses/[id]/lessons/+page.svelte @@ -321,12 +321,12 @@
{:else} -
+
Lesson

No lessons yet

Share your knowledge with the world by creating engaging lessons. Start by clicking on - the New Lesson button. + the Add button.

diff --git a/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte b/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte index fe11d658..348d4f7e 100644 --- a/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte +++ b/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte @@ -4,17 +4,19 @@ import { fetchCourse, fetchLesson } from '$lib/utils/services/courses'; import CheckmarkOutlineIcon from 'carbon-icons-svelte/lib/CheckmarkOutline.svelte'; import PrimaryButton from '$lib/components/PrimaryButton/index.svelte'; - import { VARIANTS } from '$lib/components/PrimaryButton/constants.js'; + import { VARIANTS } from '$lib/components/PrimaryButton/constants'; import { Loading } from 'carbon-components-svelte'; import RoleBasedSecurity from '$lib/components/RoleBasedSecurity/index.svelte'; import PageNav from '$lib/components/PageNav/index.svelte'; import PageBody from '$lib/components/PageBody/index.svelte'; import Materials from '$lib/components/Course/components/Lesson/Materials/index.svelte'; import Exercises from '$lib/components/Course/components/Lesson/Exercises/index.svelte'; - import MODES from '$lib/utils/constants/mode.js'; + import MODES from '$lib/utils/constants/mode'; import { setCourse, course } from '$lib/components/Course/store'; import Download from 'carbon-icons-svelte/lib/Download.svelte'; - + import OverflowMenuVertical from 'carbon-icons-svelte/lib/OverflowMenuVertical.svelte'; + import { apps } from '$lib/components/Apps/store'; + import IconButton from '$lib/components/IconButton/index.svelte'; import { lesson, lessons, @@ -144,6 +146,10 @@ })); } + const toggleApps = () => { + $apps.open = !$apps.open; + }; + function toggleMode() { prevMode = mode; mode = mode === MODES.edit ? MODES.view : MODES.edit; @@ -176,9 +182,20 @@ {#if data.isMaterialsTabActive} -
+
+ + + +
+
-
+
!!person.profile && person.profile.id === $profile.id - ) - : $group.people.filter( - (person) => !!person.profile && person.role_id === ROLE.STUDENT - ); + ? $group.people.filter((person) => !!person.profile && person.profile.id === $profile.id) + : $group.people.filter((person) => !!person.profile && person.role_id === ROLE.STUDENT); } - -
+ +

Student

@@ -111,8 +102,7 @@ > {#each Object.keys(lessonMapping[lesson.id]) as exerciseId, index}

{lessonMapping[lesson.id][exerciseId].title} @@ -129,9 +119,7 @@

{#each students as student} -
+
Student avatar

- {`${ - student.assigned_student_id - ? '#' + student.assigned_student_id - : '-' - }`} + {`${student.assigned_student_id ? '#' + student.assigned_student_id : '-'}`}

@@ -176,9 +160,7 @@ {:else} -

- No Student Added -

+

No Student Added

{/each}
diff --git a/src/routes/courses/[id]/people/+page.svelte b/src/routes/courses/[id]/people/+page.svelte index c6f12352..16b0fcbd 100644 --- a/src/routes/courses/[id]/people/+page.svelte +++ b/src/routes/courses/[id]/people/+page.svelte @@ -1,6 +1,7 @@