aboutsummaryrefslogtreecommitdiff
path: root/client/src/View/NotFound.hs
diff options
context:
space:
mode:
authorJoris2019-10-12 11:23:10 +0200
committerJoris2019-10-12 11:23:10 +0200
commit52331eeadce8d250564851c25fc965172640bc55 (patch)
treee634c6d232d9a28384499fe19caeb80288d05df9 /client/src/View/NotFound.hs
parent7529a18ff0ac443e7f9764b5e2d0f57a5d3a850b (diff)
downloadbudget-52331eeadce8d250564851c25fc965172640bc55.tar.gz
budget-52331eeadce8d250564851c25fc965172640bc55.tar.bz2
budget-52331eeadce8d250564851c25fc965172640bc55.zip
Implement client routing
Diffstat (limited to 'client/src/View/NotFound.hs')
-rw-r--r--client/src/View/NotFound.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/View/NotFound.hs b/client/src/View/NotFound.hs
new file mode 100644
index 0000000..1d4e477
--- /dev/null
+++ b/client/src/View/NotFound.hs
@@ -0,0 +1,20 @@
+module View.NotFound
+ ( view
+ ) where
+
+import qualified Data.Map as M
+import Reflex.Dom (Dynamic, Event, MonadWidget)
+import qualified Reflex.Dom as R
+
+import qualified Common.Msg as Msg
+import qualified Component as Component
+
+view :: forall t m. MonadWidget t m => m ()
+view =
+ R.divClass "notfound" $ do
+ R.text (Msg.get Msg.NotFound_Message)
+
+ Component.link
+ "/"
+ (R.constDyn $ M.singleton "class" "link")
+ (Msg.get Msg.NotFound_LinkMessage)