diff --git a/frontend/public/background.jpg b/frontend/public/background.jpg new file mode 100644 index 0000000..37ea81d Binary files /dev/null and b/frontend/public/background.jpg differ diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 8ecc31e..98c2b28 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,11 +1,13 @@ diff --git a/frontend/src/components/CategoryItem.vue b/frontend/src/components/CategoryItem.vue index bda8a4b..b3deefa 100644 --- a/frontend/src/components/CategoryItem.vue +++ b/frontend/src/components/CategoryItem.vue @@ -3,6 +3,7 @@ import APIClient from '@/api_client'; import { onMounted, ref } from 'vue'; const imageData = ref(''); +const imageLoaded = ref(false); const props = defineProps({ id: Number, @@ -10,31 +11,45 @@ const props = defineProps({ }) onMounted(async () => { imageData.value = await APIClient.getImageCategory(props.id); + imageLoaded.value = true; }); \ No newline at end of file diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index 2101ad6..821b5f0 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -12,14 +12,18 @@ onMounted(async () => {