feat: added two articles

This commit is contained in:
Nick 2024-12-17 03:24:17 -06:00
parent 6cfdf6200e
commit 8504ee9456
8 changed files with 565 additions and 36 deletions

View file

@ -36,6 +36,7 @@ import Config.Helpers.Response
import Config.Helpers.Viewport exposing (resetViewport)
import Config.Pages.Blog.Records.HunterGatherers exposing (articleHunterGatherers)
import Config.Pages.Blog.Records.NagraGoodrich exposing (articleNagraGoodrich)
import Config.Pages.Blog.Records.QuackSmashing exposing (articleQuackSmashing)
import Config.Pages.Blog.Records.SapienDiet exposing (articleSapienDiet)
import Config.Pages.Blog.Records.SeedOils exposing (articleSeedOils)
import Config.Pages.Blog.Types exposing (..)
@ -152,7 +153,8 @@ blogList device =
_ ->
List.map desktopBlogMaker
)
[ articleNagraGoodrich
[ articleQuackSmashing
, articleNagraGoodrich
, articleSapienDiet
, articleSeedOils
, articleHunterGatherers
@ -259,7 +261,7 @@ articleMaker article =
infoRow : String -> String -> Element msg
infoRow label value =
row [ width fill ]
[ el [ width <| px 105 ] <|
[ el [ width <| px 85 ] <|
paragraph
[ F.color colourTheme.textLightOrange
, paragraphSpacing
@ -285,5 +287,5 @@ articleRows article =
[ infoRow "Author:" article.articleAuthor
, infoRow "Published:" article.articlePublished
, infoRow "Duration:" (String.fromInt (wordCount article.articleBody // 225) ++ " minutes")
, infoRow "Word Count:" (String.fromInt (wordCount article.articleBody))
, infoRow "Words:" (String.fromInt (wordCount article.articleBody))
]