This commit is contained in:
Hazel Noack 2025-07-03 17:27:10 +02:00
parent bcf97a88e0
commit f23e48700b
3 changed files with 13 additions and 4 deletions

View File

@ -17,10 +17,12 @@
<input name="{{ .SearchInputName }}" type="text" class="grid-item" class="search" placeholder="{{ .SearchPlaceholder }}" />
<div class="store-cards">
<a target="_blank" href="#" class="card">
<img class="card-image" src="assets/girl_juice.png"/>
<b>name</b>
{{range $Store := .Stores }}
<a target="_blank" href="{{ $Store.Url }}" class="card">
<h3>{{ $Store.Name }}</h3>
<p>{{ $Store.Description }}</p>
</a>
{{- end }}
</div>
</form>

View File

@ -1,6 +1,8 @@
package rendering
import (
"fmt"
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
)
@ -42,6 +44,7 @@ func (rc *RenderingConfig) LoadDiyHrt(listings []diyhrt.Listing) {
stores := make([]diyhrt.Store, 0)
for _, listing := range listings {
fmt.Println(listing)
if _, ok := existingStores[listing.Store.Id]; ok {
continue
}

View File

@ -41,7 +41,11 @@ func getIndex(c echo.Context) error {
func main() {
fmt.Println("running transfem startpage")
FetchDiyHrt()
err := FetchDiyHrt()
if err != nil {
fmt.Println(err)
}
fmt.Println(CurrentRenderingConfig.Stores)
e := echo.New()
e.Static("/assets", "frontend/assets")