diff --git a/web/components/anime/relations.templ b/web/components/anime/relations.templ new file mode 100644 index 0000000..f748b86 --- /dev/null +++ b/web/components/anime/relations.templ @@ -0,0 +1,38 @@ +package anime + +import ( + "fmt" + "mal/integrations/jikan" + "mal/web/components" +) + +templ RelationsList(relations []jikan.RelationEntry) { + if len(relations) > 1 { +
No related anime found.
+ } +} + +func relationCardClass(rel jikan.RelationEntry) string { + return "relation-card min-w-0 flex flex-col bg-transparent text-inherit no-underline" +}