mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 16:51:40 +02:00
commit
02e438eb28
19 changed files with 114 additions and 213 deletions
|
@ -122,4 +122,4 @@
|
|||
[:div.grid-files-empty
|
||||
[:div.grid-files-desc (t locale "dashboard.grid.empty-files")]
|
||||
[:div.grid-files-link
|
||||
[:a.grid-files-link-text {:on-click on-click} (t locale "ds.new-file")]]])]]))
|
||||
[:a.btn-text-basic.btn-small {:on-click on-click} (t locale "ds.new-file")]]])]]))
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
[{:keys [section items team-id library-id]}]
|
||||
(let [locale (i18n/use-locale)]
|
||||
[:aside.library-sidebar
|
||||
[:button.library-sidebar-add-item
|
||||
[:button.btn-primary.btn-small
|
||||
{:type "button"
|
||||
:on-click #(create-library section team-id)}
|
||||
(t locale (str "dashboard.library.add-library." (name section)))]
|
||||
|
@ -166,12 +166,12 @@
|
|||
i/trash]
|
||||
|
||||
(if (= section :palettes)
|
||||
[:button.btn-dashboard
|
||||
[:button.btn-secondary.btn-small
|
||||
{:on-click #(create-item section library-id)}
|
||||
(t locale (str "dashboard.library.add-item." (name section)))]
|
||||
|
||||
[:*
|
||||
[:label {:for "file-upload" :class-name "btn-dashboard"}
|
||||
[:label {:for "file-upload" :class-name "btn-secondary btn-small"}
|
||||
(t locale (str "dashboard.library.add-item." (name section)))]
|
||||
[:input {:on-change #(create-item section library-id %)
|
||||
:id "file-upload"
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
:on-key-down on-key-down
|
||||
:on-blur on-blur
|
||||
:default-value (:name project)}])])
|
||||
[:a.btn-dashboard {:on-click #(do
|
||||
[:a.btn-secondary.btn-small {:on-click #(do
|
||||
(dom/prevent-default %)
|
||||
(st/emit! (dsh/create-file project-id)))}
|
||||
(t locale "dashboard.header.new-file")]]))
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
(let [locale (i18n/use-locale)]
|
||||
[:header#main-bar.main-bar
|
||||
[:h1.dashboard-title "Recent"]
|
||||
[:a.btn-dashboard {:on-click #(st/emit! dsh/create-project)}
|
||||
[:a.btn-secondary.btn-small {:on-click #(st/emit! dsh/create-project)}
|
||||
(t locale "dashboard.header.new-project")]]))
|
||||
|
||||
(mf/defc recent-project
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
[:div.projects-row
|
||||
[:span "PROJECTS"]
|
||||
[:a.add-project {:on-click #(st/emit! dsh/create-project)}
|
||||
[:a.btn-icon-light.btn-small {:on-click #(st/emit! dsh/create-project)}
|
||||
i/close]]
|
||||
|
||||
[:& sidebar-projects
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
:on-change (fm/on-input-change form :password)
|
||||
:placeholder (tr "login.password")
|
||||
:type "password"}]
|
||||
[:input.btn-primary
|
||||
[:input.btn-primary.btn-large
|
||||
{:name "login"
|
||||
:tab-index "4"
|
||||
:class (when-not (:valid form) "btn-disabled")
|
||||
|
@ -85,7 +85,7 @@
|
|||
[:a {:on-click #(st/emit! (rt/nav :profile-register))
|
||||
:tab-index "6"}
|
||||
(tr "login.register")]]
|
||||
[:a.btn-dashboard {:on-click #(st/emit! da/create-demo-profile)
|
||||
[:a.btn-secondary.btn-small {:on-click #(st/emit! da/create-demo-profile)
|
||||
:tab-index "7"
|
||||
:title (tr "login.create-demo-profile-description")}
|
||||
(tr "login.create-demo-profile")]]]))
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
[:& fm/field-error {:form form :field :password-2}]
|
||||
|
||||
[:input.btn-primary
|
||||
[:input.btn-primary.btn-large
|
||||
{:type "submit"
|
||||
:class (when-not (:valid form) "btn-disabled")
|
||||
:disabled (not (:valid form))
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
:on-change (fm/on-input-change form :theme)}
|
||||
[:option {:value "light"} "Default"]]
|
||||
|
||||
[:input.btn-primary
|
||||
[:input.btn-primary.btn-large
|
||||
{:type "submit"
|
||||
:class (when-not (:valid form) "btn-disabled")
|
||||
:disabled (not (:valid form))
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
[:span.share-link-subtitle (t locale "viewer.header.share.subtitle")]
|
||||
[:div.share-link-buttons
|
||||
(if (string? token)
|
||||
[:button.btn-delete {:on-click delete}
|
||||
[:button.btn-warning {:on-click delete}
|
||||
(t locale "viewer.header.share.remove-link")]
|
||||
[:button.btn-primary {:on-click create}
|
||||
(t locale "viewer.header.share.create-link")])]]]]))
|
||||
|
@ -133,7 +133,7 @@
|
|||
(when-not anonymous?
|
||||
[:& share-link {:page (:page data)}])
|
||||
(when-not anonymous?
|
||||
[:a {:on-click on-edit}
|
||||
[:a.btn-text-basic.btn-small {:on-click on-edit}
|
||||
(t locale "viewer.header.edit-page")])
|
||||
|
||||
[:& zoom-widget
|
||||
|
@ -144,7 +144,7 @@
|
|||
:on-zoom-to-100 #(st/emit! dv/reset-zoom)
|
||||
:on-zoom-to-200 #(st/emit! dv/zoom-to-200)}]
|
||||
|
||||
[:span.btn-fullscreen.tooltip.tooltip-bottom
|
||||
[:span.btn-icon-dark.btn-small.tooltip.tooltip-bottom
|
||||
{:alt (t locale "viewer.header.fullscreen")
|
||||
:on-click toggle-fullscreen}
|
||||
(if fullscreen?
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
locale (i18n/use-locale)]
|
||||
|
||||
[:div.menu-section
|
||||
[:div.menu-button {:on-click #(reset! show-menu? true)} i/actions]
|
||||
[:div.btn-icon-dark.btn-small {:on-click #(reset! show-menu? true)} i/actions]
|
||||
[:div.project-tree {:alt (t locale "header.sitemap")
|
||||
:class (classnames :selected (contains? layout :sitemap))
|
||||
:on-click toggle-sitemap}
|
||||
|
@ -148,7 +148,7 @@
|
|||
:on-zoom-to-100 #(st/emit! dw/reset-zoom)
|
||||
:on-zoom-to-200 #(st/emit! dw/zoom-to-200)}]
|
||||
|
||||
[:a.preview-button
|
||||
[:a.btn-icon-dark.btn-small
|
||||
{;; :target "__blank"
|
||||
:alt (t locale "workspace.header.viewer")
|
||||
:href (str "#" view-url)} i/play]]]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue