2024-02-27 21:43:37 -05:00
|
|
|
package emojy
|
|
|
|
|
2024-05-21 12:28:25 -04:00
|
|
|
templ (p *EmojyPlugin) listTempl(emojy []EmojyCount) {
|
2024-05-17 11:27:46 -04:00
|
|
|
<h1>Emojy</h1>
|
|
|
|
|
|
|
|
@p.emojyNav()
|
|
|
|
|
2024-05-21 12:28:25 -04:00
|
|
|
<div class="row">
|
|
|
|
for _, e := range emojy {
|
|
|
|
<div class="col-xs">
|
|
|
|
<div class="box">@p.listItem(e)</div>
|
|
|
|
</div>
|
|
|
|
}
|
2024-02-28 10:25:43 -05:00
|
|
|
</div>
|
2024-05-21 12:28:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
templ (p *EmojyPlugin) listItem(e EmojyCount) {
|
|
|
|
<article
|
|
|
|
style="width: 100px">
|
|
|
|
<img src={ e.URL }
|
|
|
|
style="max-height: 100px"
|
|
|
|
style="max-width: 100px"
|
|
|
|
alt={ e.Emojy }
|
|
|
|
/>
|
|
|
|
<footer>
|
|
|
|
{ e.Emojy }
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
}
|