Skip to content

Commit

Permalink
Add birthday message
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreEhrenborg committed Jun 2, 2024
1 parent 7488c42 commit 0bff0a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ view model =
[]
)
++ [ text_ [ x "5", y "20", Svg.Attributes.style "fill: white" ] [ text ("Score: " ++ String.fromInt model.score) ], text_ [ x "360", y "40", fontSize "48", Svg.Attributes.style "fill: white", onClick (Key LeftArrow) ] [ text "" ], text_ [ x "420", y "40", fontSize "48", Svg.Attributes.style "fill: white", onClick (Key RightArrow) ] [ text "" ] ]
++ (if model.score >= 19 then
[ text_ [ x "300", y "200", Svg.Attributes.style "fill: white" ] [ text "Happy birthday!" ] ]

else
[]
)
)


Expand Down

0 comments on commit 0bff0a7

Please sign in to comment.