{-# LANGUAGE OverloadedStrings #-} module Server.Website.Views.NotFound ( displayNotFoundHome ) where import Server.Core import Server.Website.Views.Core import qualified Data.Text as T import qualified Text.Blaze as B import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A displayNotFoundHome :: ServerConfiguration -> Maybe UserIdentity -> H.Html displayNotFoundHome :: ServerConfiguration -> Maybe UserIdentity -> Html displayNotFoundHome ServerConfiguration serverConfiguration Maybe UserIdentity userIdentityMaybe = do Html H.docType Html -> Html H.html (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h B.! AttributeValue -> Attribute A.lang (String -> AttributeValue H.stringValue String "en-us") (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do Html -> Html H.head (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do Html -> Html H.title (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ Text -> Html forall a. ToMarkup a => a -> Html H.toHtml (Text "Not found :: lojban.io" :: T.Text) Html includeUniversalStylesheets Html includeUniversalScripts String -> Html includeInternalStylesheet String "notfound.css" Html -> Html H.body (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do ServerConfiguration -> Maybe UserIdentity -> TopbarCategory -> Html displayTopbar ServerConfiguration serverConfiguration Maybe UserIdentity userIdentityMaybe TopbarCategory TopbarNone Html -> Html H.div (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h B.! AttributeValue -> Attribute A.class_ (String -> AttributeValue H.stringValue String "main") (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do Html -> Html H.div (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h B.! AttributeValue -> Attribute A.class_ (Text -> AttributeValue H.textValue Text "header") (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ do Html -> Html H.div (Html -> Html) -> Attribute -> Html -> Html forall h. Attributable h => h -> Attribute -> h B.! AttributeValue -> Attribute A.class_ (Text -> AttributeValue H.textValue Text "header-bg") (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ Text -> Html forall a. ToMarkup a => a -> Html H.toHtml (Text "" :: T.Text) Html -> Html H.h1 (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ Text -> Html forall a. ToMarkup a => a -> Html H.toHtml (Text "Not found" :: T.Text) Html -> Html H.p (Html -> Html) -> Html -> Html forall a b. (a -> b) -> a -> b $ Text -> Html forall a. ToMarkup a => a -> Html H.toHtml (Text "Sorry, this page could not be found." :: T.Text)