mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
add icon lightbox
This commit is contained in:
parent
21d564b609
commit
67081eded4
@ -154,6 +154,7 @@
|
|||||||
]
|
]
|
||||||
[:div.dashboard-grid-content
|
[:div.dashboard-grid-content
|
||||||
[:div.grid-item.small-item.add-project
|
[:div.grid-item.small-item.add-project
|
||||||
|
{on-click #(lightbox/set! :new-icon)}
|
||||||
[:span "+ New icon"]]
|
[:span "+ New icon"]]
|
||||||
[:div.grid-item.small-item.project-th
|
[:div.grid-item.small-item.project-th
|
||||||
[:span.grid-item-image i/logo-icon]
|
[:span.grid-item-image i/logo-icon]
|
||||||
@ -411,9 +412,12 @@
|
|||||||
:name "colors"
|
:name "colors"
|
||||||
:mixins [rum/static]}))
|
:mixins [rum/static]}))
|
||||||
|
|
||||||
;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Lightbox
|
;; Lightbox
|
||||||
;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
;; ADD ELEMENT LIGHTBOX
|
||||||
|
|
||||||
(defn- new-element-lightbox-render
|
(defn- new-element-lightbox-render
|
||||||
[own]
|
[own]
|
||||||
|
|
||||||
@ -443,3 +447,35 @@
|
|||||||
(defmethod lightbox/render-lightbox :new-element
|
(defmethod lightbox/render-lightbox :new-element
|
||||||
[_]
|
[_]
|
||||||
(new-element-lightbox))
|
(new-element-lightbox))
|
||||||
|
|
||||||
|
;; ADD ICON LIGHTBOX
|
||||||
|
|
||||||
|
(defn- new-icon-lightbox-render
|
||||||
|
[own]
|
||||||
|
|
||||||
|
(html
|
||||||
|
[:div.lightbox-body
|
||||||
|
[:h3 "New icon"]
|
||||||
|
[:div.row-flex
|
||||||
|
[:div.lightbox-big-btn
|
||||||
|
[:span.big-svg i/shapes]
|
||||||
|
[:span.text "Go to workspace"]
|
||||||
|
]
|
||||||
|
[:div.lightbox-big-btn
|
||||||
|
[:span.big-svg.upload i/exit]
|
||||||
|
[:span.text "Upload file"]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
[:a.close {:href "#"
|
||||||
|
:on-click #(do (dom/prevent-default %)
|
||||||
|
(lightbox/close!))}
|
||||||
|
i/close]]))
|
||||||
|
|
||||||
|
(def new-icon-lightbox
|
||||||
|
(util/component
|
||||||
|
{:render new-icon-lightbox-render
|
||||||
|
:name "new-icon-lightbox"}))
|
||||||
|
|
||||||
|
(defmethod lightbox/render-lightbox :new-icon
|
||||||
|
[_]
|
||||||
|
(new-icon-lightbox))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user