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