-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from yanosea/61-change-header-to-sticky
✨feat: change header to sticky
- Loading branch information
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
--- | ||
import IconLink from "@/components/IconLink.astro"; | ||
import MainLinks from "@/components//MainLinks.astro"; | ||
const { borderVisible = false } = Astro.props; | ||
--- | ||
|
||
<div class="flex sticky bottom-[100vh] w-full justify-between px-6 py-6"> | ||
<div | ||
class={`flex sticky top-0 w-full justify-between bg-background dark:bg-background-dark ${borderVisible ? "border-b border-gray dark:border-gray-dark" : ""} px-6 py-6 z-10`} | ||
> | ||
<IconLink icon="ri:home-4-fill" href="/" /> | ||
<div class="flex flex-row items-center space-x-4"> | ||
<div class="flex flex-row items-center space-x-2 sm:space-x-4"> | ||
<MainLinks /> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters