From 30603f7b512f6fa9adff01f7255f60980d24583e Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 27 Dec 2020 19:23:47 +0100 Subject: [PATCH] users cards --- src/pages/users.html | 67 +++++++++++++++++------------------------ src/scss/ui/_cards.scss | 12 +++++++- 2 files changed, 38 insertions(+), 41 deletions(-) diff --git a/src/pages/users.html b/src/pages/users.html index 106646478..f05ea4a49 100644 --- a/src/pages/users.html +++ b/src/pages/users.html @@ -8,48 +8,35 @@ menu: extra.users ---
- {% for person in site.data.people limit: 18 %} - {% assign progress = forloop.index | random_number: 4, 95 %} - {% assign online_counter = forloop.index | random_number: 1, 10 %} -
-
-
-
-
- {% include ui/avatar.html person=person %} -
-
-

{{ person.full_name }}

-
{{ person.job_title }}
-
+ {% for person in site.data.people limit: 18 %} + {% assign progress = forloop.index | random_number: 4, 95 %} + {% assign online_counter = forloop.index | random_number: 1, 10 %} +
+
+
+ {% include ui/avatar.html size="xl" rounded=true person=person class="mb-3" %} +

{{ person.full_name }}

+
{{ person.job_title }}
- {% if online_counter > 7 %} -
- {% include ui/badge.html text="online" color="green-lt" %} -
- {% elsif online_counter > 5 %} -
- {% include ui/badge.html text="offline" color="gray-lt" %} -
- {% endif %} -
-
-
- {% include ui/progress-description.html value=progress label="Progress" %} -
-
-
- {% include ui/button.html text="Chat" color="white" size="sm" %} - {% include ui/button.html text="Profile" color="white" size="sm" %} -
-
-
-
-
-
- {% endfor %} +
+ {% if forloop.index == 1 %} + Owner + {% elsif forloop.index < 5 %} + Admin + {% else %} + User + {% endif %} +
+
+ +
+
+ {% endfor %}
- {% include ui/pagination.html class="ms-auto" %} + {% include ui/pagination.html class="ms-auto" %}
diff --git a/src/scss/ui/_cards.scss b/src/scss/ui/_cards.scss index df3957369..a9cae226b 100644 --- a/src/scss/ui/_cards.scss +++ b/src/scss/ui/_cards.scss @@ -79,15 +79,25 @@ } .card-btn { + display: flex; + align-items: center; + justify-content: center; padding: $card-spacer-y $card-spacer-x; text-align: center; - background: rgba($primary, .02); transition: .3s background; + border-top: 1px solid $border-color; + flex: 1; + color: inherit; + font-weight: $font-weight-medium; &:hover { text-decoration: none; background: $active-bg; } + + &:not(:first-child) { + border-left: 1px solid $border-color; + } } .card-stacked {