| 1 |
{% extends 'base.html' %} |
| 2 |
{% from 'bootstrap4/utils.html' import render_icon %} |
| 3 |
|
| 4 |
{% block content %} |
| 5 |
<h2>SVG icon</h2> |
| 6 |
<pre>{% raw %}{{ render_icon('heart') }}{% endraw %}</pre> |
| 7 |
Output: {{ render_icon('heart') }} |
| 8 |
|
| 9 |
<h2>SVG icon with custom size</h2> |
| 10 |
<pre>{% raw %}{{ render_icon('heart', 32) }}{% endraw %}</pre> |
| 11 |
Output: {{ render_icon('heart', 32) }} |
| 12 |
|
| 13 |
<h2>SVG icon with custom size and Bootstrap color</h2> |
| 14 |
<pre>{% raw %}{{ render_icon('heart', 25, 'primary') }}{% endraw %}</pre> |
| 15 |
Output: {{ render_icon('heart', 25, 'primary') }} |
| 16 |
|
| 17 |
<h2>SVG icon with custom size and custom color</h2> |
| 18 |
<pre>{% raw %}{{ render_icon('heart', '2em', 'red') }}{% endraw %}</pre> |
| 19 |
Output: {{ render_icon('heart', '2em', 'red') }} |
| 20 |
|
| 21 |
<h2>SVG icon with title and descr</h2> |
| 22 |
<pre>{% raw %}{{ render_icon('heart', title='Heart', desc='A heart.') }}{% endraw %}</pre> |
| 23 |
Output: {{ render_icon('heart', title='Heart', desc='A heart.') }} |
| 24 |
|
| 25 |
<h2>SVG icon with additional classes for styling</h2> |
| 26 |
<pre>{% raw %}{{ render_icon('heart', '2em', classes='text-success bg-light p-2 rounded-lg') }}{% endraw %}</pre> |
| 27 |
Output: {{ render_icon('heart', '4em', classes='text-success bg-light p-2 rounded-lg') }} |
| 28 |
|
| 29 |
<h2>Buttons with SVG icon</h2> |
| 30 |
<a class="btn btn-primary text-white">Download {{ render_icon('arrow-down-circle') }}</a> |
| 31 |
<a class="btn btn-success text-white">Bookmark {{ render_icon('bookmark-star') }}</a> |
| 32 |
|
| 33 |
<h2>Font icon with custom size and Bootstrap color</h2> |
| 34 |
<pre>{% raw %}{{ render_icon('heart', '25px', 'primary', font=True) }}{% endraw %}</pre> |
| 35 |
Output: {{ render_icon('heart', '25px', 'primary', font=True) }} |
| 36 |
|
| 37 |
<h2>Font icon with custom size and custom color</h2> |
| 38 |
<pre>{% raw %}{{ render_icon('heart', '2em', 'red', font=True) }}{% endraw %}</pre> |
| 39 |
Output: {{ render_icon('heart', '2em', 'red', font=True) }} |
| 40 |
|
| 41 |
<h2>Buttons with font icon</h2> |
| 42 |
<a class="btn btn-primary text-white">Download {{ render_icon('arrow-down-circle', font=True) }}</a> |
| 43 |
<a class="btn btn-success text-white">Bookmark {{ render_icon('bookmark-star', font=True) }}</a> |
| 44 |
{% endblock %} |