added homepage view with recipe preview
This commit is contained in:
parent
7f3ba9a918
commit
f6647577ef
7
Views/home/recipe.php
Normal file
7
Views/home/recipe.php
Normal file
@ -0,0 +1,7 @@
|
||||
<a href="/recipe/view/1">
|
||||
<img scr="<?= $A_view["img"] ?>">
|
||||
<section>
|
||||
<h2> <?= $A_view["nom"]?> </h2>
|
||||
<p> <?= $A_view["note"]?> </p>
|
||||
</section>
|
||||
</a>
|
@ -1 +1,34 @@
|
||||
<h3> Hello ! </h3>
|
||||
<?php
|
||||
$array_recipes = array(
|
||||
array(
|
||||
"nom" => "Quaso",
|
||||
"img" => "4.jpg",
|
||||
"note" => "4.5"
|
||||
),
|
||||
array(
|
||||
"nom" => "Quaso",
|
||||
"img" => "4.jpg",
|
||||
"note" => "4.5"
|
||||
),
|
||||
array(
|
||||
"nom" => "Quaso",
|
||||
"img" => "4.jpg",
|
||||
"note" => "4.5"
|
||||
),
|
||||
);
|
||||
?>
|
||||
|
||||
<img src="static/img/bandeau.jpg" alt="Cook">
|
||||
|
||||
<section>
|
||||
<h1> idées recettes: </h1>
|
||||
<section>
|
||||
<?php
|
||||
foreach ($array_recipes as $recipe){
|
||||
View::show("home/recipe", $recipe);
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
BIN
static/img/bandeau.jpg
Normal file
BIN
static/img/bandeau.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 276 KiB |
Loading…
Reference in New Issue
Block a user