diff options
Diffstat (limited to 'pydis_site/templates/resources/resource_box.html')
-rw-r--r-- | pydis_site/templates/resources/resource_box.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pydis_site/templates/resources/resource_box.html b/pydis_site/templates/resources/resource_box.html new file mode 100644 index 00000000..af7c8d65 --- /dev/null +++ b/pydis_site/templates/resources/resource_box.html @@ -0,0 +1,22 @@ +{% load as_icon %} + +<div class="box" style="max-width: 800px;"> + {% if 'title_url' in resource %} + <a href="{{ resource.title_url }}"> + {% include "resources/resource_box_header.html" %} + </a> + {% else %} + {% include "resources/resource_box_header.html" %} + {% endif %} + + <p class="is-italic">{{ resource.description|safe }}</p> + + {# Icons #} + {% for icon in resource.urls %} + <span class="icon is-size-4 is-medium" style="margin: 5px;"> + <a href="{{ icon.url }}"> + <i class="{{ icon.icon|as_icon }} is-size-3 resource-icon is-{{ icon.color }}"></i> + </a> + </span> + {% endfor %} +</div> |