diff --git a/src/components/Courses/components/Card/index.svelte b/src/components/Courses/components/Card/index.svelte index edb7ed83..59ae7387 100644 --- a/src/components/Courses/components/Card/index.svelte +++ b/src/components/Courses/components/Card/index.svelte @@ -4,9 +4,11 @@ import { ROLE } from '../../../../utils/constants/roles'; import getCurrencyFormatter from '../../../../utils/functions/getCurrencyFormatter'; import OverflowMenuHorizontal24 from 'carbon-icons-svelte/lib/OverflowMenuHorizontal24'; + import ArrowRight from 'carbon-icons-svelte/lib/ArrowRight24'; export let bannerImage: string | undefined; export let id = ''; + export let slug = ''; export let title = ''; export let description = ''; export let role_id = ROLE.STUDENT; @@ -14,6 +16,7 @@ export let cost = 0; export let totalLessons = 0; export let currency = 'NGN'; + export let isOnLandingPage = false; let formatter = getCurrencyFormatter(currency); @@ -42,25 +45,31 @@ } - +
- -
- -
-
+ {#if !isOnLandingPage} + +
+ +
+
+ {/if} Course Logo -
+

{title}

@@ -72,13 +81,18 @@

{totalLessons} lessons

-
- {#if isPublished} - Published - {:else} - Unpublished - {/if} -
+ + {#if isOnLandingPage} + + {:else} +
+ {#if isPublished} + Published + {:else} + Unpublished + {/if} +
+ {/if}

{!cost ? 'free' : formatter.format(cost)} @@ -92,7 +106,8 @@ min-height: 370px; } - a { + a, + a:hover { text-decoration: none; } .title, diff --git a/src/components/Navigation/index.svelte b/src/components/Navigation/index.svelte index a25fc75d..062d0866 100644 --- a/src/components/Navigation/index.svelte +++ b/src/components/Navigation/index.svelte @@ -28,7 +28,7 @@

{#if $user.isLoggedIn} -
  • +
  • -
  • +
  • + -{#if !['about', ''].includes(path)} - + {#if !['about', ''].includes(path)} + + {/if} {/if}