diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-04 18:06:11 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-04 18:06:11 +0200 |
| commit | 270123cc18ee8acff4b2819f4a609045bd5194f5 (patch) | |
| tree | 650fb26ac317b2697c1e91ce43682674e0ea874c /src/Pages/Profile.elm | |
| parent | 69d48eb332ac53104cf57b408059a103151071fb (diff) | |
Add navigation and profile
Diffstat (limited to 'src/Pages/Profile.elm')
| -rw-r--r-- | src/Pages/Profile.elm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Pages/Profile.elm b/src/Pages/Profile.elm new file mode 100644 index 0000000..a564b3e --- /dev/null +++ b/src/Pages/Profile.elm @@ -0,0 +1,25 @@ +module Pages.Profile exposing (..) + +import Css exposing (marginBottom, px) +import Html.Styled exposing (..) +import Html.Styled.Attributes exposing (css) +import Types exposing (Model, Msg, UrlSegmentUserId) + + +styles = + { container = + css + [ marginBottom (px 10) + ] + } + + +body : Model -> UrlSegmentUserId -> Html Msg +body _ id = + div [ styles.container ] + [ text id ] + + +profileView : UrlSegmentUserId -> Model -> List (Html Msg) +profileView userId model = + [ body model userId ] |
