|
14 | 14 | <a href="{{ path('app_icons') }}">UX Icons</a> / |
15 | 15 | <a href="{{ path('app_icon_collection', {prefix: prefix}) }}">{{ collection.name }}</a> |
16 | 16 | </p> |
17 | | - <h1 class="text-center ubuntu mt-2">Icon <code>{{ fullName }}</code></h1> |
| 17 | + <h1 class="text-center ubuntu mt-2"><code style="--bs-code-color: var(--color)">{{ prefix }}:</code><code>{{ name }}</code></h1> |
| 18 | + <div style="font-size: 1rem; line-height: 1.75rem;" class="mt-4 text-center"> |
| 19 | + <p> |
| 20 | + {% if collection.total|default %} |
| 21 | + <span> |
| 22 | + <span>Icon Set</span> |
| 23 | + <code> |
| 24 | + {{ collection.name }} |
| 25 | + </code> |
| 26 | + </span> |
| 27 | + {% endif %} |
| 28 | + {% if collection.total|default %} |
| 29 | + <span> |
| 30 | + <span>Icons</span> |
| 31 | + <code> |
| 32 | + {{ collection.total }} |
| 33 | + </code> |
| 34 | + </span> |
| 35 | + {% endif %} |
| 36 | + {% if categories|default %} |
| 37 | + <span> |
| 38 | + <span>Categories</span> |
| 39 | + <code> |
| 40 | + {{ categories|length }} |
| 41 | + </code> |
| 42 | + </span> |
| 43 | + {% endif %} |
| 44 | + {% if collection.license.url|default %} |
| 45 | + <span> |
| 46 | + <span>License</span> |
| 47 | + <code> |
| 48 | + <a href="{{ collection.license.url }}" rel="external nofollow"> |
| 49 | + {{ collection.license.title }} |
| 50 | + </a> |
| 51 | + </code> |
| 52 | + </span> |
| 53 | + {% endif %} |
| 54 | + </p> |
| 55 | + </div> |
18 | 56 | </div> |
19 | 57 | </div> |
20 | 58 |
|
21 | | - <div> |
22 | 59 |
|
23 | | - </div> |
| 60 | + <style> |
| 61 | + .icon-preview { |
| 62 | + width: auto; |
| 63 | + height: auto; |
| 64 | + aspect-ratio: 1; |
| 65 | + display: grid; |
| 66 | + place-items: center; |
| 67 | + background-color: var(--bs-secondary-bg-subtle); |
| 68 | + } |
| 69 | + .bg-1 { |
| 70 | + background-image: repeating-linear-gradient(45deg, rgb(0, 0, 0) 25%, transparent 25%, transparent 75%, rgb(0, 0, 0) 75%, rgb(0, 0, 0)), repeating-linear-gradient(45deg, rgb(68, 76, 247) 25%, rgb(229, 229, 247) 25%, rgb(229, 229, 247) 75%, rgb(68, 76, 247) 75%, rgb(68, 76, 247)); |
| 71 | + background-size: 60px 60px; |
| 72 | + background-position: 0px 0px, 30px 30px; |
| 73 | + } |
| 74 | + .bg-2 { |
| 75 | + background-color: rgb(229, 229, 247); |
| 76 | + opacity: 0.8; |
| 77 | + background-image: linear-gradient(rgb(68, 76, 54) 3px, transparent 3px), linear-gradient(to right, rgb(68, 76, 247) 3px, rgb(229, 229, 247) 3px); |
| 78 | + background-size: 60px 60px; |
| 79 | + } |
| 80 | + .bg-3 { |
| 81 | + background-color: grey; |
| 82 | + background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2)), linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2)); |
| 83 | + background-size: 50px 50px; |
| 84 | + background-position: 0 0, 25px 25px; |
| 85 | + } |
| 86 | + .bg-4 { |
| 87 | +background-image: radial-gradient(currentColor 2px, transparent 2px); |
| 88 | + background-size: calc(9 * 2px) calc(9 * 2px); |
| 89 | + } |
| 90 | + .bg-5 { |
| 91 | +background-color: rgb(229, 229, 247); |
| 92 | + opacity: 0.8; |
| 93 | + background-image: linear-gradient(rgb(68, 76, 64) 3px, transparent 3px), linear-gradient(to right, rgb(68, 76, 65) 3px, rgb(229, 229, 247) 3px); |
| 94 | + background-size: 60px 60px; |
| 95 | + } |
| 96 | + .bg-6 { |
| 97 | +background-image: linear-gradient(#727272 1.1px,transparent 1.1px),linear-gradient(to right,#444444 1.1px,#fffbdd 1.1px); |
| 98 | + background-size: 22px 22px; |
| 99 | + } |
| 100 | + .bg-7 { |
| 101 | + background: #fff; |
| 102 | + } |
| 103 | + .bg-8 { |
| 104 | + background: #000; |
| 105 | + } |
| 106 | + .icon-preview svg { |
| 107 | + width: 80%; |
| 108 | + height: 80%; |
| 109 | + } |
| 110 | + </style> |
| 111 | + |
24 | 112 |
|
25 | 113 | <div class="container-fluid container-xxl px-4 pt-4 px-md-5 pt-md-5"> |
26 | | - {{ svg|raw }} |
27 | 114 |
|
28 | | - {{ dump(collection) }} |
29 | | - </div> |
| 115 | + |
| 116 | + <div class="row"> |
| 117 | + |
| 118 | + <div class="col-4"> |
| 119 | + <div class="icon-preview bg-1" style=""> |
| 120 | + {{ svg|raw }} |
| 121 | + </div> |
| 122 | + </div> |
| 123 | + |
| 124 | + <div class="col-8"> |
| 125 | + |
| 126 | + <div style="display:grid; grid-template-columns: repeat(8, 1fr);"> |
| 127 | + <div class="icon-preview bg-2" style=""> |
| 128 | + {{ svg|raw }} |
| 129 | + </div> |
| 130 | + <div class="icon-preview bg-2" style=""> |
| 131 | + {{ svg|raw }} |
| 132 | + </div> |
| 133 | + <div class="icon-preview bg-2" style=""> |
| 134 | + {{ svg|raw }} |
| 135 | + </div> |
| 136 | + <div class="icon-preview bg-2" style=""> |
| 137 | + {{ svg|raw }} |
| 138 | + </div> |
| 139 | + <div class="icon-preview bg-2" style=""> |
| 140 | + {{ svg|raw }} |
| 141 | + </div> |
| 142 | + <div class="icon-preview bg-2" style=""> |
| 143 | + {{ svg|raw }} |
| 144 | + </div> |
| 145 | + <div class="icon-preview bg-2" style=""> |
| 146 | + {{ svg|raw }} |
| 147 | + </div> |
| 148 | + </div> |
| 149 | + |
| 150 | + <div> |
| 151 | + <pre> |
| 152 | + <code>{{ ('<' ~ 'twig:UX:Icon name="' ~ fullName ~ '" />')|e }}</code> |
| 153 | + </pre> |
| 154 | + </div> |
| 155 | + |
| 156 | + <div> |
| 157 | + <pre> |
| 158 | + <code>{{ ('{{ ux_icon' ~ '("' ~ fullName ~ '") }}')|e }}</code> |
| 159 | + </pre> |
| 160 | + </div> |
| 161 | + |
| 162 | + <div class="d-flex justify-content-center "> |
| 163 | + <twig:TerminalCommand command="symfony console ux:icons:import {{ fullName }}" /> |
| 164 | + </div> |
| 165 | + |
| 166 | + </div> |
| 167 | + |
| 168 | + </div> |
| 169 | + |
| 170 | + <div class="col-4"> |
| 171 | + <div class="d-grid"> |
| 172 | + <div> |
| 173 | + <div class="icon-preview bg-2" style=""> |
| 174 | + {{ svg|raw }} |
| 175 | + </div> |
| 176 | + <div class="icon-preview bg-3" style=""> |
| 177 | + {{ svg|raw }} |
| 178 | + </div> |
| 179 | + <div class="icon-preview bg-2" style=""> |
| 180 | + {{ svg|raw }} |
| 181 | + </div> |
| 182 | + <div class="icon-preview bg-3" style=""> |
| 183 | + {{ svg|raw }} |
| 184 | + </div> |
| 185 | + </div> |
| 186 | + <div> |
| 187 | + <div class="icon-preview bg-4" style="width: 25%;"> |
| 188 | + {{ svg|raw }} |
| 189 | + </div> |
| 190 | + <div class="icon-preview bg-5" style="width: 25%;"> |
| 191 | + {{ svg|raw }} |
| 192 | + </div> |
| 193 | + <div class="icon-preview bg-6" style="width: 25%;"> |
| 194 | + {{ svg|raw }} |
| 195 | + </div> |
| 196 | + <div class="icon-preview bg-7" style="width: 25%;"> |
| 197 | + {{ svg|raw }} |
| 198 | + </div> |
| 199 | + </div> |
| 200 | + </div> |
| 201 | + </div> |
| 202 | + |
| 203 | + <div class="col-4"> |
| 204 | + |
| 205 | + |
| 206 | + <div class="d-flex justify-content-center "> |
| 207 | + |
| 208 | + </div> |
| 209 | + </div> |
| 210 | + </div> |
| 211 | + |
| 212 | + <div style="display: grid;"> |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
30 | 221 |
|
31 | 222 |
|
32 | | - <div class="d-flex justify-content-center "> |
33 | | - <twig:TerminalCommand command="symfony console ux:icons:import {{ fullName }}" /> |
34 | 223 | </div> |
35 | 224 |
|
| 225 | + |
| 226 | + </div> |
| 227 | + |
| 228 | + {% set svg %} |
| 229 | + <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cloud-moon" viewBox="0 0 16 16"> |
| 230 | + <path d="M7 8a3.5 3.5 0 0 1 3.5 3.555.5.5 0 0 0 .625.492A1.503 1.503 0 0 1 13 13.5a1.5 1.5 0 0 1-1.5 1.5H3a2 2 0 1 1 .1-3.998.5.5 0 0 0 .509-.375A3.5 3.5 0 0 1 7 8m4.473 3a4.5 4.5 0 0 0-8.72-.99A3 3 0 0 0 3 16h8.5a2.5 2.5 0 0 0 0-5z"/> |
| 231 | + <path d="M11.286 1.778a.5.5 0 0 0-.565-.755 4.595 4.595 0 0 0-3.18 5.003 5.5 5.5 0 0 1 1.055.209A3.6 3.6 0 0 1 9.83 2.617a4.593 4.593 0 0 0 4.31 5.744 3.58 3.58 0 0 1-2.241.634q.244.477.394 1a4.59 4.59 0 0 0 3.624-2.04.5.5 0 0 0-.565-.755 3.593 3.593 0 0 1-4.065-5.422z"/> |
| 232 | + </svg> |
| 233 | + {% endset %} |
| 234 | + |
36 | 235 | <div class="container-fluid container-xxl px-4 pt-4 px-md-5 pt-md-5"> |
37 | | - <h2>Icon details</h2> |
38 | | - <p>Prefix: <code>{{ prefix }}</code></p> |
39 | | - <p>Name: <code>{{ name }}</code></p> |
40 | | - <p>Full name: <code>{{ fullName }}</code></p> |
41 | | - <p>Collection: <code>{{ collection.name }}</code></p> |
42 | | - <p>Category: <code>{{ category|default }}</code></p> |
43 | | - <p>Tags: <code>{{ tags|default([])|join(', ') }}</code></p> |
| 236 | + {{ svg|raw }} |
| 237 | + |
| 238 | + {{ dump(collection) }} |
44 | 239 | </div> |
45 | 240 |
|
46 | 241 |
|
| 242 | + |
47 | 243 | <div> |
48 | 244 |
|
49 | 245 |
|
|
0 commit comments