mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 12:25:12 -05:00
feat: added article
This commit is contained in:
parent
cf9caa1a66
commit
a751136971
7 changed files with 198 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue