From 8b4cf304657f3ff4a27c89aaa2a3af0a1dd5dfcc Mon Sep 17 00:00:00 2001 From: Ibitoye Rotimi Best Date: Sat, 29 May 2021 12:00:46 +0300 Subject: [PATCH] Styling updates --- package.json | 2 +- .../Course/components/CourseNav.svelte | 91 +++++---- .../Course/components/Lecture/Homework.svelte | 182 ++++++++++++------ src/components/Form/Select.svelte | 2 - 4 files changed, 176 insertions(+), 101 deletions(-) diff --git a/package.json b/package.json index b1b67a5e..6fdc03a0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "unidiscuss", "version": "0.0.1", "scripts": { - "dev": "sapper dev", + "dev": "nvm use 11.0.0 && sapper dev", "build": "sapper build --legacy", "export": "sapper export --legacy", "start": "node __sapper__/build" diff --git a/src/components/Course/components/CourseNav.svelte b/src/components/Course/components/CourseNav.svelte index b888733a..f25ac452 100644 --- a/src/components/Course/components/CourseNav.svelte +++ b/src/components/Course/components/CourseNav.svelte @@ -43,6 +43,55 @@ } +
+ +
+ + + {#each lectures as lecture, index} + + {getLectureNo(index)} + {lecture.title} + + {/each} + + + + + +
+
+ - -
- -
- - - {#each lectures as lecture, index} - - {getLectureNo(index)} - {lecture.title} - - {/each} - - - - - -
-
diff --git a/src/components/Course/components/Lecture/Homework.svelte b/src/components/Course/components/Lecture/Homework.svelte index 4a66f0f6..889e6d5f 100644 --- a/src/components/Course/components/Lecture/Homework.svelte +++ b/src/components/Course/components/Lecture/Homework.svelte @@ -1,44 +1,106 @@ - -
- {#if currentQuestionIndex === 0} -
-

Home task 1

-

{questionnaire.about}

+{#if currentQuestionIndex === 0} +
+

Home task 1

+

+ You will be to answer 10 questions, it isn't timed so you can take your + time to answer. You can also continue from where you left off, you don't + need to worry cause everything is automatically syncronized in the cloud. +

- -
- {:else if !currentQuestion} -
-      {JSON.stringify(answers)}
-    
- {:else} - - {/if} +
- +{:else if !currentQuestion} +
+    {JSON.stringify(answers)}
+  
+{:else} + +{/if} diff --git a/src/components/Form/Select.svelte b/src/components/Form/Select.svelte index 4a1e12ba..be79c7b9 100644 --- a/src/components/Form/Select.svelte +++ b/src/components/Form/Select.svelte @@ -3,8 +3,6 @@ export let placeholder; export let value; export let options = []; - - let answer = "Work on ";