Thumbnail
Also exposing projectId from this commit. Generally it is fine to do so and I will/might consider changing the utils
This commit is contained in:
@@ -1,18 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getFromCMS } from '$lib/utils';
|
|
||||||
import { onMount } from 'svelte';
|
|
||||||
|
|
||||||
let {
|
let {
|
||||||
title = "Electrical, Computer & Software Engineering Students' Society at McGill - ECSESS",
|
title = "Electrical, Computer & Software Engineering Students' Society at McGill - ECSESS",
|
||||||
description = 'Meet the student council, get access to academic and technical resources, registration for events, and much more!',
|
description = 'Meet the student council, get access to academic and technical resources, registration for events, and much more!',
|
||||||
canonical = 'https://ecsess.mcgilleus.ca'
|
canonical = 'https://ecsess.mcgilleus.ca'
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
let thumbnail = $state(null);
|
let thumbnail = "https://cdn.sanity.io/images/vmtsvpe2/production/5d68504038cc692805dc5e51af83adedfefde442-5304x3443.jpg?h=628&fm=webp";
|
||||||
|
|
||||||
onMount(async() => {
|
|
||||||
thumbnail = await getFromCMS(`*[_type == "homepage"][0].councilPhoto.asset->url+"?h=628&fm=webp"`);
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|||||||
Reference in New Issue
Block a user