mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-08-10 20:34:39 -05:00
feat: I think I may be done v1
This commit is contained in:
parent
c63ab0bfe7
commit
28293e56e2
11 changed files with 167 additions and 125 deletions
|
@ -128,7 +128,7 @@ elmBuildsList device =
|
|||
cardMaker device
|
||||
(C.BlogArticle service)
|
||||
(contentList service
|
||||
[ elmCodeRenderer ]
|
||||
[ elmCodeRenderer device ]
|
||||
)
|
||||
)
|
||||
[ elmBuilds ]
|
||||
|
@ -183,8 +183,8 @@ The source code for this website is viewable on [Gitlab](https://gitlab.com/upRo
|
|||
}
|
||||
|
||||
|
||||
elmCodeRenderer : Element msg
|
||||
elmCodeRenderer =
|
||||
elmCodeRenderer : Device -> Element msg
|
||||
elmCodeRenderer device =
|
||||
el
|
||||
[ paddingEach
|
||||
{ top = 15
|
||||
|
@ -192,7 +192,15 @@ elmCodeRenderer =
|
|||
, left = 20
|
||||
, right = 20
|
||||
}
|
||||
, B.color colourTheme.backgroundLightGrey
|
||||
, case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
B.color colourTheme.backgroundDarkGrey
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
B.color colourTheme.backgroundDarkGrey
|
||||
|
||||
_ ->
|
||||
B.color colourTheme.backgroundLightGrey
|
||||
, D.rounded 10
|
||||
, width fill
|
||||
, spacing 8
|
||||
|
|
|
@ -129,7 +129,7 @@ elmBuildsList device =
|
|||
cardMaker device
|
||||
(C.BlogArticle service)
|
||||
(contentList service
|
||||
[ nixCodeRenderer ]
|
||||
[ nixCodeRenderer device ]
|
||||
)
|
||||
)
|
||||
[ nixBuilds ]
|
||||
|
@ -195,8 +195,8 @@ renderCodeLine colors elements =
|
|||
elements
|
||||
|
||||
|
||||
nixCodeRenderer : Element msg
|
||||
nixCodeRenderer =
|
||||
nixCodeRenderer : Device -> Element msg
|
||||
nixCodeRenderer device =
|
||||
el
|
||||
[ paddingEach
|
||||
{ top = 15
|
||||
|
@ -204,7 +204,15 @@ nixCodeRenderer =
|
|||
, left = 20
|
||||
, right = 20
|
||||
}
|
||||
, B.color colourTheme.backgroundLightGrey
|
||||
, case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
B.color colourTheme.backgroundDarkGrey
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
B.color colourTheme.backgroundDarkGrey
|
||||
|
||||
_ ->
|
||||
B.color colourTheme.backgroundLightGrey
|
||||
, D.rounded 10
|
||||
, width fill
|
||||
, spacing 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue