feat: lots of work

This commit is contained in:
Nick 2024-12-08 03:04:37 -06:00
parent 848038b62b
commit be5663862f
15 changed files with 155 additions and 120 deletions

View file

@ -116,16 +116,16 @@ navbarContainer device content =
] ]
(case ( device.class, device.orientation ) of (case ( device.class, device.orientation ) of
( Phone, Portrait ) -> ( Phone, Portrait ) ->
[ mobileNavbar, mobileFooterIcons ] [ mobileIconMaker, mobileNavbar, mobileFooterIcons ]
( Phone, Landscape ) -> ( Phone, Landscape ) ->
[ mobileNavbar, mobileFooterIcons ] [ mobileIconMaker, mobileNavbar, mobileFooterIcons ]
( Tablet, Portrait ) -> ( Tablet, Portrait ) ->
[ mobileNavbar, mobileFooterIcons ] [ mobileIconMaker, mobileNavbar, mobileFooterIcons ]
_ -> _ ->
[ desktopNavbar, desktopFooterIcons ] [ desktopIconMaker, desktopNavbar, desktopFooterIcons ]
) )
, el , el
[ E.width fill [ E.width fill
@ -171,46 +171,9 @@ desktopNavbar =
[ alignLeft [ alignLeft
, height fill , height fill
, F.color colourTheme.textLightGrey , F.color colourTheme.textLightGrey
, scrollbarY
] ]
[ column [ column
[ centerX
, E.width <| px desktopBarWidth
]
[ row
(nonHighlightedTitleFormat
++ [ centerX
]
)
[ E.image
[ spacing 2
, E.width <| px 140
, centerX
, paddingEach
{ top = 20
, right = 0
, bottom = 20
, left = 0
}
]
{ src = "assets/logo.png"
, description = ""
}
]
, el
[ E.width <| px 140
, alignTop
, centerX
, D.widthEach
{ bottom = 1
, top = 0
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
]
none
]
, column
[ padding 20, alignTop, alignLeft ] [ padding 20, alignTop, alignLeft ]
[ column [ column
[ F.bold [ F.bold
@ -233,6 +196,90 @@ desktopNavbar =
] ]
desktopIconMaker : Element msg
desktopIconMaker =
column
[ centerX
, E.width <| px desktopBarWidth
]
[ row
(nonHighlightedTitleFormat
++ [ centerX
]
)
[ E.image
[ spacing 2
, E.width <| px 140
, centerX
, paddingEach
{ top = 20
, right = 0
, bottom = 20
, left = 0
}
]
{ src = "assets/logo.png"
, description = ""
}
]
, el
[ E.width <| px 140
, alignTop
, centerX
, D.widthEach
{ bottom = 1
, top = 0
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
]
none
]
mobileIconMaker : Element msg
mobileIconMaker =
column
[ centerX
, E.width <| px mobileBarWidth
]
[ row
(nonHighlightedTitleFormat
++ [ centerX
]
)
[ E.image
[ spacing 2
, E.width <| px 35
, centerX
, paddingEach
{ top = 10
, right = 0
, bottom = 10
, left = 0
}
]
{ src = "assets/logo_lambda.png"
, description = ""
}
]
, el
[ E.width <| px 20
, alignTop
, centerX
, D.widthEach
{ bottom = 1
, top = 0
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
]
none
]
mobileNavbar : Element msg mobileNavbar : Element msg
mobileNavbar = mobileNavbar =
column column
@ -242,44 +289,6 @@ mobileNavbar =
, scrollbarY , scrollbarY
] ]
[ column [ column
[ centerX
, E.width <| px mobileBarWidth
]
[ row
(nonHighlightedTitleFormat
++ [ centerX
]
)
[ E.image
[ spacing 2
, E.width <| px 35
, centerX
, paddingEach
{ top = 10
, right = 0
, bottom = 10
, left = 0
}
]
{ src = "assets/logo_lambda.png"
, description = ""
}
]
, el
[ E.width <| px 20
, alignTop
, centerX
, D.widthEach
{ bottom = 1
, top = 0
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
]
none
]
, column
[ padding 5 [ padding 5
, centerY , centerY
, centerX , centerX
@ -406,62 +415,88 @@ mobilePagesButtonMaker name =
desktopFooterIcons : Element msg desktopFooterIcons : Element msg
desktopFooterIcons = desktopFooterIcons =
row column
[ alignBottom [ E.width <| px 140
, E.width fill , alignTop
, centerX
, D.widthEach
{ bottom = 0
, top = 1
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
] ]
[ row [ row
[ centerX [ alignBottom
, centerY
, E.width fill , E.width fill
, E.height fill , centerX
, spacing 20
, paddingEach
{ top = 10
, bottom = 10
, left = 0
, right = 0
}
] ]
-- Use the list of social media details here [ row
(List.map [ centerX
footerImageMaker , centerY
[ gitlabDetails , E.width fill
, twitterDetails , E.height fill
, mastodonDetails , spacing 20
, discordDetails , paddingEach
{ top = 25
, bottom = 10
, left = 0
, right = 0
}
] ]
) (List.map
footerImageMaker
[ gitlabDetails
, twitterDetails
, mastodonDetails
, discordDetails
]
)
]
] ]
mobileFooterIcons : Element msg mobileFooterIcons : Element msg
mobileFooterIcons = mobileFooterIcons =
column column
[ alignBottom [ E.width <| px 20
, E.width fill , alignTop
, centerX
, D.widthEach
{ bottom = 0
, top = 1
, left = 0
, right = 0
}
, D.color colourTheme.textDarkGrey
] ]
[ column [ column
[ centerX [ alignBottom
, centerY
, E.width fill , E.width fill
, E.height fill
, spacing 10
, paddingEach
{ top = 10
, bottom = 10
, left = 0
, right = 0
}
] ]
(List.map [ column
footerImageMaker [ centerX
[ gitlabDetails , centerY
, twitterDetails , E.width fill
, mastodonDetails , E.height fill
, discordDetails , spacing 10
, paddingEach
{ top = 10
, bottom = 10
, left = 0
, right = 0
}
] ]
) (List.map
footerImageMaker
[ gitlabDetails
, twitterDetails
, mastodonDetails
, discordDetails
]
)
]
] ]

BIN
frontend/static/navbar/contact-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

BIN
frontend/static/navbar/contact.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

BIN
frontend/static/navbar/donate-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 818 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

BIN
frontend/static/navbar/donate.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

BIN
frontend/static/navbar/home-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

BIN
frontend/static/navbar/home.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

BIN
frontend/static/navbar/hyperblog-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

BIN
frontend/static/navbar/hyperblog.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

BIN
frontend/static/navbar/interviews-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

BIN
frontend/static/navbar/interviews.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

BIN
frontend/static/navbar/services-dark.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After

BIN
frontend/static/navbar/services.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before After
Before After