mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: worked on some stuff
This commit is contained in:
parent
d8ac47c5ee
commit
cfbab179e2
48 changed files with 45 additions and 47 deletions
|
@ -18,7 +18,7 @@ import View exposing (View)
|
|||
|
||||
|
||||
type alias Props =
|
||||
{ currentRoute : String }
|
||||
{}
|
||||
|
||||
|
||||
layout : Props -> Shared.Model -> Route () -> Layout () Model Msg contentMsg
|
||||
|
@ -95,6 +95,8 @@ view { content, model, toContentMsg, props } =
|
|||
[ E.width fill
|
||||
, height fill
|
||||
, B.color colourTheme.backgroundDarkGrey
|
||||
, E.height E.fill
|
||||
, scrollbarY
|
||||
]
|
||||
[ column
|
||||
[ htmlAttribute (H.style "position" "fixed")
|
||||
|
@ -157,8 +159,8 @@ view { content, model, toContentMsg, props } =
|
|||
, F.size 17
|
||||
, spacing 8
|
||||
]
|
||||
(buttonMaker props.currentRoute pageNames.pageRoot
|
||||
:: List.map (buttonMaker props.currentRoute)
|
||||
(buttonMaker pageNames.pageRoot
|
||||
:: List.map buttonMaker
|
||||
[ pageNames.pageServices
|
||||
, pageNames.pageHyperBlog
|
||||
, pageNames.pageDebate
|
||||
|
@ -241,8 +243,8 @@ iconList =
|
|||
]
|
||||
|
||||
|
||||
buttonMaker : String -> String -> Element msg
|
||||
buttonMaker currentRoute name =
|
||||
buttonMaker : String -> Element msg
|
||||
buttonMaker name =
|
||||
row
|
||||
[]
|
||||
[ column [ E.width <| px 36 ]
|
||||
|
@ -263,12 +265,7 @@ buttonMaker currentRoute name =
|
|||
, label =
|
||||
el
|
||||
[ mouseOver [ F.color colourTheme.textLightOrange ]
|
||||
, F.color <|
|
||||
if String.toLower name == currentRoute then
|
||||
colourTheme.textLightOrange
|
||||
|
||||
else
|
||||
colourTheme.textLightGrey
|
||||
, F.color colourTheme.textLightGrey
|
||||
, htmlAttribute <| style "transition" "all 0.1s ease-in-out"
|
||||
]
|
||||
<|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue