forked from maban/styleguides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (120 loc) · 4.27 KB
/
index.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
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
130
131
132
133
134
135
136
137
138
139
140
---
layout: page
section: home
type: home
---
<section>
<h1 class="title"><span id="total-resource-count"></span> Website Style Guide Resources</h1>
<ul class="list--inline">
<li class="list__item"><a href="https://github.com/maban/styleguides">GitHub repo</a></li>
<li class="list__item"><a href="https://twitter.com/styleguidesio">Twitter updates</a></li>
<li class="list__item"><a href="/contributors">Contributors</a></li>
</ul>
</section>
<section>
<h1 class="title"><a href="examples">{{site.example-title}}</a></h1>
<p class="lede">{{site.example-description}}</p>
<ul class="resources resource-type-example">
{% assign section = site.resourceexample | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/examples" class="link-view-more">See all {{site.resourceexample | size}} examples…</a>
</section>
<section>
<h1 class="title"><a href="articles">{{site.article-title}}</a></h1>
<p class="lede">{{site.article-description}}</p>
<ul class="resources resource-type-article">
{% assign section = site.resourcearticle | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/articles" class="link-view-more">See all {{site.resourcearticle | size}} articles…</a>
</section>
<section>
<h1 class="title"><a href="books">{{site.book-title}}</a></h1>
<p class="lede">{{site.book-description}}</p>
<ul class="resources resource-type-book">
{% assign section = site.resourcebook | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/books" class="link-view-more">See all {{site.resourcebook | size}} books…</a>
</section>
<section>
<h1 class="title"><a href="podcasts">{{site.podcast-title}}</a></h1>
<p class="lede">{{site.podcast-description}}</p>
<ul class="resources resource-type-podcast">
{% assign section = site.resourcepodcast | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/podcasts" class="link-view-more">See all {{site.resourcepodcast | size}} podcasts…</a>
</section>
<section>
<h1 class="title"><a href="talks">{{site.talk-title}}</a></h1>
<p class="lede">{{site.talk-description}}</p>
<ul class="resources resource-type-talk">
{% assign section = site.resourcetalk | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/talks" class="link-view-more">See all {{site.resourcetalk | size}} talks…</a>
</section>
<section>
<h1 class="title"><a href="tools">{{site.tool-title}}</a></h1>
<p class="lede">{{site.tool-description}}</p>
<ul class="resources resource-type-tool">
{% assign section = site.resourcetool | sort: 'title' %}
{% for item in section %}
{% if item.status == 'recommended' %}
{% include loop-resource.html %}
{% endif %}
{% endfor %}
</ul>
<a href="/tools" class="link-view-more">See all {{site.resourcetool | size}} tools…</a>
</section>
<section>
<h1 class="title">Contributors</h1>
<p class="lede">Resources on this site have been added by the following contributers:</p>
<ul id="people" class="people"></ul>
<p class="lede"><a class="button" href="https://github.com/maban/styleguides/graphs/contributors">View on GitHub</a></p>
<script src="/scripts/contributors.js"></script>
</section>
{% include add.html %}
<script>
var el = document.getElementById("total-resource-count");
function fadeIn(el) {
el.style.opacity = 0;
var tick = function() {
el.style.opacity = +el.style.opacity + 0.01;
if (+el.style.opacity < 1) {
(window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16)
}
};
tick();
}
fadeIn(el);
var total = Number('{{site.resourcearticle | size}}') +
Number('{{site.resourcebook | size}}') +
Number('{{site.resourcepodcast | size}}') +
Number('{{site.resourcetalk | size}}') +
Number('{{site.resourcetool | size}}') +
Number('{{site.resourceexample | size}}');
document.getElementById('total-resource-count').innerHTML = total;
</script>