mirror of
https://github.com/srid/ema.git
synced 2024-11-29 09:25:14 +03:00
Fix accidentaly paste in ex02, etc.
This commit is contained in:
parent
8d2a237141
commit
a6a46f9430
@ -47,7 +47,11 @@ render :: Ema.CLI.Action -> UTCTime -> Route -> LByteString
|
||||
render emaAction now r =
|
||||
Tailwind.layout emaAction (H.title "Clock") $
|
||||
H.div ! A.class_ "container mx-auto" $ do
|
||||
H.div ! A.class_ "border-t-1 p-2 tex{-# OPTIONS_GHC -fno-warn-orphans #-}t-center" $ do
|
||||
H.div ! A.class_ "mt-8 p-2 text-center" $ do
|
||||
case r of
|
||||
Index ->
|
||||
"The current date & time is: "
|
||||
OnlyTime ->
|
||||
"The current time is: "
|
||||
H.pre ! A.class_ "text-6xl font-bold mt-2" $ do
|
||||
H.span ! A.class_ ("text-" <> randomColor now <> "-500") $ do
|
||||
|
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
{-# LANGUAGE TypeApplications #-}
|
||||
|
||||
-- | TODO: Refactor this module
|
||||
module Ema.Server where
|
||||
|
||||
import Control.Concurrent.Async (race)
|
||||
|
Loading…
Reference in New Issue
Block a user