From eab83edf0005e572743a260dca048da7e4025aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kuna?= <1282324+codecalm@users.noreply.github.com> Date: Mon, 17 Oct 2022 23:59:47 +0200 Subject: [PATCH] new `tracking` component (#1317) --- src/pages/_data/docs.yml | 3 ++ src/pages/_docs/tracking.md | 33 +++++++++++++++++++ .../_includes/parts/dropdown/months.html | 8 +++++ src/pages/_includes/ui/tracking.html | 14 ++++++++ src/scss/_core.scss | 1 + src/scss/_variables.scss | 5 +++ src/scss/ui/_cards.scss | 6 ++-- src/scss/ui/_tracking.scss | 29 ++++++++++++++++ 8 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 src/pages/_docs/tracking.md create mode 100644 src/pages/_includes/parts/dropdown/months.html create mode 100644 src/pages/_includes/ui/tracking.html create mode 100644 src/scss/ui/_tracking.scss diff --git a/src/pages/_data/docs.yml b/src/pages/_data/docs.yml index 1fe70d22d..2d0be2bd5 100644 --- a/src/pages/_data/docs.yml +++ b/src/pages/_data/docs.yml @@ -147,6 +147,9 @@ components: toasts: title: Toasts url: docs/toasts.html + tracking: + title: Tracking + url: docs/tracking.html tooltips: title: Tooltips url: docs/tooltips.html diff --git a/src/pages/_docs/tracking.md b/src/pages/_docs/tracking.md new file mode 100644 index 000000000..5570739ec --- /dev/null +++ b/src/pages/_docs/tracking.md @@ -0,0 +1,33 @@ +--- +title: Tracking +menu: help.docs.components.tracking +description: Component for visualising activity logs or other monitoring-related data. +--- + +{% capture code %} +{% include ui/tracking.html %} +{% endcapture %} +{% include example.html code=code max-width="20rem" centered=true %} + +{% capture code %} +
+
+
+
Status monitoring
+
+ {% include parts/dropdown/months.html %} +
+
+
+
99.5%
+
+ {% include ui/trending.html value=2 %} +
+
+
+ {% include ui/tracking.html %} +
+
+
+{% endcapture %} +{% include example.html code=code columns=1 %} \ No newline at end of file diff --git a/src/pages/_includes/parts/dropdown/months.html b/src/pages/_includes/parts/dropdown/months.html new file mode 100644 index 000000000..cd101f11f --- /dev/null +++ b/src/pages/_includes/parts/dropdown/months.html @@ -0,0 +1,8 @@ + diff --git a/src/pages/_includes/ui/tracking.html b/src/pages/_includes/ui/tracking.html new file mode 100644 index 000000000..8d7ee0bf4 --- /dev/null +++ b/src/pages/_includes/ui/tracking.html @@ -0,0 +1,14 @@ +{% assign blocks = include.blocks | default: 30 %} +
+ {% for i in (1..blocks) %} + {% if i == 5 or i == 18 %} +
+ {% elsif i == 22 or i == 23 %} +
+ {% elsif i == 14 %} +
+ {% else %} +
+ {% endif %} + {% endfor %} +
\ No newline at end of file diff --git a/src/scss/_core.scss b/src/scss/_core.scss index 8234706a5..9bfa6e4f8 100644 --- a/src/scss/_core.scss +++ b/src/scss/_core.scss @@ -53,6 +53,7 @@ @import "ui/tables"; @import "ui/toasts"; @import "ui/toolbar"; +@import "ui/tracking"; @import "ui/type"; @import "ui/charts"; @import "ui/offcanvas"; diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss index 69258a2bb..cd00126f2 100644 --- a/src/scss/_variables.scss +++ b/src/scss/_variables.scss @@ -693,6 +693,11 @@ $table-sort-desc-bg-image: url("data:image/svg+xml,