From b5b7ec155b9b37053ffebfc941ffbc71de10471f Mon Sep 17 00:00:00 2001 From: Luis Miguel Date: Fri, 2 Feb 2024 16:20:09 +0100 Subject: [PATCH] CMS UI/UX improvements (#393) * Left Arrow to go back from the page editor * Make content for small screens (desktop) a bit wider * Improve margins in Setup and CMS screens for different screen sizes * Moving Lexical icons again to a better place --- .../lib/components/settings/PageEditor.svelte | 12 +- web/frontoffice/src/routes/+layout.svelte | 2 +- web/frontoffice/src/routes/cms/+page.svelte | 2 +- .../src/routes/settings/+page.svelte | 2 +- .../images/icons}/arrow-clockwise.svg | 0 .../images/icons}/arrow-counterclockwise.svg | 0 .../lexical-editor/images/icons}/bg-color.svg | 0 .../lexical-editor/images/icons}/camera.svg | 0 .../images/icons}/card-checklist.svg | 0 .../images/icons}/caret-right-fill.svg | 0 .../images/icons}/chat-left-text.svg | 0 .../images/icons}/chat-right-dots.svg | 0 .../images/icons}/chat-right-text.svg | 0 .../images/icons}/chat-right.svg | 0 .../images/icons}/chat-square-quote.svg | 0 .../images/icons}/chevron-down.svg | 0 .../images/icons}/clipboard.svg | 0 .../lexical-editor/images/icons}/close.svg | 0 .../lexical-editor/images/icons}/code.svg | 0 .../lexical-editor/images/icons}/comments.svg | 0 .../lexical-editor/images/icons}/copy.svg | 0 .../images/icons}/diagram-2.svg | 0 .../lexical-editor/images/icons}/download.svg | 0 .../images/icons}/draggable-block-menu.svg | 0 .../images/icons}/dropdown-more.svg | 0 .../lexical-editor/images/icons}/figma.svg | 0 .../images/icons}/file-earmark-text.svg | 0 .../images/icons}/file-image.svg | 0 .../images/icons}/filetype-gif.svg | 0 .../images/icons}/font-color.svg | 0 .../images/icons}/font-family.svg | 0 .../lexical-editor/images/icons}/gear.svg | 0 .../images/icons}/horizontal-rule.svg | 0 .../lexical-editor/images/icons}/indent.svg | 0 .../images/icons}/journal-code.svg | 0 .../images/icons}/journal-text.svg | 0 .../lexical-editor/images/icons}/justify.svg | 0 .../lexical-editor/images/icons}/link.svg | 0 .../lexical-editor/images/icons}/list-ol.svg | 0 .../lexical-editor/images/icons}/list-ul.svg | 0 .../images/icons}/lock-fill.svg | 0 .../lexical-editor/images/icons}/lock.svg | 0 .../lexical-editor/images/icons}/markdown.svg | 0 .../lexical-editor/images/icons}/mic.svg | 0 .../lexical-editor/images/icons}/outdent.svg | 0 .../images/icons}/paint-bucket.svg | 0 .../lexical-editor/images/icons}/palette.svg | 0 .../images/icons}/pencil-fill.svg | 0 .../images/icons}/plug-fill.svg | 0 .../lexical-editor/images/icons}/plug.svg | 0 .../images/icons}/plus-slash-minus.svg | 0 .../lexical-editor/images/icons}/plus.svg | 0 .../images/icons}/prettier-error.svg | 0 .../lexical-editor/images/icons}/prettier.svg | 0 .../lexical-editor/images/icons}/send.svg | 0 .../images/icons}/square-check.svg | 0 .../lexical-editor/images/icons}/sticky.svg | 0 .../images/icons}/success-alt.svg | 0 .../lexical-editor/images/icons}/success.svg | 0 .../lexical-editor/images/icons}/table.svg | 0 .../images/icons}/text-center.svg | 0 .../images/icons}/text-left.svg | 0 .../images/icons}/text-paragraph.svg | 0 .../images/icons}/text-right.svg | 0 .../lexical-editor/images/icons}/trash.svg | 0 .../lexical-editor/images/icons}/trash3.svg | 0 .../lexical-editor/images/icons}/tweet.svg | 0 .../images/icons}/type-bold.svg | 0 .../lexical-editor/images/icons}/type-h1.svg | 0 .../lexical-editor/images/icons}/type-h2.svg | 0 .../lexical-editor/images/icons}/type-h3.svg | 0 .../lexical-editor/images/icons}/type-h4.svg | 0 .../lexical-editor/images/icons}/type-h5.svg | 0 .../lexical-editor/images/icons}/type-h6.svg | 0 .../images/icons}/type-italic.svg | 0 .../images/icons}/type-strikethrough.svg | 0 .../images/icons}/type-subscript.svg | 0 .../images/icons}/type-superscript.svg | 0 .../images/icons}/type-underline.svg | 0 .../lexical-editor/images/icons}/upload.svg | 0 .../lexical-editor/images/icons}/user.svg | 0 .../lexical-editor/images/icons}/youtube.svg | 0 .../pagebuilder/lexical-editor/lexical.css | 176 +++++++++--------- 83 files changed, 101 insertions(+), 93 deletions(-) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/arrow-clockwise.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/arrow-counterclockwise.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/bg-color.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/camera.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/card-checklist.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/caret-right-fill.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chat-left-text.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chat-right-dots.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chat-right-text.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chat-right.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chat-square-quote.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/chevron-down.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/clipboard.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/close.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/code.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/comments.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/copy.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/diagram-2.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/download.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/draggable-block-menu.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/dropdown-more.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/figma.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/file-earmark-text.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/file-image.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/filetype-gif.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/font-color.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/font-family.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/gear.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/horizontal-rule.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/indent.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/journal-code.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/journal-text.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/justify.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/link.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/list-ol.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/list-ul.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/lock-fill.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/lock.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/markdown.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/mic.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/outdent.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/paint-bucket.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/palette.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/pencil-fill.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/plug-fill.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/plug.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/plus-slash-minus.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/plus.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/prettier-error.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/prettier.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/send.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/square-check.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/sticky.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/success-alt.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/success.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/table.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/text-center.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/text-left.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/text-paragraph.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/text-right.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/trash.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/trash3.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/tweet.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-bold.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h1.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h2.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h3.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h4.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h5.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-h6.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-italic.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-strikethrough.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-subscript.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-superscript.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/type-underline.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/upload.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/user.svg (100%) rename web/{frontoffice/static/images/icons/lexical => shared/src/lib/components/pagebuilder/lexical-editor/images/icons}/youtube.svg (100%) diff --git a/web/frontoffice/src/lib/components/settings/PageEditor.svelte b/web/frontoffice/src/lib/components/settings/PageEditor.svelte index 617f0f95..a0cd4472 100644 --- a/web/frontoffice/src/lib/components/settings/PageEditor.svelte +++ b/web/frontoffice/src/lib/components/settings/PageEditor.svelte @@ -21,6 +21,7 @@ import BuilderSectionSetup from "$sharedLib/components/pagebuilder/BuilderSectionSetup.svelte"; import {onMount} from "svelte"; import AlertInfo from "$sharedLib/components/icons/AlertInfo.svelte"; + import ArrowLeft from "$sharedLib/components/icons/ArrowLeft.svelte"; // General let logoURL = ''; @@ -134,7 +135,14 @@ {/if} {#if selectedPageId} - selectedPageId = null} href={null}>- Back - +
+
selectedPageId = null}> + +
+
selectedPageId = null}> + Back +
+

Editing {getPage(selectedPageId, $NostrGlobalConfig).title} page content.

{#if selectedPageId && selectedPageId !== '0'} @@ -163,7 +171,7 @@

Add sections here, and set them up to display what you need to show in each of them.

-
+