feat: fixed navbar

This commit is contained in:
Nick 2024-11-14 21:10:41 -06:00
parent a55ba3c627
commit 55eb3a8a60
5 changed files with 23 additions and 10 deletions

6
flake.lock generated
View file

@ -19,11 +19,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1730785428, "lastModified": 1731319897,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=", "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7", "rev": "dc460ec76cbff0e66e269457d7b728432263166c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -18,13 +18,13 @@ import View exposing (View)
makeDodge : Dodge -> Int -> Element msg makeDodge : Dodge -> Int -> Element msg
makeDodge dodgeEntry index = makeDodge dodgeEntry index =
column paragraphAlignLeft column paragraphAlignLeft
[ row (paragraphFormat++[F.size 18]) [ row (paragraphFormat ++ [ F.size 18 ])
[ text " " [ text " "
, text (String.fromInt index ++ ". ") , text (String.fromInt index ++ ". ")
, paragraphLinkFormat , paragraphLinkFormat
{ url = dodgeEntry.dodgeLink { url = dodgeEntry.dodgeLink
, label = , label =
row [F.size 18] row [ F.size 18 ]
[ transitionHighlightedLinkHover <| [ transitionHighlightedLinkHover <|
text text
(case dodgeEntry.dodgeDescription of (case dodgeEntry.dodgeDescription of
@ -122,14 +122,14 @@ cuckMaker cuck =
, column , column
paragraphAlignLeft paragraphAlignLeft
[ row nonHighlightedTitleFormat [ text cuck.cuckName ] [ row nonHighlightedTitleFormat [ text cuck.cuckName ]
, row (paragraphBoldFormat++[F.size 18]) , row (paragraphBoldFormat ++ [ F.size 18 ])
[ text "Social:" [ text "Social:"
, paragraphLinkFormat , paragraphLinkFormat
{ url = cuck.cuckSocial { url = cuck.cuckSocial
, label = transitionHighlightedLinkHover <| text (formatCuckSocial cuck.cuckSocial) , label = transitionHighlightedLinkHover <| text (formatCuckSocial cuck.cuckSocial)
} }
] ]
, row (paragraphBoldFormat++[F.size 18]) [ text "Dodges:" ] , row (paragraphBoldFormat ++ [ F.size 18 ]) [ text "Dodges:" ]
, column [ spacing 8 ] <| , column [ spacing 8 ] <|
List.map2 (\x y -> makeDodge x y) List.map2 (\x y -> makeDodge x y)
cuck.cuckDodges cuck.cuckDodges

View file

@ -91,6 +91,12 @@ view { toContentMsg, model, content } =
, alignLeft , alignLeft
, alignTop , alignTop
, moveDown 30 , moveDown 30
, htmlAttribute (H.style "position" "fixed")
, htmlAttribute (H.style "left" "0")
, htmlAttribute (H.style "top" "0")
, htmlAttribute (H.style "height" "100vh")
, htmlAttribute (H.style "z-index" "10") -- Ensure navbar stays on top
, htmlAttribute (H.style "transform-style" "preserve-3d")
] ]
[ column [ column
[ spacing 20 [ spacing 20
@ -107,8 +113,14 @@ view { toContentMsg, model, content } =
, link navBarLinkFormat { url = localhostUrl ++ "support", label = transitionNonHighlightedLinkHoverWithMove <| text "SUPPORT" } , link navBarLinkFormat { url = localhostUrl ++ "support", label = transitionNonHighlightedLinkHoverWithMove <| text "SUPPORT" }
, link navBarLinkFormat { url = localhostUrl ++ "interviews", label = transitionNonHighlightedLinkHoverWithMove <| text "INTERVIEWS" } , link navBarLinkFormat { url = localhostUrl ++ "interviews", label = transitionNonHighlightedLinkHoverWithMove <| text "INTERVIEWS" }
, link navBarLinkFormat { url = localhostUrl ++ "contact", label = transitionNonHighlightedLinkHoverWithMove <| text "CONTACT" } , link navBarLinkFormat { url = localhostUrl ++ "contact", label = transitionNonHighlightedLinkHoverWithMove <| text "CONTACT" }
, link navBarLinkFormat { url = localhostUrl ++ "dodgers", label = transitionNonHighlightedLinkHoverWithMove <| text "DODGERS" }
] ]
] ]
, content.element , el
[ width fill
, height fill
, paddingEach { top = 0, right = 0, bottom = 0, left = 200 }
]
content.element
] ]
} }

View file

@ -296,7 +296,8 @@ argumentList =
, conclusionNotation = "" , conclusionNotation = ""
} }
] ]
},{ argumentTitle = "" }
, { argumentTitle = ""
, propositionTitle = "" , propositionTitle = ""
, propositionSummary = "" , propositionSummary = ""
, definitionTable = , definitionTable =

View file

@ -215,8 +215,8 @@ dodgersList =
, cuckPhilippeStephenson , cuckPhilippeStephenson
, cuckRalphNapolitano , cuckRalphNapolitano
, cuckRaphaelSirtoli , cuckRaphaelSirtoli
, cuckRobMeijer
, cuckRobbWolf , cuckRobbWolf
, cuckRobMeijer
, cuckSimonGoddek , cuckSimonGoddek
, cuckTravisStatham , cuckTravisStatham
, cuckTristanHaggard , cuckTristanHaggard