-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.html
68 lines (59 loc) · 2.56 KB
/
recipe.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template name="recipe">
<div class="page recipe {{activeTabClass}}">
{{#nav title='Recipe' black=true back=true}}
{{#if bookmarked}}
<a href="#" class="nav-item js-remove-bookmark bookmarked"><span class="icon-bookmark"></span></a>
{{else}}
<a href="#" class="nav-item js-add-bookmark"><span class="icon-bookmark-hollow"></span></a>
{{/if}}
<a href="#" class="nav-item js-share"><span class="icon-camera"></span></a>
{{/nav}}
<div class="image-recipe" style="background-image: url('{{recipeImage recipe=this size='full'}}')"></div>
<div class="attribution-recipe js-uncollapse">
<h1 class="title-recipe">{{title}}</h1>
<div class="metadata-wrapper">
<p class="description-recipe">{{excerpt}}</p>
<span class="source">{{source.name}}</span>
<span class="time">{{cookTime}}</span>
</div>
<div class="btns-group">
<a class="btn-secondary {{#if isActiveTab 'make'}}active{{/if}} {{#if isActiveTab 'recipe'}}no-state{{/if}} js-show-recipe">Make It</a>
<a class="btn-secondary {{#if isActiveTab 'feed'}}active{{/if}} {{#if isActiveTab 'recipe'}}no-state{{/if}} js-show-feed">Pictures</a>
</div>
</div>
<div class="content-scrollable static-nav make-scrollable">
<a class="btn-tertiary js-share"><span class="icon-camera"></span> Share that you made this</a>
<h2 class="list-title">Ingredients</h2>
<ul class="list-ingredients">
{{#each ingredients}}
<li class="item-ingredient">{{this}}</li>
{{/each}}
</ul>
<h2 class="list-title">Directions</h2>
<ol class="list-directions">
{{#each directions}}
<li class="item-direction">
<span class="text">{{this}}</span>
</li>
{{/each}}
<li class="item-direction">
...
</li>
</ol>
<a href="{{source.url}}" target="_blank" class="btn-primary js-open">See full recipe on {{source.name}}</a>
</div>
<div class="content-scrollable static-nav feed-scrollable">
<a class="btn-tertiary js-share"><span class="icon-camera"></span> Share that you made this</a>
<div class="list-activities">
{{#each activities}}
{{> activity}}
{{else}}
<div class="wrapper-message">
<div class="title-message">No feed activity yet</div>
<div class="subtitle-message">Be the first to share that you made this recipe. <a class="js-share">Share now</a></div>
</div>
{{/each}}
</div>
</div>
</div>
</template>