feat: nav bar and footer shadows

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-05-29 17:00:53 -03:00
parent 5da5e79f41
commit 65d96abb40
2 changed files with 11 additions and 1 deletions

View File

@@ -10,7 +10,10 @@ type Link struct {
}
templ Nav(links []Link) {
<section class="flex flex-row justify-between fixed top-0 font-cal w-90% lg:w-80% xl:w-90%">
<div aria-hidden="true" class="fixed top-0 w-screen h-20vh bg-transparent bg-gradient-to-b from-black from-20% z-100"></div>
<section
class="flex flex-row justify-between fixed top-0 font-cal w-90% lg:w-80% xl:w-90% z-110"
>
<p class="text-gray cannot-hover md:block!">Gustavo "Guz" L. de Mello</p>
<p class="text-gray can-hover md:hidden">Guz</p>
<nav class="can-hover">

View File

@@ -79,5 +79,12 @@ templ Homepage() {
consectetur et est culpa et culpa duis.
</p>
</main>
<footer>
<div
aria-hidden="true"
class={ "fixed bottom-0 left-0 w-screen h-50vh " +
"bg-transparent bg-gradient-to-t from-black from-10%" }
></div>
</footer>
}
}