CLASSROOMIO-T-11:Renamed the images of the certificate theme files

This commit is contained in:
emmanuel
2023-07-25 23:24:10 +01:00
parent 3e2c4e6fa7
commit d9c8d93803
@@ -11,12 +11,12 @@
import Professional from './certificates/Professional.svelte'; import Professional from './certificates/Professional.svelte';
import Plain from './certificates/Plain.svelte'; import Plain from './certificates/Plain.svelte';
const theme1 = './theme1.png'; const professional = './theme1.png';
const theme2 = './theme2.png'; const plain = './theme2.png';
const themes = [ const themes = [
{ label: 'theme1', src: theme1 }, { label: 'professional', src: professional },
{ label: 'theme2', src: theme2 }, { label: 'plain', src: plain },
]; ];
let Selectedtheme = themes[0]; let Selectedtheme = themes[0];
@@ -79,7 +79,7 @@
class="certbg flex justify-center items-center rounded-md w-full md:w-3/5" class="certbg flex justify-center items-center rounded-md w-full md:w-3/5"
> >
<div class="flex justify-center items-center h-5/6 w-5/6"> <div class="flex justify-center items-center h-5/6 w-5/6">
{#if Selectedtheme.label == 'theme1'} {#if Selectedtheme.label == 'professional'}
<Professional /> <Professional />
{:else} {:else}
<Plain /> <Plain />