From 9cff7e8b3c59f99ec6e0813532ac847277d35849 Mon Sep 17 00:00:00 2001 From: a-mikhailova Date: Tue, 11 Jan 2022 13:20:58 +0300 Subject: [PATCH 01/13] fix: header layout --- packages/apps/src/apps.scss | 137 ++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 76 deletions(-) diff --git a/packages/apps/src/apps.scss b/packages/apps/src/apps.scss index 05091dfd..6bf55396 100644 --- a/packages/apps/src/apps.scss +++ b/packages/apps/src/apps.scss @@ -36,12 +36,11 @@ background-color: transparent; padding: 0; width: auto; + height: 64px; margin-right: calc((var(--gap) / 2) * 3); img { - width: auto; - max-width: 130px; - height: 50px; + width: 100%; } } } @@ -49,7 +48,7 @@ } .user-icon { - display: none; + display: none; } .mark { @@ -86,13 +85,11 @@ padding-right: 10.25px; display: flex; align-items: center; - margin-bottom: 3px; } &:hover { - .item-icon{ - - svg{ + .item-icon { + svg { fill: var(--button-color); } } @@ -121,7 +118,7 @@ .account-selector-block { max-width: 500px; - .address{ + .address { text-align: left; } } @@ -149,6 +146,7 @@ justify-content: space-between; align-items: center; max-width: var(--max-header-width); + height: 64px; } } @@ -159,7 +157,6 @@ } .manage-balances { - &.popup { position: absolute; display: none; @@ -216,7 +213,7 @@ } } - .popup-link{ + .popup-link { & a { cursor: pointer; color: var(--button-color); @@ -315,8 +312,7 @@ height: 16px; color: var(--link-color); display: inline-block; - background: url("../../react-components/src/AccountButtonGroup/images/warning-alert.svg") - no-repeat; + background: url("../../react-components/src/AccountButtonGroup/images/warning-alert.svg") no-repeat; background-size: contain; } } @@ -352,6 +348,11 @@ .menu-mobile-header { .menu-icon { cursor: pointer; + height: 32px; + } + + .icon { + height: 100%; } } @@ -362,7 +363,7 @@ a.create-account-btn { padding: 8px 24px; - border:1px solid var(--button-color); + border: 1px solid var(--button-color); border-radius: 4px !important; color: var(--link-color); font-family: var(--font-roboto); @@ -372,17 +373,17 @@ &:hover { background-color: var(--button-background-hover); - color: var(--link-color)!important; + color: var(--link-color) !important; } - &.active{ + &.active { pointer-events: none; border-color: var(--button-background-disabled-border); - color:var(--button-background-disabled); + color: var(--button-background-disabled); background: transparent; } - &:before{ + &:before { display: none; } } @@ -418,24 +419,6 @@ } } -@media (min-width: 1441px) { -} - -@media (max-width: 1440px) { -} - -/* @media (min-width: 1025px) { - .app-header { - .app-user { - .account-selector-block { - .mobile-account-selector { - display: none; - } - } - } - } -} */ - @media (max-width: 1279px) { .app-header { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); @@ -449,6 +432,7 @@ display: flex; align-items: center; grid-column-gap: var(--gap); + height: 100%; } .app-user { @@ -494,9 +478,26 @@ text-align: center; margin-bottom: var(--gap); } + + &--link { + display: block; + width: 100%; + font-family: var(--font-roboto); + font-weight: 500; + font-size: 16px; + margin: 4px 0; + padding: 8px 16px; + color: var(--header-text-color); + + &.active { + background-color: var(--link-color); + border-radius: 4px; + color: var(--card-background); + } + } } - .app-main { + .app-main { &.menu { display: none; } @@ -511,6 +512,8 @@ .ui.tabular.header-menu.menu { display: inline-flex; + align-items: center; + height: 64px; } .app-user { @@ -541,7 +544,7 @@ padding: 0; } - &.page-no-found{ + &.page-no-found { background-color: var(--bg-page); } } @@ -550,7 +553,8 @@ width: 25%; } - .menu-mobile, .manage-accounts { + .menu-mobile, + .manage-accounts { margin-top: 84px; } @@ -568,6 +572,12 @@ } } + .app-logo { + img{ + height: 100%; + } + } + .app-user { display: block !important; @@ -575,6 +585,13 @@ display: none; } } + + .app-container { + &--header { + height: 48px; + } + } + .menu-mobile-header { display: block; } @@ -605,7 +622,7 @@ } .user-icon { - display: block; + display: block; } .menu-arrow { @@ -617,7 +634,6 @@ display: none; } } - } .manage-accounts { @@ -636,7 +652,7 @@ background-color: var(--white-color); z-index: 999; - a{ + a { border-bottom: 1px solid var(--border-color); display: block; width: 100%; @@ -678,7 +694,7 @@ font-family: var(--font-roboto); font-weight: 500; - div{ + div { max-width: 300px; white-space: nowrap; overflow: hidden; @@ -717,11 +733,11 @@ } } -.ui.popup.attributes{ +.ui.popup.attributes { left: -12px !important; } -.ui.top.popup.help{ +.ui.top.popup.help { top: 10px !important; } @@ -743,34 +759,3 @@ border: 1px solid var(--input-background-color); } } - -@media (max-width: 1279px) { - .menu-mobile { - padding: var(--gap); - display: flex; - flex-direction: column; - background-color: var(--card-background); - - &--logo { - text-align: center; - margin-bottom: var(--gap); - } - - &--link { - display: block; - width: 100%; - font-family: var(--font-roboto); - font-weight: 500; - font-size: 16px; - margin: 4px 0; - padding: 8px 16px; - color: var(--header-text-color); - - &.active { - background-color: var(--link-color); - border-radius: 4px; - color: var(--card-background); - } - } - } -} From 6dcc5a90e2dad566334d27e4952285a3197a436e Mon Sep 17 00:00:00 2001 From: a-mikhailova Date: Tue, 11 Jan 2022 14:46:26 +0300 Subject: [PATCH 02/13] NFTPAR-1071 decrease mobile-heading --- packages/apps/styles/global.scss | 30 +++++++++---------- .../components/MainInformation/styles.scss | 22 ++++++++++---- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/packages/apps/styles/global.scss b/packages/apps/styles/global.scss index 3f3f8e22..27cb2bc2 100644 --- a/packages/apps/styles/global.scss +++ b/packages/apps/styles/global.scss @@ -24,7 +24,7 @@ body { .ui.popup { background: var(--bg-page) !important; - a{ + a { color: unset; cursor: pointer; text-decoration: underline; @@ -88,7 +88,7 @@ h1.ui.header { } h2.ui.header { - font: 700 28px/38px var(--font-inter); + font: 700 28px/42px var(--font-inter); color: var(--title-color); margin-bottom: calc(var(--gap) / 2); } @@ -198,7 +198,7 @@ h4.ui.header { height: 48px; & .menu > .item { - padding: 8px calc( (var(--gap) / 2) * 5) !important; + padding: 8px calc((var(--gap) / 2) * 5) !important; } } @@ -247,11 +247,11 @@ h4.ui.header { color: var(--text-color); &:after { - left: calc(50% - 12px);; + left: calc(50% - 12px); } &:before { - left: calc(50% - 12px);; + left: calc(50% - 12px); } .load-more { @@ -412,7 +412,9 @@ form { padding: 1rem var(--gap); } -button.ui.button, .button-link, .ui--Button { +button.ui.button, +.button-link, +.ui--Button { display: flex; justify-content: center; align-items: center; @@ -621,10 +623,10 @@ button.ui.button, .button-link, .ui--Button { border-radius: 4px; padding: 32px; - &.empty{ + &.empty { height: 100%; display: flex; - flex-direction:column; + flex-direction: column; justify-content: center; align-items: center; } @@ -657,7 +659,6 @@ button.ui.button, .button-link, .ui--Button { .ui--Labelled { .ui.input.ui--Input { - &.left { input { padding-right: 4rem !important; @@ -702,15 +703,14 @@ button.ui.button, .button-link, .ui--Button { padding: 8px 10.25px; margin: 0 !important; - img{ + img { margin-right: 10.25px; } div { - p { margin: 0; - color:var(--modal-warning-text-color); + color: var(--modal-warning-text-color); font-family: var(--font-roboto); padding: 0.3rem 1.5rem 0 0 !important; } @@ -761,6 +761,8 @@ button.ui.button, .button-link, .ui--Button { @media (max-width: 1023px) { h1.ui.header { + font-size: 28px; + line-height: 42px; margin-top: calc(var(--gap) * 1.5) !important; padding: 0 var(--gap); } @@ -771,7 +773,6 @@ button.ui.button, .button-link, .ui--Button { } .ui.page.modals { - .ui--Modal.modal { .ui--Row-address { font-size: 14px !important; @@ -779,13 +780,12 @@ button.ui.button, .button-link, .ui--Button { } .content { - .TextAreaWithDropdown { flex-direction: column; .ui--CopyButton.copyMoved { right: 13px; - top: 13px + top: 13px; } .ui.buttons { diff --git a/packages/page-builder/src/components/MainInformation/styles.scss b/packages/page-builder/src/components/MainInformation/styles.scss index f647ec74..4f3644e2 100644 --- a/packages/page-builder/src/components/MainInformation/styles.scss +++ b/packages/page-builder/src/components/MainInformation/styles.scss @@ -1,18 +1,18 @@ -.main-information{ +.main-information { background-color: var(--white-color); font-family: var(--font-roboto); - .header-text{ + .header-text { font-family: var(--font-inter); font-weight: bold; font-size: 28px; line-height: 42px; } - .info-block{ + .info-block { margin-top: calc(var(--gap) * 2); - h2{ + h2 { color: var(--title-color); font-family: var(--font-roboto); font-weight: 500; @@ -31,15 +31,25 @@ } } +@media (max-width: 1023px) { + .main-information { + .header-text { + font-weight: 600; + font-size: 20px; + line-height: 28px; + } + } +} + @media (max-width: 767px) { - .main-information{ + .main-information { box-shadow: none; padding: var(--gap); } } @media (max-width: 320px) { - .main-information{ + .main-information { box-shadow: none; padding: var(--gap); } From 8202fe6af9c956d20a15a17d0f84bb82295add0c Mon Sep 17 00:00:00 2001 From: a-mikhailova Date: Wed, 12 Jan 2022 10:28:19 +0300 Subject: [PATCH 03/13] bug-NFTPAR-1072-footer-layout --- packages/apps/src/Footer/Footer.tsx | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/packages/apps/src/Footer/Footer.tsx b/packages/apps/src/Footer/Footer.tsx index aae57e58..895b906f 100644 --- a/packages/apps/src/Footer/Footer.tsx +++ b/packages/apps/src/Footer/Footer.tsx @@ -102,7 +102,7 @@ export default memo(styled(Footer)` .app-footer__social-links { display: flex; - grid-column-gap: calc(var(--gap)/2); + grid-column-gap: var(--gap); a { display: flex; @@ -116,33 +116,15 @@ export default memo(styled(Footer)` @media (max-width: 1023px) { border-top: 1px solid var(--enum-input-border-disabled-color); - padding: calc(var(--gap) / 2) calc((var(--gap) / 2) * 3); - - .app-footer--container { - align-items: flex-start; - flex-direction: column; - grid-row-gap: calc(var(--gap) / 2); - } } @media (max-width: 767px) { - border-top: 1px solid var(--enum-input-border-disabled-color); - - .app-footer--container { - align-items: flex-start; - flex-direction: column; - grid-row-gap: calc(var(--gap) / 2); - } - } - - @media (max-width: 320px) { - border-top: 1px solid var(--enum-input-border-disabled-color); padding: var(--gap); .app-footer--container { align-items: flex-start; flex-direction: column; - grid-row-gap: calc(var(--gap)/2); + grid-row-gap: var(--gap); } } `); From 3f65b54a84f252581e60a2511dab455a90896271 Mon Sep 17 00:00:00 2001 From: a-mikhailova Date: Thu, 13 Jan 2022 09:57:40 +0300 Subject: [PATCH 04/13] feat: preview-button in process --- packages/apps/src/Apps.tsx | 2 +- packages/apps/src/apps.scss | 9 ++- .../src/containers/CollectionPage/index.tsx | 14 ++-- .../src/containers/CollectionPage/styles.scss | 74 +++++++++---------- .../CollectionPage/usePreviewMode.ts | 17 +++++ 5 files changed, 70 insertions(+), 46 deletions(-) create mode 100644 packages/page-builder/src/containers/CollectionPage/usePreviewMode.ts diff --git a/packages/apps/src/Apps.tsx b/packages/apps/src/Apps.tsx index 5f6e9e88..c7b69334 100644 --- a/packages/apps/src/Apps.tsx +++ b/packages/apps/src/Apps.tsx @@ -185,12 +185,12 @@ function Apps ({ className = '' }: Props): React.ReactElement { )} +