on master help sign in
Get the 404 page working as expected
9faeae1Evan Czaplicki
ui/browser/src/NotFound.elm+20−5
@@ -1,14 +1,29 @@
1module NotFound exposing (main)
1module NotFound exposing (main)
2
2
3
3
4+import Browser
4import Html exposing (..)
5import Html exposing (..)
5import Html.Attributes exposing (..)
6import Html.Attributes exposing (..)
6
7
7
8
8
9
9−main : Html msg
10+main : Program () () ()
10main =
11main =
12+ Browser.fullscreen
13+ { init = \_ -> ((), Cmd.none)
14+ , update = \_ _ -> ((), Cmd.none)
15+ , subscriptions = \_ -> Sub.none
16+ , onNavigation = Nothing
17+ , view = \_ -> page
18+ }
19+
20+
21+page =
22+ { title = "Page not found"
23+ , body =
11− div [ class "not-found" ]
24+ [ div [ class "not-found" ]
12− [ div [ style "font-size" "12em" ] [ text "404" ]
25+ [ div [ style "font-size" "12em" ] [ text "404" ]
13− , div [ style "font-size" "3em" ] [ text "Page not found" ]
26+ , div [ style "font-size" "3em" ] [ text "Page not found" ]
27+ ]
14− ]
28+ ]
29+ }