mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: added new images
This commit is contained in:
parent
b1a190d9ad
commit
6763b6a860
11 changed files with 332 additions and 157 deletions
|
@ -14,6 +14,7 @@ import Config.Helpers.Format
|
|||
import Config.Helpers.Headers.Helpers exposing (..)
|
||||
import Config.Helpers.Headers.Records exposing (servicesHeader)
|
||||
import Config.Helpers.Headers.Types as R exposing (..)
|
||||
import Config.Helpers.ImageFolders as M exposing (..)
|
||||
import Config.Helpers.Response
|
||||
exposing
|
||||
( pageList
|
||||
|
@ -28,6 +29,7 @@ import Config.Pages.Services.Records.NutritionScience exposing (..)
|
|||
import Config.Pages.Services.Types exposing (..)
|
||||
import Config.Style.Colour as T exposing (..)
|
||||
import Config.Style.Glow exposing (glowDeepDarkGrey, glowDeepDarkOrange)
|
||||
import Config.Style.Images exposing (imageSquareMaker)
|
||||
import Config.Style.Transitions exposing (transitionStyleMedium)
|
||||
import Effect exposing (Effect)
|
||||
import Element as E exposing (..)
|
||||
|
@ -130,7 +132,7 @@ servicesList device =
|
|||
]
|
||||
, List.map
|
||||
(\service ->
|
||||
cardMaker device (C.Service service) (contentList service)
|
||||
cardMaker device (C.Service service) (contentList device service)
|
||||
)
|
||||
[ servicesDebateAnalysis
|
||||
, servicesDebateCoaching
|
||||
|
@ -141,10 +143,30 @@ servicesList device =
|
|||
]
|
||||
|
||||
|
||||
contentList : Service msg -> List (Element msg)
|
||||
contentList service =
|
||||
[ rateMaker service
|
||||
, descriptionMaker service
|
||||
contentList : Device -> Service msg -> List (Element msg)
|
||||
contentList device service =
|
||||
let
|
||||
image : String -> Element msg
|
||||
image size =
|
||||
el
|
||||
[ alignLeft
|
||||
, paddingEach
|
||||
{ top = 0
|
||||
, right = 10
|
||||
, bottom = 0
|
||||
, left = 0
|
||||
}
|
||||
]
|
||||
<|
|
||||
imageSquareMaker device (imagePathMaker M.ServicePage service.serviceImage) True size
|
||||
in
|
||||
[ row []
|
||||
[ image "Small"
|
||||
, column [ alignBottom ]
|
||||
[ rateMaker service
|
||||
, descriptionMaker service
|
||||
]
|
||||
]
|
||||
, offeringMaker service
|
||||
]
|
||||
|
||||
|
@ -205,12 +227,6 @@ offeringMaker service =
|
|||
column
|
||||
[ spacing 8
|
||||
, width fill
|
||||
, paddingEach
|
||||
{ top = 0
|
||||
, right = 0
|
||||
, bottom = 0
|
||||
, left = 35
|
||||
}
|
||||
]
|
||||
<|
|
||||
List.map2 (\x y -> makeDescription x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue