From 2ce3063b8357b35b243aefb673643e3bfa0b25b2 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 14 Aug 2023 06:22:03 +0100 Subject: [PATCH] first commit --- src/lib/components/Navigation/index.svelte | 4 +- .../components/Org/LandingPage/index.svelte | 159 +++++++++++++----- src/lib/components/PrimaryButton/constants.js | 2 + src/lib/utils/constants/routes.ts | 8 +- src/lib/utils/services/org/index.js | 18 +- src/lib/utils/store/app.js | 4 +- src/routes/+layout.js | 8 - src/routes/+layout.server.js | 34 ++++ src/routes/+layout.svelte | 46 ++--- static/images/org-header-banner.jpg | Bin 0 -> 413386 bytes 10 files changed, 185 insertions(+), 98 deletions(-) delete mode 100644 src/routes/+layout.js create mode 100644 src/routes/+layout.server.js create mode 100644 static/images/org-header-banner.jpg diff --git a/src/lib/components/Navigation/index.svelte b/src/lib/components/Navigation/index.svelte index 090a42ff..df4d6ab2 100644 --- a/src/lib/components/Navigation/index.svelte +++ b/src/lib/components/Navigation/index.svelte @@ -2,7 +2,6 @@ import { goto } from '$app/navigation'; import { page } from '$app/stores'; import { user } from '$lib/utils/store/user'; - import { appStore } from '$lib/utils/store/app'; import { isCoursePage } from '$lib/utils/functions/app'; import PrimaryButton from '$lib/components/PrimaryButton/index.svelte'; import { VARIANTS } from '$lib/components/PrimaryButton/constants'; @@ -10,6 +9,7 @@ export let disableLogin; export let logo; export let orgName; + export let isOrgSite = false; let navClass = ''; @@ -54,7 +54,7 @@ {#if $user.isLoggedIn} - {#if $appStore.isStudentDomain} + {#if isOrgSite}
  • Go to LMS
  • {/if} {:else} diff --git a/src/lib/components/Org/LandingPage/index.svelte b/src/lib/components/Org/LandingPage/index.svelte index a9ed3377..8bb06852 100644 --- a/src/lib/components/Org/LandingPage/index.svelte +++ b/src/lib/components/Org/LandingPage/index.svelte @@ -1,46 +1,86 @@ - + + {$currentOrg.name} + +
    -