module Tintin.Domain.Project where import Tintin.Core data Project data Color = Purple | LightGreen | DarkGreen | Blue | DarkBlue | Bronze | DarkOrange | LightOrange | Red | Grey | HexColor Text deriving (Show, Read) data Page = Page { title :: Text , content :: Text , filename :: Text } data Info = Info { name :: Text , synopsis :: Text , color :: Color , githubLink :: Maybe Text , author :: Maybe Text , authorWebsite :: Maybe Text , logoUrl :: Maybe Text , titleFont :: Text , titleFontWeight :: Integer , bodyFont :: Text , pages :: [Page] } data PageRef = PageRef { refTitle :: Text , refFilename :: Text } data Context = Context { prevRef :: Maybe PageRef , nextRef :: Maybe PageRef }