From 26df8bc4fc8dc4eee3134960169e1e509be7b1f3 Mon Sep 17 00:00:00 2001 From: ccamel Date: Sun, 7 Jul 2024 18:20:35 +0200 Subject: [PATCH 1/2] :adhesive_bandage: Re-introduce version in footer (was missing) --- src/App/View.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/View.elm b/src/App/View.elm index cec4147c..7e11cf41 100644 --- a/src/App/View.elm +++ b/src/App/View.elm @@ -57,7 +57,7 @@ view model = {-| the html elements for the footer -} footerPart : Model -> Html Msg -footerPart _ = +footerPart { flags } = footer [ class "footer has-background-black-bis" ] [ div @@ -98,7 +98,7 @@ footerPart _ = ] , p [] [ strong [] - [ text "playground-elm" ] + [ text ("playground-elm v" ++ flags.version) ] , text " | " , a [ href "https://github.com/ccamel" ] [ text "© 2017-2024 Christophe Camel" ] From ec854cb8f7beafa462806d0920c44b5107ee4bb1 Mon Sep 17 00:00:00 2001 From: ccamel Date: Sun, 7 Jul 2024 19:50:10 +0200 Subject: [PATCH 2/2] :adhesive_bandage: Use absolute image URLs (better practice) --- src/App/View.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/View.elm b/src/App/View.elm index 7e11cf41..b6832ec6 100644 --- a/src/App/View.elm +++ b/src/App/View.elm @@ -175,12 +175,12 @@ pagePart page model = showcase : Model -> Int -> Page -> Html Msg -showcase _ num page = +showcase { flags } num page = div [ class "columns featured-showcase is-multiline" ] [ div [ class "column is-12 showcase" ] [ article [ class "columns featured" ] ([ div [ class "column is-7 showcase-img" ] - [ img [ src <| interpolate "./{0}.png" [ pageHash page ], width 450 ] + [ img [ src <| interpolate "{0}{1}.png" [ flags.basePath, pageHash page ], width 450 ] [] ] , div [ class "column is-5 featured-content va" ]