From f6056f4f7e241975acd089224142e95b30dc9917 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 27 Mar 2019 15:51:19 +0100 Subject: [PATCH] UI: New mixin component for listing categories. For e.g. Blender Cloud's Learn, Libraries, etc. --- src/templates/mixins/components.pug | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/templates/mixins/components.pug b/src/templates/mixins/components.pug index 3ec25172..8b66064f 100644 --- a/src/templates/mixins/components.pug +++ b/src/templates/mixins/components.pug @@ -84,4 +84,18 @@ mixin timeline(projectid, sortdirection) i.pi-spin.spin +//- Category listing (Learn, Libraries, etc). +mixin category_list_item(title, text, url, image) + .row.pb-2.my-2 + .col-md-3 + a(href=url, title=title) + img.img-fluid(alt=title, src=image) + .col-md-9 + a(href=url, title=title) + h3.font-weight-bold + =title + .lead + =text + if block + block