NixLabConnectionconnecting
ProjectsProject
web /

dreamstop.openfp.net

publicguest

dreamstop.openfp.net, the website and user manual of dreamstop, a language for continuous disambiguation

git clone git@nixlab.openfp.net:web/dreamstop.openfp.net.git
d2d0ba7913c358de0bb92cc4a412fa81480e9f54dreamstop-openfp-net-web/src/Site/Page.hs
-- | What dreamstop.openfp.net says outside its body: the title, the preview card
-- a link to it shows, and its files.
--
-- @since 0.1.0.0
module Site.Page
  ( page
  , name
  , tagline
  , description
  ) where

import           DesignKit.Page (Page (MkPage, pageBundle, pageCard, pageCsp, pageDescription, pageIcon, pageLang, pageStylesheets, pageTitle),
                                 PreviewCard (MkPreviewCard, cardDescription, cardHeight, cardImage, cardImageAlt, cardSiteName, cardTitle, cardUrl, cardWidth),
                                 defaultCsp)
import           Miso.String    (MisoString)

-- | The document head, with the kit's stylesheet before the page's own.
--
-- @since 0.1.0.0
page :: Page
page =
  MkPage
    { pageLang = "en"
    , pageTitle = name <> " — " <> tagline
    , pageDescription = description
    , pageIcon = Just "dreamstop.svg"
    , pageStylesheets = ["design-kit/design-kit.css", "dreamstop.css", "codepoints.css"]
    , pageBundle = "site.js"
    , pageCard =
        Just
          MkPreviewCard
            { cardSiteName = name
            , cardTitle = name <> " — " <> tagline
            , cardDescription = description
            , cardUrl = "https://dreamstop.openfp.net/"
            , cardImage = "https://dreamstop.openfp.net/og.png"
            , cardImageAlt = name <> " — " <> tagline
            , cardWidth = 1200
            , cardHeight = 627
            }
    , pageCsp = defaultCsp
    }

-- | The name of the language.
--
-- @since 0.1.0.0
name :: MisoString
name = "dreamstop"

-- | The line after the name, in the title and the heading.
--
-- @since 0.1.0.0
tagline :: MisoString
tagline = "a language for disambiguating text"

-- | The description in the head and on the card.
--
-- @since 0.1.0.0
description :: MisoString
description = "dreamstop is a language for disambiguating text. A program marks up every clause with codepoints, and authors rewrite any sentence that is not clear."