mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
nuxt image
This commit is contained in:
parent
22a19315ec
commit
df4c28235c
5 changed files with 5 additions and 4 deletions
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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: {},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue