-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
916e61f
commit b0b2101
Showing
3 changed files
with
48 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import List from '../../configs/links/nav' | ||
|
||
let LIST_LINK = '' | ||
for (let i = 0; i < List.length; i++) { | ||
const { name, url, icon } = List[i] | ||
LIST_LINK += html` | ||
<li class="m-auto align-middle max-w-full text-white"> | ||
<a | ||
href="${url}" | ||
class="m-1 capitalize font-Rokkit font-bold flex | ||
justify-center items-center flex-col md:flex-row " | ||
data-tip="${name}"> | ||
${icon} | ||
<span>${name}</span> | ||
</a> | ||
</li> | ||
` | ||
} | ||
export default html` | ||
<nav | ||
class="fixed bottom-0 left-0 z-50 w-full | ||
flex justify-center items-center | ||
md:static md:justify-end md:items-end | ||
" | ||
data-aos="zoom-in"> | ||
<div class="w-fit h-fit m-auto md:mr-0"> | ||
<ul | ||
class="menu menu-xs md:menu-md menu-horizontal bg-primary md:bg-transparent rounded-box align-middle"> | ||
${LIST_LINK} | ||
</ul> | ||
</div> | ||
</nav> | ||
` |
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 +1,14 @@ | ||
export default html` <div>hello world</div> ` | ||
import NavBottom from './bottom' | ||
|
||
export default function Nav(url: string, title: string) { | ||
return html` | ||
<div class="navbar bg-primary"> | ||
<header class="text-white"> | ||
<a class="btn btn-ghost text-xl" title="${title}" href="${url}"> | ||
${title} | ||
</a> | ||
</header> | ||
${NavBottom} | ||
</div> | ||
` | ||
} |