diff --git a/src/components/Course/components/Ceritficate/StudentCertificate/Index.svelte b/src/components/Course/components/Ceritficate/StudentCertificate/Index.svelte new file mode 100644 index 00000000..2320ccdd --- /dev/null +++ b/src/components/Course/components/Ceritficate/StudentCertificate/Index.svelte @@ -0,0 +1,13 @@ + + +
+ {#if $course.is_certificate_downloadable == true} + + {:else} + + {/if} +
diff --git a/src/components/Course/components/Ceritficate/StudentCertificate/LockedCertificate.svelte b/src/components/Course/components/Ceritficate/StudentCertificate/LockedCertificate.svelte new file mode 100644 index 00000000..768170a1 --- /dev/null +++ b/src/components/Course/components/Ceritficate/StudentCertificate/LockedCertificate.svelte @@ -0,0 +1,20 @@ + + +
+
+ Certificate +

Certificates not available

+

+ Your instructor needs to unlock your certificate.
If you need your certificate, + please contact your instructor. +

+
+
+ + diff --git a/src/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte b/src/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte new file mode 100644 index 00000000..8e67ad34 --- /dev/null +++ b/src/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte @@ -0,0 +1,55 @@ + + +
+
+ Certificate +

Certificate is now available

+ +
+
+ + diff --git a/src/routes/courses/[id]/certificates.svelte b/src/routes/courses/[id]/certificates.svelte index 796366e4..e38086f8 100644 --- a/src/routes/courses/[id]/certificates.svelte +++ b/src/routes/courses/[id]/certificates.svelte @@ -20,7 +20,7 @@ // import { issueCertificateModal } from '../../../components/Course/components/Ceritficate/store'; // import { Tabs, Tab } from 'carbon-components-svelte'; // import TabContent from 'carbon-components-svelte/src/Tabs/TabContent.svelte'; - + import StudentCertificate from '../../../components/Course/components/Ceritficate/StudentCertificate/Index.svelte'; export let courseId: string = ''; let isStudent = false; @@ -48,7 +48,13 @@ - + + + + + + +