-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (75 loc) · 2.53 KB
/
Copy pathindex.html
File metadata and controls
81 lines (75 loc) · 2.53 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
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: fullscreen
class: homepage
---
{% assign ordered_pages = site.lessons | sort:"lesson_number" %}
<div class="lessons">
{%- for lesson in ordered_pages -%}
<a class="lesson-picker" href="{{ lesson.url }}">
<div class="wrapper d-flex align-items-center">
<div class="mr-auto">
<span>Lesson {{ lesson.lesson_number }}</span>
<strong>{{ lesson.title }}</strong>
</div>
<img src="/assets/images/lessons/{{ lesson.title|slugify }}.png"/>
</div>
</a>
{%- endfor -%}
</div>
<div class="wrapper">
<h1>Examples</h1>
<p>Use these example Processing programs to learn more about processing</p>
<div class="d-flex justify-content-between">
{% assign items_grouped = site.examples | group_by: 'difficulty' %}
{% for group in items_grouped %}
<div>
<h3>{{group.name|capitalize}}</h3>
{% for example in group.items %}
<div>
<a href="{{example.url }}">{{ example.title }}</a>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<h1>Reference</h1>
<p>Learn more about the functions in Processing</p>
{% assign items_grouped = site.references | group_by: 'category' %}
{% for group in items_grouped %}
<h3>{{group.name}}</h3>
<table>
{% for reference in group.items %}
<tr>
<td><a href="{{ reference.url }}">{{ reference.title }}</a></td>
<td>{{ reference.summary }}</td>
</tr>
{% endfor %}
</table>
{% endfor %}
<h1>Books</h1> <p>Download a PDF copy of the lessons</p>
<div class="books">
<div>
<a class="book" href="/assets/pdf/Lessons.pdf">
<img src="/assets/images/book.png"/>
All lessons (PDF)
</a>
<a href="/lessons/print">(HTML)</a>
</div>
<div>
<a class="book" href="/assets/pdf/InstructorWorksheet.pdf">
<img src="/assets/images/instructors-worksheet.png"/>
Instructor worksheet (PDF)
</a>
<a href="/lessons/worksheet">(HTML)</a>
</div>
</div>
</div>
<script type="text/javascript">
document.querySelectorAll('.lesson-picker').forEach(function(el) {
el.addEventListener('click', function(e) {
e.currentTarget.classList.add('active');
});
});
</script>