Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _data/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bell: notification
bell-off: notification-off
check: tick
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think eventually we'll want to keep this data somewhere else but this should be fine for now.

4 changes: 3 additions & 1 deletion _includes/icon.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% assign tags = site.data.tags[include.icon.basename] | split: ", " | join " " %}
<li>
<a
href="{{ include.icon.path }}"
class="icon flex flex-row items-center dib pa3 pa4-ns br1 no-underline dark-gray bg-near-white bg-animate hover-bg-light-gray"
download
onclick="ga('send', 'event', 'download', 'click', '{{ include.icon.basename }}');">
<span class="svg flex-none lh-none">{% include_relative {{ include.icon.path }} %}</span>
<span class="ml3 lh-copy f6 f5-ns tc black-60 ellipse">{{ include.icon.basename }}</span>
<span class="icon-name ml3 lh-copy f6 f5-ns tc black-60 ellipse">{{ include.icon.basename }}</span>
<span class="icon-tags dn">{{tags}}</span>
</a>
</li>
7 changes: 6 additions & 1 deletion _includes/icons.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<div class="w-80 mw8 center">
<div class="w-80 mw8 center" id="js-icons">
<input
type="search"
class="search fuzzy-search input-reset w-100 mb3 pv3 ph3 ph4-ns rubik f5 lh-copy bg-white br1 ba b--black-20"
placeholder="Search"
/>
<ul class="icon-grid mv0 pl0 list">
{% for file in site.static_files %}
{% if file.path contains 'dist/icons/' %}
Expand Down
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,12 @@
{% include icons.html %}
{% include footer.html links=page.links %}

<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
<script type="text/javascript">
var list = new List('js-icons', {
valueNames: [ 'icon-name', 'icon-tags' ]
})
</script>

</body>
</html>
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
}

.carbon-img {
flex: 0 0 auto;
display: flex;
align-items: center;
margin-right: 1rem;
Expand Down