{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module WikiMusic.SSR.View.Components.DetailList ( detailList, detailListEntry, ) where import Relude import Text.Blaze.Html import Text.Blaze.Html5 as H import Text.Blaze.Html5.Attributes as A detailListEntry :: Text -> Html -> Html detailListEntry :: Text -> Html -> Html detailListEntry Text key Html val = do Html -> Html H.div (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h ! AttributeValue -> Attribute class_ AttributeValue "flex direction-row gap-small align-items-baseline" (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do Html -> Html dt (Html -> Html) -> (Text -> Html) -> Text -> Html forall b c a. (b -> c) -> (a -> b) -> a -> c . Html -> Html small (Html -> Html) -> (Text -> Html) -> Text -> Html forall b c a. (b -> c) -> (a -> b) -> a -> c . Text -> Html text (Text -> Html) -> Text -> Html forall a b. (a -> b) -> a -> b $ Text key Html -> Html dd (Html -> Html) -> (Html -> Html) -> Html -> Html forall b c a. (b -> c) -> (a -> b) -> a -> c . Html -> Html small (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ Html val detailList :: Html -> Html detailList :: Html -> Html detailList = Html -> Html dl (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h ! AttributeValue -> Attribute class_ AttributeValue "margin-top-medium flex direction-column gap-small align-items-baseline"