diff --git a/src/components/project/ClientBrief/Images.vue b/src/components/project/ClientBrief/Images.vue index c609852..5bcf94c 100644 --- a/src/components/project/ClientBrief/Images.vue +++ b/src/components/project/ClientBrief/Images.vue @@ -83,58 +83,101 @@
- Ajouter une ou plusieurs images - - - - -
+
Tag
+ +
+ +
+ + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+
+ + @@ -223,7 +266,7 @@ @@ -284,7 +327,7 @@ fieldset { border: none; } -[data-pc-name="fileupload"] button { +button[data-icon="upload"] { padding: 6.875rem 4.875rem; } [data-pc-name="fileupload"] button:hover { @@ -296,19 +339,14 @@ input[type="file"] { display: none; } +[role="dialog"] { + position: relative; +} [data-pc-section="mask"] { background-color: var(--color-black-50); } -[data-pc-name="dialog"] { - flex-direction: row !important; - position: relative; -} -[data-pc-name="dialog"] [data-pc-section="header"] { - position: absolute; - left: 50%; - right: 0; - z-index: 1102; - padding: 1.5rem var(--space-32); +[data-pc-section="header"] { + height: var(--space-40); } [data-pc-section="title"] { font-weight: 500; @@ -319,6 +357,8 @@ input[type="file"] { top: var(--space-16); right: var(--space-16); padding: 0.625rem; + width: var(--space-40); + height: var(--space-40); } [data-pc-name="pcclosebutton"] svg { width: 1.25rem; @@ -327,13 +367,87 @@ input[type="file"] { [data-pc-name="pcclosebutton"] span { display: none; } -[data-pc-name="dialog"] [data-pc-section="content"] { +[data-pc-section="content"] { + flex-grow: 1; +} + + +#add-images { + --sidebar-width: 12.5rem; + counter-set: selected-images; + width: min(100vw - var(--gutter) * 2, 100rem); + height: min(100vh - var(--gutter) * 2, 60rem); + padding-top: var(--space-16); + row-gap: var(--space-32); +} +#add-images nav li { + position: relative; + height: var(--space-48); + border-left: 1px solid var(--color-grey-400); + padding: var(--space-12) var(--space-16); + color: var(--color-grey-400); + font-weight: 500; + cursor: pointer; +} +#add-images nav li:hover, +#add-images nav li.active { + color: var(--color-grey-800); + border-left-color: var(--color-grey-800); +} +#add-images nav li.active::before { + content: ''; + width: 2px; + position: absolute; + top: 0; + left: -1px; + bottom: 0; + background: var(--color-grey-800); +} +#add-images [data-pc-name="fileupload"] button { + padding: 3rem; + aspect-ratio: 1/1; +} +#add-images .image { + counter-increment: selected-images; + aspect-ratio: 1/1; + border-radius: var(--rounded-xl); +} +#add-images .image::after { + content: counter(selected-images); + top: var(--space-12); + right: var(--space-12); + border-radius: 50%; + color: var(--color-white); + font-weight: 700; + background: var(--color-grey-800); + mask: none; + display: grid; + place-items: center; + text-align: center; + width: 1.5rem; + height: 1.5rem; +} + + +#image-details { + width: min(100vw - var(--gutter) * 2, 62.5rem); + height: min(100vh - var(--gutter) * 2, 50rem); + flex-direction: row !important; +} +#image-details [data-pc-section="header"] { + position: absolute; + left: 50%; + right: 0; + z-index: 1102; + padding: 1.5rem var(--space-32); +} +#image-details [data-pc-section="content"] { display: flex; } -[data-pc-name="dialog"] [data-pc-section="content"] > * { +#image-details [data-pc-section="content"] > * { width: 50%; } -[data-pc-name="dialog"] [data-pc-section="content"] > div { +#image-details [data-pc-section="content"] > div { padding-top: 5rem; }