mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
add main nav bar
This commit is contained in:
parent
8f30151b31
commit
c62425cbc8
2 changed files with 40 additions and 3 deletions
|
@ -13,9 +13,15 @@
|
|||
[:header#main-bar.main-bar
|
||||
[:div.main-logo
|
||||
(nav/link "/" i/logo)]
|
||||
[:ul
|
||||
[:li "foo"]
|
||||
[:li "bar"]]
|
||||
[:ul.main-nav
|
||||
[:li
|
||||
[:a {:href "/"} "PROJECTS"]]
|
||||
[:li.current
|
||||
[:a {:href "/elements"} "ELEMENTS"]]
|
||||
[:li
|
||||
[:a {:href "/icons"} "ICONS"]]
|
||||
[:li
|
||||
[:a {:href "/colors"} "COLORS"]]]
|
||||
(ui.u/user)]))
|
||||
|
||||
(def ^:static header
|
||||
|
|
|
@ -19,6 +19,37 @@
|
|||
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
margin: 0 0 0 100px;
|
||||
|
||||
li {
|
||||
|
||||
a {
|
||||
color: lighten($color-gray-light, 12%);
|
||||
padding: 1rem;
|
||||
|
||||
&:hover {
|
||||
color: $color-white;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.current {
|
||||
|
||||
a {
|
||||
color: $color-white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.user-zone {
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
|
Loading…
Reference in a new issue