diff --git a/app/Route/Blog.elm b/app/Route/Blog.elm index 0c3dfe4..cacafd9 100644 --- a/app/Route/Blog.elm +++ b/app/Route/Blog.elm @@ -7,6 +7,7 @@ import FatalError exposing (FatalError) import Head import Head.Seo as Seo import Html.Styled exposing (..) +import Html.Styled.Attributes exposing (style) import Json.Decode as Decode exposing (Decoder) import Json.Decode.Extra import Pages.Url @@ -85,16 +86,24 @@ view app shared = , body = [ Link.link (Link.internal (Route.Index)) [] [ text "Home" ] - , div [] (app.data |> List.map renderBlogItem) + , div + [ style "margin-top" "10px" ] + (app.data |> List.map renderBlogItem) ] } renderBlogItem : (Route, Article.ArticleMetadata) -> Html msg renderBlogItem (route_, article) = - Link.link (Link.internal route_) [] - [ div [] - [ div [] - [ text article.title - ] + Link.link (Link.internal route_) [ style "text-decoration" "none" ] + [ div + [ style "display" "flex" + , style "justify-content" "space-between" + -- , style "margin-left" "50px" + -- , style "margin-right" "50px" + -- , style "margin" "auto" + , style "max-width" "550px" + ] + [ p [] [text article.title] + , p [] [text (Date.toIsoString article.published)] ] ] diff --git a/app/Route/Index.elm b/app/Route/Index.elm index a84ec8e..80f4346 100644 --- a/app/Route/Index.elm +++ b/app/Route/Index.elm @@ -112,7 +112,7 @@ view app shared = , text "You can find out more about me in my " , Link.link (Link.external cvpdf) [Attributes.target "_blank"] [text "CV."] , br [] [] - , text "I often write blogs, most of them are based on my research knowledge." + , text "I often write blogs, most of them are based on my research knowledge. " , text "You can find my blogs " , Link.link (Link.internal (Route.Blog__Slug_ { slug = "" })) [] [ text "here." ] , br [] [] diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 30b1182..0000000 Binary files a/public/favicon.ico and /dev/null differ