features/bootstrapping #1

Merged
jtom38 merged 24 commits from features/bootstrapping into main 2024-06-02 19:55:25 -07:00
Showing only changes of commit 8d83d6f545 - Show all commits

View File

@ -1,15 +1,27 @@
package articles
import (
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
)
templ List(model models.ListArticlesViewModel) {
@layout.WithTemplate() {
for _, item := range model.Items {
{ item.Title }
}
<div>hi </div>
}
@layout.WithTemplate() {
for _, item := range model.Items {
<div class="card">
<div class="card-image">
<figure class="is-4by3">
<img src={ item.Thumbnail }/>
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-content">
<a href={ templ.SafeURL(item.Url) }>{ item.Title }</a>
</div>
</div>
</div>
</div>
}
}
}