-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorials.html
More file actions
129 lines (116 loc) · 5.82 KB
/
Copy pathtutorials.html
File metadata and controls
129 lines (116 loc) · 5.82 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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<script src="./js/include.js" charset="utf-8"></script>
<script src="./includes/head.js" charset="utf-8"></script>
</head>
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-90298578-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-90298578-1');
</script>
<body>
<script src="./includes/navbar.js" charset="utf-8"></script>
<div id="index-banner">
<div class="background" style="background:url(media/3D.jpg) no-repeat center center fixed; background-size: cover;"></div>
<div class="content">
<div style="width: 90%">
<h1 class="header mob center white-text"><b>tutorials</b></h1>
<h4 class="header mob light center white-text">Discover tools to bring your ideas to life!</h4>
<div style="margin-top: 4em" class="row center">
<div id="tutorialCategoriesMenu" class="tutorial-categories-menu"></div>
</div>
<div class="row center" style="margin-top: 1em;">
<div id="tutorialSearchRoot"></div>
</div>
</div>
</div>
</div>
<div class="main">
<div class="container" id="tutorials-list">
<h4 style="margin-top:60px" class="red-text"><b>Tutorials</b></h4>
<div id="tutorialsRoot"></div>
<div class="row center" style="margin-top: 2em;">
<div class="tutorial-categories-menu"></div>
</div>
</div>
</div>
<script id="tutorial-categories-template" type="text/x-handlebars-template">
{{#if hasCategories}}
<p>
{{#each categories}}
<a
href="#{{anchorId}}"
data-category-id="{{id}}"
data-color="{{color}}"
class="btn-large badge waves-effect waves-light tutorial-category-btn {{#ifEquals id ../selectedCategoryId}}active{{/ifEquals}}"
style="padding: 5; margin:10px; border-width:2px; border-style:solid; background-color: white;"
>{{name}}</a>
{{/each}}
</p>
{{else}}
<p class="white-text" style="font-size:1.1rem; line-height:1.8rem;">{{ui.menuNoCategoriesLabel}}</p>
{{/if}}
</script>
<script id="tutorials-template" type="text/x-handlebars-template">
{{#if hasCategories}}
<h5 id="{{headingAnchorId}}" class="grey-text text-darken-3"><b>{{headingLabel}}</b></h5>
{{#if hasTutorials}}
{{#each tutorialRows}}
<div class="row">
{{#each this}}
<div class="col s12 m6 l4">
<article id="{{anchorId}}" class="card flex-card tutorial-card" data-color="{{cardColor}}">
<div class="card-content">
<span class="card-title grey-text text-darken-4">{{name}}</span>
<div class="card-tags">
{{#if machines.length}}
{{#each machines}}
<span class="chip">{{this}}</span>
{{/each}}
{{/if}}
{{#if courses.length}}
{{#each courses}}
<span class="chip">{{this}}</span>
{{/each}}
{{/if}}
{{#if software.length}}
{{#each software}}
<span class="chip">{{this}}</span>
{{/each}}
{{/if}}
</div>
<p class="card-summary">{{summary}}</p>
</div>
<div class="card-action">
<a class="btn waves-effect waves-light courses-cta tutorial-cta" href="{{notionUrl}}" target="_blank" rel="noopener noreferrer" data-color="{{cardColor}}">{{../../ui.ctaLabel}}</a>
</div>
</article>
</div>
{{/each}}
</div>
{{/each}}
{{else}}
<p class="grey-text text-darken-1 flow-text">{{noTutorialsMessage}}</p>
{{/if}}
{{else}}
<p class="grey-text text-darken-1 flow-text">{{ui.noCategoriesLabel}}</p>
{{/if}}
</script>
<script src="includes/footer.js" charset="utf-8"></script>
<script src="includes/scripts.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/handlebars@4.7.8/dist/handlebars.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/fuse.js@7.0.0/dist/fuse.min.js" charset="utf-8"></script>
<script>
if (typeof Handlebars !== 'undefined') {
Handlebars.registerHelper('ifEquals', function (left, right, options) {
return left === right ? options.fn(this) : options.inverse(this);
});
}
</script>
<script src="./js/tutorials.js" charset="utf-8"></script>
</body>
</html>