0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/uxbox/ui/header.cljs

32 lines
768 B
Text
Raw Normal View History

2015-12-14 09:50:19 +02:00
(ns uxbox.ui.header
(:require [sablono.core :as html :refer-macros [html]]
[rum.core :as rum]
[uxbox.util :as util]
[uxbox.router :as r]
[uxbox.ui.navigation :as nav]
[uxbox.ui.icons :as i]
[uxbox.ui.users :as ui.u]))
(defn header-render
[own]
(html
[:header#main-bar.main-bar
[:div.main-logo
(nav/link "/" i/logo)]
2015-12-15 11:35:38 +01:00
[:ul.main-nav
[:li.current
2015-12-16 10:15:16 +01:00
[:a {:href "/#/"} "PROJECTS"]]
[:li
2015-12-15 12:58:49 +01:00
[:a {:href "/#/elements"} "ELEMENTS"]]
2015-12-15 11:35:38 +01:00
[:li
2015-12-15 12:58:49 +01:00
[:a {:href "/#/icons"} "ICONS"]]
2015-12-15 11:35:38 +01:00
[:li
2015-12-15 12:58:49 +01:00
[:a {:href "/#/colors"} "COLORS"]]]
2015-12-14 09:50:19 +02:00
(ui.u/user)]))
(def ^:static header
(util/component
{:render header-render
:name "header"
:mixins [rum/static]}))