diff --git a/internal/templates/studio.templ b/internal/templates/studio.templ new file mode 100644 index 0000000..4f87ccc --- /dev/null +++ b/internal/templates/studio.templ @@ -0,0 +1,116 @@ +package templates + +import "mal/internal/jikan" +import "mal/internal/shared/ui" +import "fmt" + +templ StudioDetails(producer jikan.ProducerResponse, animes []jikan.Anime, hasNext bool, nextPage int) { + @Layout("mal - "+getProducerName(producer), true) { +
+ Established: { formatEstablishedDate(producer.Data.Established) } +
+ } + if producer.Data.Count > 0 { ++ { fmt.Sprintf("%d anime", producer.Data.Count) } +
+ } +{ producer.Data.About }
+ } +