website/app/Header.elm

20 lines
775 B
Elm
Raw Normal View History

2024-06-16 02:13:12 +07:00
module Header exposing (header)
import Html.Styled exposing (..)
import Html.Styled.Attributes exposing (style, target, src, class)
import Route
import Link exposing (Link)
header = p [ style "display" "flex", style "flex-direction" "row", style "justify-content" "flex-start" ]
[ p [ style "margin-right" "1rem" ] [ home ]
, p [ style "margin-right" "1rem" ] [ blog ]
, p [ style "margin-right" "1rem" ] [ book ]
2024-06-18 21:54:48 +07:00
, p [ style "margin-right" "1rem" ] [ cv ]
2024-06-16 02:13:12 +07:00
]
home = Link.link (Link.internal (Route.Index)) [] [ text "Home" ]
blog = Link.link (Link.internal (Route.Blog__Slug_ { slug = "" })) [] [ text "Blog" ]
book = Link.link (Link.internal (Route.Book)) [] [ text "Book" ]
2024-06-18 21:54:48 +07:00
cv = Link.link (Link.external "/cv.pdf") [ target "_blank" ] [ text "CV" ]