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
8f7cd96f63
commit
931ef1b06b
99 changed files with 319 additions and 13 deletions
|
@ -123,21 +123,34 @@ elmUiRenderer =
|
|||
\image ->
|
||||
case image.title of
|
||||
Just title ->
|
||||
el [ centerX ] <|
|
||||
E.image
|
||||
[ E.width <| E.px 300 ]
|
||||
{ src = image.src
|
||||
, description = image.alt
|
||||
}
|
||||
el [] <|
|
||||
column
|
||||
[ width fill
|
||||
, E.centerX
|
||||
]
|
||||
[ E.image
|
||||
[ E.centerX
|
||||
, width <| px 600
|
||||
]
|
||||
{ src = image.src
|
||||
, description = image.alt
|
||||
}
|
||||
]
|
||||
|
||||
Nothing ->
|
||||
el [ centerX ] <|
|
||||
E.image
|
||||
[ E.width <| E.px 300
|
||||
el [] <|
|
||||
column
|
||||
[ width fill
|
||||
, E.centerX
|
||||
]
|
||||
[ E.image
|
||||
[ E.centerX
|
||||
, width <| px 600
|
||||
]
|
||||
{ src = image.src
|
||||
, description = image.alt
|
||||
}
|
||||
]
|
||||
{ src = image.src
|
||||
, description = image.alt
|
||||
}
|
||||
, blockQuote =
|
||||
\children ->
|
||||
E.column
|
||||
|
@ -205,7 +218,6 @@ elmUiRenderer =
|
|||
(\index itemBlocks ->
|
||||
E.row
|
||||
[ E.width fill
|
||||
|
||||
]
|
||||
[ E.el
|
||||
[ E.alignTop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue