{% import "../helpers/general.html" %} {% import "../components/link.html" %} {% import "../components/button.html" %} {% import "../components/image-icon.html" %} {% import "../components/text.html" %} {% macro blurbComponent(data) %} {% set args = { "layout" : { "media_type" : "none", "link_type" : "buttons", "blurb_bg" : false, "border_color" : false, "rounded" : true, "inline" : false, "add_hover" : false, "add_shadow" : false, "equal_height" : false }, "icon" : { "icon_type" : "fa", "fa_code" : "", "fa_color" : "", "image" : {} }, "image" : {}, "animated_number" : { "prefix" : "", "number" : "", "suffix" : "", "subtitle" : "" }, "text" : { "heading" : "", "description" : "" }, "link" : {}, "buttons" : [], "class" : "" } %} {% set args = deepUpdate(args,data)|fromjson %} {% set item_class = ['blurb-item','w-100'] %} {% do args.layout.equal_height ? item_class.append('d-md-flex h-100') : '' %} {% do args.layout.add_hover ? item_class.append('has-hover-effect') : '' %}