From d96c9230b60576eac4f58fc8c948b9d6b900018b Mon Sep 17 00:00:00 2001 From: codecalm Date: Fri, 28 Feb 2020 13:23:23 +0100 Subject: [PATCH] icons --- Gemfile | 1 + Gemfile.lock | 5 +++ _config.yml | 3 ++ _icons/activity.svg | 5 +++ _icons/alert-circle.svg | 7 +++++ _icons/alert-octagon.svg | 7 +++++ _icons/align-left.svg | 8 +++++ _icons/align-right.svg | 8 +++++ _icons/arrow-narrow-down.svg | 7 +++++ _icons/arrow-narrow-left.svg | 7 +++++ _icons/arrow-narrow-right.svg | 7 +++++ _icons/arrow-narrow-up.svg | 7 +++++ _icons/circle.svg | 5 +++ _icons/minus.svg | 5 +++ _icons/plus.svg | 6 ++++ _icons/square.svg | 5 +++ _icons/x.svg | 6 ++++ assets/bg.svg | 8 +++-- assets/style.scss | 7 +++++ index.html | 59 +++++++++++++++++++++++++---------- 20 files changed, 153 insertions(+), 20 deletions(-) create mode 100644 _icons/activity.svg create mode 100644 _icons/alert-circle.svg create mode 100644 _icons/alert-octagon.svg create mode 100644 _icons/align-left.svg create mode 100644 _icons/align-right.svg create mode 100644 _icons/arrow-narrow-down.svg create mode 100644 _icons/arrow-narrow-left.svg create mode 100644 _icons/arrow-narrow-right.svg create mode 100644 _icons/arrow-narrow-up.svg create mode 100644 _icons/circle.svg create mode 100644 _icons/minus.svg create mode 100644 _icons/plus.svg create mode 100644 _icons/square.svg create mode 100644 _icons/x.svg diff --git a/Gemfile b/Gemfile index 0b2649121..6537c060d 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,4 @@ source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } gem "jekyll", "~> 4.0" +gem "jekyll-last-modified-at" diff --git a/Gemfile.lock b/Gemfile.lock index 1bc905994..d4f671bd4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,6 +29,9 @@ GEM rouge (~> 3.0) safe_yaml (~> 1.0) terminal-table (~> 1.8) + jekyll-last-modified-at (1.2.1) + jekyll (>= 3.7, < 5.0) + posix-spawn (~> 0.3.9) jekyll-sass-converter (2.1.0) sassc (> 2.0.1, < 3.0) jekyll-watch (2.2.1) @@ -43,6 +46,7 @@ GEM mercenary (0.3.6) pathutil (0.16.2) forwardable-extended (~> 2.6) + posix-spawn (0.3.13) public_suffix (4.0.3) rb-fsevent (0.10.3) rb-inotify (0.10.1) @@ -60,6 +64,7 @@ PLATFORMS DEPENDENCIES jekyll (~> 4.0) + jekyll-last-modified-at BUNDLED WITH 1.17.3 diff --git a/_config.yml b/_config.yml index f5b429cf7..8cfedc15a 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,6 @@ +plugins: + - jekyll-last-modified-at + exclude: - .idea/* diff --git a/_icons/activity.svg b/_icons/activity.svg new file mode 100644 index 000000000..6505455c3 --- /dev/null +++ b/_icons/activity.svg @@ -0,0 +1,5 @@ +--- +--- + + + diff --git a/_icons/alert-circle.svg b/_icons/alert-circle.svg new file mode 100644 index 000000000..508651a1a --- /dev/null +++ b/_icons/alert-circle.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/alert-octagon.svg b/_icons/alert-octagon.svg new file mode 100644 index 000000000..f6dc28729 --- /dev/null +++ b/_icons/alert-octagon.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/align-left.svg b/_icons/align-left.svg new file mode 100644 index 000000000..752741789 --- /dev/null +++ b/_icons/align-left.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/_icons/align-right.svg b/_icons/align-right.svg new file mode 100644 index 000000000..0b6b22c12 --- /dev/null +++ b/_icons/align-right.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/_icons/arrow-narrow-down.svg b/_icons/arrow-narrow-down.svg new file mode 100644 index 000000000..69551bc4f --- /dev/null +++ b/_icons/arrow-narrow-down.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/arrow-narrow-left.svg b/_icons/arrow-narrow-left.svg new file mode 100644 index 000000000..94bc7a8cc --- /dev/null +++ b/_icons/arrow-narrow-left.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/arrow-narrow-right.svg b/_icons/arrow-narrow-right.svg new file mode 100644 index 000000000..447dd852a --- /dev/null +++ b/_icons/arrow-narrow-right.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/arrow-narrow-up.svg b/_icons/arrow-narrow-up.svg new file mode 100644 index 000000000..41c499711 --- /dev/null +++ b/_icons/arrow-narrow-up.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/_icons/circle.svg b/_icons/circle.svg new file mode 100644 index 000000000..6132e85d4 --- /dev/null +++ b/_icons/circle.svg @@ -0,0 +1,5 @@ +--- +--- + + + diff --git a/_icons/minus.svg b/_icons/minus.svg new file mode 100644 index 000000000..8ab02a187 --- /dev/null +++ b/_icons/minus.svg @@ -0,0 +1,5 @@ +--- +--- + + + diff --git a/_icons/plus.svg b/_icons/plus.svg new file mode 100644 index 000000000..f114d0f3a --- /dev/null +++ b/_icons/plus.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/_icons/square.svg b/_icons/square.svg new file mode 100644 index 000000000..159a0b155 --- /dev/null +++ b/_icons/square.svg @@ -0,0 +1,5 @@ +--- +--- + + + diff --git a/_icons/x.svg b/_icons/x.svg new file mode 100644 index 000000000..84f8f6f1e --- /dev/null +++ b/_icons/x.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/assets/bg.svg b/assets/bg.svg index 389aca8ad..df8ec8bb9 100644 --- a/assets/bg.svg +++ b/assets/bg.svg @@ -2,9 +2,9 @@ --- - - - + + + @@ -13,6 +13,8 @@ + + {% for i in (1..24) %} diff --git a/assets/style.scss b/assets/style.scss index a2dfe167a..425b2875c 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -69,6 +69,13 @@ a { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .1); } +.icon-title { + font-size: 1.25rem; + line-height: 1; + margin: 0 0 3rem; + font-weight: 600; +} + .icon-preview-wrap { position: relative; diff --git a/index.html b/index.html index 24421652d..4e298add6 100644 --- a/index.html +++ b/index.html @@ -10,14 +10,21 @@ Tabler Icons + +
- {% assign last-icon = site.icons | sort: date | reverse | first %} - {% capture last-icon %} - {% include icon.html name=last-icon.slug %} + {% assign first-icon = site.icons | reverse | first %} + {% assign slug = first-icon.slug %} + {% capture first-icon %} + {% include icon.html name=slug %} {% endcapture %}
@@ -25,47 +32,49 @@
- {{ last-icon }} + {{ first-icon }}
+

{{ slug }}

+
- {{ last-icon }} + {{ first-icon }}
- {{ last-icon }} + {{ first-icon }}
-
{{ last-icon }}
-
{{ last-icon }}
+
{{ first-icon }}
+
{{ first-icon }}
@@ -74,8 +83,8 @@
{% for icon in site.icons %} - - {% assign name = icon.slug %} + {% assign name = icon.slug %} + {% include icon.html name=name %} {% endfor %} @@ -86,10 +95,26 @@