nuxt image

This commit is contained in:
Ruidy 2024-04-27 01:53:38 +02:00
parent 22a19315ec
commit df4c28235c
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
5 changed files with 5 additions and 4 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -26,7 +26,7 @@
</ul>
</div>
<nuxt-link to="/" class="btn btn-ghost text-xl">
<img src="/public/logo192.png" width="50" >
<NuxtImg src="/logo192.png" width="50" />
<span style="font-family: cursive"> Chefs </span>
</nuxt-link>
</div>

View file

@ -2,7 +2,7 @@
export default defineNuxtConfig({
devtools: { enabled: true },
css: ["~/assets/css/main.css"],
modules: ["@nuxt/eslint"],
modules: ["@nuxt/eslint", "@nuxt/image"],
postcss: {
plugins: {
tailwindcss: {},

View file

@ -14,6 +14,7 @@
},
"dependencies": {
"@nuxt/eslint": "^0.3.10",
"@nuxt/image": "^1.6.0",
"nuxt": "^3.11.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0"

View file

@ -1,12 +1,12 @@
<template>
<div class="hero min-h-screen bg-base-200">
<div class="hero-content flex-col lg:flex-row-reverse">
<img src="/public/chef.svg" class="max-w-sm rounded-lg shadow-2xl" >
<NuxtImg src="/chef.svg" class="max-w-sm rounded-lg shadow-2xl" />
<div>
<h1 class="text-5xl font-bold prose">Eat Something New</h1>
<p class="py-6 prose">Generate a random recipe.</p>
<NuxtLink to="/random" class="btn btn-primary">
>Random Recipe Now
Random Recipe Now
</NuxtLink>
</div>
</div>