feat: I think I may be done v1

This commit is contained in:
Nick 2024-12-28 22:30:45 -06:00
parent c63ab0bfe7
commit 28293e56e2
11 changed files with 167 additions and 125 deletions

View file

@ -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

View file

@ -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