mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: version 1 done?
This commit is contained in:
parent
cf580a71d0
commit
d1ba50abd8
30 changed files with 668 additions and 261 deletions
|
@ -21,6 +21,7 @@ import Config.Style.Icons.Icons
|
|||
, home
|
||||
, hyperBlog
|
||||
, interviews
|
||||
, leaving
|
||||
, lock
|
||||
, mastodon
|
||||
, nutriDex
|
||||
|
@ -608,6 +609,12 @@ makeItem input route =
|
|||
)
|
||||
[ itemIcon input route
|
||||
, itemText input route
|
||||
, case route.isNewTabLink of
|
||||
True ->
|
||||
itemLeavingIcon input route
|
||||
|
||||
False ->
|
||||
none
|
||||
]
|
||||
, url = route.url
|
||||
}
|
||||
|
@ -648,6 +655,27 @@ itemIcon input route =
|
|||
}
|
||||
|
||||
|
||||
itemLeavingIcon : NavbarInput contentMsg -> RowInput contentMsg -> Element contentMsg
|
||||
itemLeavingIcon input route =
|
||||
el
|
||||
[ height <| px 50
|
||||
, width <| px 20
|
||||
, E.alignRight
|
||||
, paddingXY 10 0
|
||||
]
|
||||
<|
|
||||
leaving
|
||||
{ elementAttributes =
|
||||
[ E.alignRight
|
||||
, E.alignTop
|
||||
, centerY
|
||||
]
|
||||
, sharedModel = route.sharedModel
|
||||
, svgAttributes =
|
||||
[ SvgAttr.width "15" ]
|
||||
}
|
||||
|
||||
|
||||
itemText : NavbarInput contentMsg -> RowInput contentMsg -> Element contentMsg
|
||||
itemText input route =
|
||||
el
|
||||
|
@ -658,6 +686,12 @@ itemText input route =
|
|||
else
|
||||
transparent True
|
||||
, F.bold
|
||||
, paddingEach
|
||||
{ top = 6
|
||||
, right = 0
|
||||
, bottom = 3
|
||||
, left = 0
|
||||
}
|
||||
]
|
||||
<|
|
||||
text route.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue