mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-11 12:56:40 +00:00
23 lines
663 B
Vue
23 lines
663 B
Vue
<script setup lang="ts">
|
|
const { recipe, pending, error } = await useRecipe();
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="pending">Loading</div>
|
|
<div v-else-if="error">Failed: {{ error }}</div>
|
|
<section v-else>
|
|
<div class="lg:flex space-y-4 lg:justify-evenly py-4">
|
|
<div class="card w-96 bg-base-100 shadow-xl mx-auto lg:mx-2">
|
|
<RecipeCard
|
|
:title="recipe.title"
|
|
:picture-url="recipe.pictureUrl"
|
|
:video-url="recipe.videoUrl"
|
|
:category="recipe.category"
|
|
:origin="recipe.origin"
|
|
/>
|
|
</div>
|
|
|
|
<RecipeIngredients :ingredients="recipe.ingredients" />
|
|
</div>
|
|
</section>
|
|
</template>
|