website/app/Header.elm

32 lines
818 B
Elm
Raw Normal View History

2024-06-16 02:13:12 +07:00
module Header exposing (header)
import Html.Styled exposing (..)
2025-01-04 07:19:48 +07:00
import Html.Styled.Attributes exposing (class, src, style, target)
2024-06-16 02:13:12 +07:00
import Link exposing (Link)
2025-01-04 07:19:48 +07:00
import Route
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 ]
, p [ style "margin-right" "1rem" ] [ cv ]
]
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-16 02:13:12 +07:00
2025-01-04 07:19:48 +07:00
cv =
Link.link (Link.external "/cv.pdf") [ target "_blank" ] [ text "CV" ]