fix: use static asset paths

stupid nuxt idk why but it's not working with dynamic images
This commit is contained in:
2022-08-09 22:23:24 -04:00
parent 549d177e5c
commit 26359ec563
28 changed files with 11 additions and 17 deletions

View File

@@ -5,12 +5,14 @@ const props = defineProps<{
img: string;
unclickable?: boolean;
}>();
const imgUrl = `/images/services/${props.img}`;
</script>
<template>
<a :href="unclickable ? '' : href" :class="['no-underline', { unclickable }]">
<div class="card flex flex-col items-center justify-around">
<img class="m-0" :src="img" />
<img class="m-0" :src="imgUrl" />
<h3 class="m-0">{{ props.name }}</h3>
<p class="desc-text text-gray-600 dark:text-gray-200"><slot /></p>
</div>