forked from euvinkeel/Lab6_Starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcardTemplate.html
More file actions
41 lines (39 loc) · 1.29 KB
/
cardTemplate.html
File metadata and controls
41 lines (39 loc) · 1.29 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
<!-- This is a template for you to reference when making your cards.
You won't need to access this file from your code, simply recreate
this markup with the JavaScript from inside the RecipeCard.js set Data() function
and fill it in with the appropriate info. -->
<!-- With a Rating -->
<article>
<img src="https://link-to-article.com/recipe-thumbnail.jpg" alt="Recipe Title">
<p class="title">
<a href="https://link-to-article.com">Title</a>
</p>
<p class="organization">The Chef's Organization</p>
<div class="rating">
<!-- Average Review out of 5 -->
<span>5</span>
<!-- Corresponding image to avg review score -->
<img src="/assets/images/icons/5-star.svg" alt="5 stars">
<!-- Total number of reviews -->
<span>(500)</span>
</div>
<time>50 min</time>
<p class="ingredients">
Comma, Separated, List, of, Ingredients
</p>
</article>
<!-- Without a Rating -->
<article>
<img src="https://link-to-article.com/recipe-thumbnail.jpg" alt="Recipe Title">
<p class="title">
<a href="https://link-to-article.com">Title</a>
</p>
<p class="organization">The Chef's Organization</p>
<div class="rating">
<span>No Reviews</span>
</div>
<time>50 min</time>
<p class="ingredients">
Comma, Separated, List, of, Ingredients
</p>
</article>