navbar
This commit is contained in:
parent
9cf47f9a6b
commit
92db954631
2
main.js
2
main.js
@ -10,7 +10,7 @@ const navData = [
|
||||
document.body.appendChild(header.flex({ justifyContent: 'space-between', alignItems: 'center' }).childs([
|
||||
nav.flex({ gap: '1rem' }).childs(navData.map(item => {
|
||||
const link = document.createElement('a')
|
||||
link.href = `/${item.path}`
|
||||
link.href = item.path
|
||||
link.textContent = item.name
|
||||
link.style.padding = '.5rem'
|
||||
link.style.borderRadius = '.25rem'
|
||||
|
Loading…
Reference in New Issue
Block a user