-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.astro
More file actions
45 lines (43 loc) · 1.62 KB
/
index.astro
File metadata and controls
45 lines (43 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
import Main from '../layouts/Main.astro'
import RecipeCard from '../components/RecipeCard.astro'
import recipes from '../assets/recipes.json'
---
<Main title="Home" canSearch={true}>
<section id="recipes-list">
{
recipes.map((recipe) => (
<RecipeCard
author_id={recipe.author_id}
author_name={recipe.author_name}
cook_time={recipe.cook_time}
details={recipe.details}
difficulty_level={recipe.difficulty_level}
estimated_cost={recipe.estimated_cost}
modification_date={recipe.modification_date}
number_of_reviews={recipe.number_of_reviews}
nutritional_information={recipe.nutritional_information}
picture_id={recipe.picture_id}
preparation={recipe.preparation}
preparation_time={recipe.preparation_time}
publication_date={recipe.publication_date}
recipe_id={recipe.recipe_id}
recipe_source={recipe.recipe_source}
recipe_status={recipe.recipe_status}
servings={recipe.servings}
title={recipe.title}
video_url={recipe.video_url}
/>
))
}
</section>
<style>
#recipes-list {
background-color: transparent;
display: flex;
flex-wrap: wrap;
gap: var(--spacing-medium);
justify-content: center;
}
</style>
</Main>