Skip to content

Commit

Permalink
Added images sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
veliu committed Aug 27, 2024
1 parent e974186 commit 147cc4f
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 242 deletions.
2 changes: 2 additions & 0 deletions components/Food/FoodCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const { createdBy, assignedToGroup } = await useFood(props.food);
>
<NuxtLink :to="'/food/' + food.id">
<NuxtImg
format="webp"
sizes="100vw sm:50vw md:400px"
:src="food.image ? food.image : `/pizza.jpeg`"
class="h-full w-full object-cover object-center sm:h-full sm:w-full"
/>
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"dependencies": {
"@headlessui/vue": "^1.7.22",
"@heroicons/vue": "^2.1.5",
"@nuxt/eslint": "^0.5.1",
"@nuxt/image": "^1.7.0",
"@nuxt/eslint": "^0.5.3",
"@nuxt/image": "^1.7.1",
"@nuxt/ui": "^2.18.4",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"nuxt": "^3.12.4",
"@tailwindcss/typography": "^0.5.14",
"nuxt": "^3.13.0",
"nuxt-twemoji": "^3.6.1",
"vue": "latest",
"vue3-carousel-nuxt": "^1.1.2",
Expand All @@ -32,7 +32,7 @@
"devDependencies": {
"@iconify-json/heroicons": "^1.1.24",
"@nuxtjs/tailwindcss": "^6.12.1",
"@openapitools/openapi-generator-cli": "^2.13.4",
"@openapitools/openapi-generator-cli": "^2.13.5",
"@types/js-cookie": "^3.0.6",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.27.0",
Expand Down
Loading

0 comments on commit 147cc4f

Please sign in to comment.