Skip to content
Snippets Groups Projects
Commit f2835f4c authored by Thomas Fritsch's avatar Thomas Fritsch
Browse files

objets littéraux : correction prix et liens images

parent 1f934096
Branches
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ Première pizza :
{
nom: 'Regina',
base: 'tomate',
prix_petite: 5.5,
prix_grande: 7.5,
prix_petite: 6.5,
prix_grande: 9.95,
image: 'https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300'
}
```
......@@ -40,7 +40,7 @@ Deuxième pizza :
base: 'tomate',
prix_petite: 6.5,
prix_grande: 8.95,
image: 'https://images.unsplash.com/photo-1562707666-0ef112b353e0?&fit=crop&w=500&h=300&q=80'
image: 'https://images.unsplash.com/photo-1562707666-0ef112b353e0?&fit=crop&w=500&h=300'
}
```
......@@ -51,15 +51,15 @@ Troisième pizza :
base: 'crème',
prix_petite: 5.5,
prix_grande: 8,
image: 'https://images.unsplash.com/photo-1458642849426-cfb724f15ef7?fit=crop&w=500&h=300&q=80'
image: 'https://images.unsplash.com/photo-1458642849426-cfb724f15ef7?fit=crop&w=500&h=300',
}
```
Modifiez la boucle pour générer un code de ce type :
```html
<article class="media">
<a href="images/regina.jpg">
<img src="images/regina.jpg" />
<a href="https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300">
<img src="https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300" />
<section class="infos">
<h4>Regina</h4>
<ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment