0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00
penpot/frontend/uxbox/ui/library_bar.cljs

86 lines
2.1 KiB
Text
Raw Normal View History

2015-12-15 22:56:03 +01:00
(ns uxbox.ui.library-bar
(:require [sablono.core :as html :refer-macros [html]]
[rum.core :as rum]
2015-12-17 16:43:58 +02:00
[uxbox.ui.util :as ui]
[uxbox.ui.mixins :as mx]
2015-12-15 22:56:03 +01:00
[uxbox.ui.icons :as i]))
(defn library-bar-render
[own]
(html
[:div.library-bar
[:div.library-bar-inside
2015-12-20 17:51:36 +02:00
[:ul.library-tabs
[:li "STANDARD"]
[:li.current "YOUR LIBRARIES"]
2015-12-15 22:56:03 +01:00
]
2015-12-20 17:51:36 +02:00
[:ul.library-elements
[:li
[:a.btn-primary {:href "#"} "+ New library"]
]
[:li
[:span.element-title "Library 1"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 2"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 3"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 4"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 5"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 6"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 7"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 8"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 9"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 10"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 11"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 12"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 13"]
[:span.element-subtitle "21 elements"]
]
[:li
[:span.element-title "Library 14"]
[:span.element-subtitle "21 elements"]
]
2015-12-15 22:56:03 +01:00
]
2015-12-20 17:51:36 +02:00
]
]))
2015-12-15 22:56:03 +01:00
(def ^:static library-bar
2015-12-17 16:43:58 +02:00
(ui/component
2015-12-15 22:56:03 +01:00
{:render library-bar-render
:name "library-bar"
2015-12-17 16:43:58 +02:00
:mixins [mx/static]}))