feat: added article

This commit is contained in:
Nick 2024-12-16 04:19:13 -06:00
parent cf9caa1a66
commit a751136971
7 changed files with 198 additions and 25 deletions

View file

@ -126,14 +126,23 @@ elmUiRenderer =
\image ->
case image.title of
Just title ->
el [] <|
el
[ width fill ]
<|
column
[ width fill
, E.centerX
[ E.centerX
, E.centerY
, width fill
, E.paddingEach
{ top = 0
, bottom = 10
, left = 10
, right = 10
}
]
[ E.image
[ E.centerX
, width <| px 600
, width (fill |> maximum 600)
]
{ src = image.src
, description = image.alt
@ -149,7 +158,7 @@ elmUiRenderer =
, E.centerY
, width fill
, E.paddingEach
{ top = 0
{ top = 3
, bottom = 10
, left = 10
, right = 10