feat(16-01): add download and chat icon cases to UIIcon switch
- insert case "download" with arrow-down SVG (path + polyline + line) before default case - insert case "chat" with speech-bubble SVG (path) before default case - icon_button_templ.go regenerated via templ generate (gitignored, regenerated at build time)
This commit is contained in:
parent
337c380d6b
commit
a1a3ea8239
1 changed files with 10 additions and 0 deletions
|
|
@ -68,6 +68,16 @@ templ UIIcon(kind string) {
|
|||
<line x1="10" x2="10" y1="11" y2="17"></line>
|
||||
<line x1="14" x2="14" y1="11" y2="17"></line>
|
||||
</svg>
|
||||
case "download":
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
||||
<polyline points="7 10 12 15 17 10"></polyline>
|
||||
<line x1="12" x2="12" y1="15" y2="3"></line>
|
||||
</svg>
|
||||
case "chat":
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"></path>
|
||||
</svg>
|
||||
default:
|
||||
<span aria-hidden="true">{ kind }</span>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue