CLASSROOMIO-T-11: More spacing and font
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
} from 'carbon-components-svelte';
|
} from 'carbon-components-svelte';
|
||||||
import { goto } from '@sapper/app';
|
import { goto } from '@sapper/app';
|
||||||
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
||||||
|
import { VARIANTS } from '../../../PrimaryButton/constants';
|
||||||
import TextArea from '../../../Form/TextArea.svelte';
|
import TextArea from '../../../Form/TextArea.svelte';
|
||||||
import Professional from './certificates/Professional.svelte';
|
import Professional from './certificates/Professional.svelte';
|
||||||
import Plain from './certificates/Plain.svelte';
|
import Plain from './certificates/Plain.svelte';
|
||||||
@@ -39,7 +40,16 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="md:-ml-4 md:-mr-4">
|
<svelte:head>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
<link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Qwitcher+Grypen&family=Roboto:wght@300;400;700&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<main class="md:-ml-4 md:-mr-4 px-2">
|
||||||
<div
|
<div
|
||||||
class="flex-1 flex flex-col md:flex-row justify-between gap-3 w-full mb-3 h-4/5"
|
class="flex-1 flex flex-col md:flex-row justify-between gap-3 w-full mb-3 h-4/5"
|
||||||
>
|
>
|
||||||
@@ -58,10 +68,6 @@
|
|||||||
</RadioButtonGroup>
|
</RadioButtonGroup>
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs font-normal text-black my-2">Brand Logo</p>
|
<p class="text-xs font-normal text-black my-2">Brand Logo</p>
|
||||||
<p class="text-base font-normal mt-2 mb-4">
|
|
||||||
We recommend using a PNG file with transparency. Maximum size: 512px x
|
|
||||||
512px.
|
|
||||||
</p>
|
|
||||||
<div>
|
<div>
|
||||||
<p class="text-base mt-1">
|
<p class="text-base mt-1">
|
||||||
To update your brand image, go to <strong class="font-semibold"
|
To update your brand image, go to <strong class="font-semibold"
|
||||||
@@ -71,6 +77,7 @@
|
|||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
label="Go to Settings"
|
label="Go to Settings"
|
||||||
className="rounded-md mt-1"
|
className="rounded-md mt-1"
|
||||||
|
variant={VARIANTS.TEXT}
|
||||||
onClick={() => goto(`org/${$currentOrg.siteName}/settings`)}
|
onClick={() => goto(`org/${$currentOrg.siteName}/settings`)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,25 +9,25 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="flex flex-col items-center justify-center {borderwidth} {bordercolor}"
|
class="flex flex-col items-center justify-center {borderwidth} {bordercolor} py-3"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-1 my-2">
|
<div class="flex items-center gap-1 my-2">
|
||||||
<img
|
<img
|
||||||
src={$currentOrg.avatar_url ? $currentOrg.avatar_url : logo}
|
src={$currentOrg.avatar_url ? $currentOrg.avatar_url : logo}
|
||||||
alt="logo"
|
alt="logo"
|
||||||
class=" w-14 h-14 rounded-md"
|
class=" w-10 h-10 rounded-md"
|
||||||
/>
|
/>
|
||||||
<p class="font-semibold capitalize">{$currentOrg.name}</p>
|
<p class="font-semibold capitalize">{$currentOrg.name}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full px-5 py-3">
|
<div class="w-full px-5 py-3">
|
||||||
<p
|
<p
|
||||||
class="text-sm text-center font-normal my-2 uppercase tracking-wider text-gray-500 w-full"
|
class="text-sm text-center font-normal my-2 uppercase tracking-widest text-gray-500 w-full"
|
||||||
>
|
>
|
||||||
Certificate of completion
|
Certificate of completion
|
||||||
</p>
|
</p>
|
||||||
<div class="border-b border-gray-500 mb-4">
|
<div class="border-b border-gray-500 mb-4">
|
||||||
<p class="text-xs text-black font-medium">This is to certify that</p>
|
<p class="text-xs text-black font-medium">This is to certify that</p>
|
||||||
<p class="text-center">{studentName}</p>
|
<p class="student-name text-center text-5xl">{studentName}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<p class="text-xs text-black font-medium">
|
<p class="text-xs text-black font-medium">
|
||||||
@@ -46,6 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.student-name {
|
||||||
|
font-family: 'Qwitcher Grypen', cursive;
|
||||||
|
}
|
||||||
.desc {
|
.desc {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="border-b border-gray-500 mb-4">
|
<div class="border-b border-gray-500 mb-4">
|
||||||
<p class="text-xs text-black font-medium">This is to certify that</p>
|
<p class="text-xs text-black font-medium">This is to certify that</p>
|
||||||
<p class="text-center">{studentName}</p>
|
<p class="student-name text-center text-5xl">{studentName}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<p class="text-xs text-black font-medium">
|
<p class="text-xs text-black font-medium">
|
||||||
@@ -26,18 +26,18 @@
|
|||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<p
|
<p
|
||||||
class="clamp bg-transparent text-base font-semibold text-blue-800 text-center uppercase"
|
class="clamp bg-transparent text-base font-semibold text-blue-800 text-center uppercase my-2"
|
||||||
>
|
>
|
||||||
{$course.title}
|
{$course.title}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="desc mb-2 text-justify">{$course.description}</p>
|
<p class="desc mb-4 text-justify">{$course.description}</p>
|
||||||
<div class="flex items-center gap-1 my-2">
|
<div class="flex items-center gap-1 my-2">
|
||||||
<img
|
<img
|
||||||
src={$currentOrg.avatar_url ? $currentOrg.avatar_url : logo}
|
src={$currentOrg.avatar_url ? $currentOrg.avatar_url : logo}
|
||||||
alt="logo"
|
alt="logo"
|
||||||
class="w-14 h-14 rounded-md"
|
class="w-10 h-10 rounded-md"
|
||||||
/>
|
/>
|
||||||
<p class="font-semibold capitalize">{$currentOrg.name}</p>
|
<p class="font-semibold capitalize">{$currentOrg.name}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,6 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.student-name {
|
||||||
|
font-family: 'Qwitcher Grypen', cursive;
|
||||||
|
}
|
||||||
.desc {
|
.desc {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
// import
|
// import
|
||||||
// border border-gray-300 rounded-md p-3 bg-blue-200 bg-opacity-25
|
// border border-gray-300 rounded-md p-3 bg-blue-200 bg-opacity-25
|
||||||
export let width = 'max-w-3xl w-full lg:w-11/12';
|
export let width = 'max-w-4xl w-full lg:w-11/12';
|
||||||
export let padding = 'pb-5 px-4';
|
export let padding = 'pb-5 px-4';
|
||||||
export let className = '';
|
export let className = '';
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user