From 834f09c7d121d6a6b16ae73134aec49e4b5fce8a Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Wed, 20 Dec 2023 15:13:17 +0200 Subject: [PATCH] updated ui, updated new invoices path --- app/assets/builds/application.css | 324 ++++++++++++------ app/assets/builds/application.js | 38 +- .../stylesheets/components/_account.scss | 237 ++++++++----- .../stylesheets/components/_address.scss | 59 +++- .../stylesheets/components/_footer.scss | 108 ++++-- .../stylesheets/components/_header.scss | 51 ++- app/assets/stylesheets/components/_login.scss | 4 + app/assets/stylesheets/components/_modal.scss | 67 +++- app/assets/stylesheets/components/_table.scss | 3 +- app/assets/stylesheets/components/_tabs.scss | 4 - .../stylesheets/components/_toolbar.scss | 154 +++++++-- app/assets/stylesheets/mixins/_btn.scss | 6 +- app/assets/stylesheets/objects/_grid.scss | 65 ++-- .../stylesheets/utilities/_background.scss | 2 +- .../stylesheets/utilities/_flexbox.scss | 12 +- app/assets/stylesheets/utilities/_margin.scss | 16 +- .../common/header/component.html.erb | 220 +++++++++--- .../header/component_deprecated.html.erb | 66 ++++ .../header/notification/component.html.erb | 4 +- .../pages/auction/filter/component.html.erb | 12 +- .../outstanding_invoices/component.html.erb | 20 +- ...l_cancelled_payable_invoices_controller.rb | 24 ++ .../pay_all_issued_invoices_controller.rb | 24 ++ app/controllers/invoices_controller.rb | 3 +- app/controllers/users_controller.rb | 4 +- app/helpers/daily_summary_helper.rb | 2 + .../controllers/daily_summary_controller.js | 12 + app/javascript/controllers/index.js | 3 + .../controllers/table/tab_controller.js | 24 +- app/presenters/english_bids_presenter.rb | 2 +- app/views/auctions/index.html.erb | 8 + .../billing_profiles/_billing_info.html.erb | 9 +- app/views/billing_profiles/_form.html.erb | 31 +- app/views/offers/_offer.html.erb | 2 +- app/views/users/_form.html.erb | 16 +- app/views/users/_user_info.html.erb | 6 +- config/locales/invoices.en.yml | 1 + config/locales/invoices.et.yml | 1 + config/routes.rb | 7 + .../daily_summary_controller_test.rb | 8 + 40 files changed, 1214 insertions(+), 445 deletions(-) create mode 100644 app/components/common/header/component_deprecated.html.erb create mode 100644 app/controllers/invoices/pay_all_cancelled_payable_invoices_controller.rb create mode 100644 app/controllers/invoices/pay_all_issued_invoices_controller.rb create mode 100644 app/helpers/daily_summary_helper.rb create mode 100644 app/javascript/controllers/daily_summary_controller.js create mode 100644 test/controllers/daily_summary_controller_test.rb diff --git a/app/assets/builds/application.css b/app/assets/builds/application.css index 27c9d453d..50eed18b5 100644 --- a/app/assets/builds/application.css +++ b/app/assets/builds/application.css @@ -1968,24 +1968,29 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali } } -.c-account .o-grid--two-col { +.c-account .o-grid--two-col, +.c-login .o-grid--two-col { grid-template-columns: repeat(1, 1fr); } @media all and (min-width: 992px) { - .c-account .o-grid--two-col { + .c-account .o-grid--two-col, + .c-login .o-grid--two-col { grid-template-columns: repeat(2, 1fr); } } -.c-account .o-grid--sep { +.c-account .o-grid--sep, +.c-login .o-grid--sep { row-gap: 1.25rem; } @media all and (min-width: 768px) { - .c-account .o-grid--sep { + .c-account .o-grid--sep, + .c-login .o-grid--sep { row-gap: 2.5rem; } } @media all and (min-width: 992px) { - .c-account .o-grid--sep { + .c-account .o-grid--sep, + .c-login .o-grid--sep { row-gap: 3.125rem; column-gap: 3.125rem; } @@ -2660,13 +2665,11 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali .c-toolbar { color: #FFFFFF; display: none; - min-width: 23.4375rem; - width: auto; + width: 23.4375rem; + max-width: 100%; border-radius: 0 0 0.5rem 0.5rem; - overflow: hidden; background-color: #FFFFFF; box-shadow: 0 0 48px rgba(0, 0, 0, 0.06); - background-color: #212224; position: absolute; top: 3.15rem; left: 0; @@ -2681,6 +2684,7 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali min-width: unset; display: block; padding-right: 0; + background-color: #212224; } } @@ -2721,9 +2725,6 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali } } .s-toolbar-nav > li a { - font-weight: 400; -} -.s-toolbar-nav > li a .active { font-weight: 800; } @media all and (min-width: 1120px) { @@ -2736,6 +2737,7 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali gap: 0.375rem; flex-wrap: wrap; align-items: center; + width: 100%; } .s-toolbar-nav li:nth-child(1) a:hover { background-color: #0085ca; @@ -2835,14 +2837,16 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali .s-toolbar-nav li.is-active .submenu li { position: relative; } -.s-toolbar-nav li.is-active .submenu a, .s-toolbar-nav li.is-active .submenu button { +.s-toolbar-nav li.is-active .submenu a, +.s-toolbar-nav li.is-active .submenu button { text-transform: uppercase; font-weight: 500; background: transparent; border: none; } @media all and (min-width: 1120px) { - .s-toolbar-nav li.is-active .submenu a, .s-toolbar-nav li.is-active .submenu button { + .s-toolbar-nav li.is-active .submenu a, + .s-toolbar-nav li.is-active .submenu button { padding: 1.25rem 0; } } @@ -2852,7 +2856,7 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali .s-toolbar-nav .submenu { width: 100%; list-style: none; - padding: 0 0 0.5rem 1.5rem; + padding: 0 0 0 1.5rem; margin: 0; display: none; } @@ -2870,6 +2874,7 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali } .s-toolbar-nav > li:nth-child(2) { background: #48A23F; + box-shadow: 0px 0px 48px 0px rgba(0, 0, 0, 0.12); } @media all and (min-width: 1120px) { .s-toolbar-nav > li:nth-child(2) { @@ -2981,77 +2986,136 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali right: unset; } -.c-toolbar__notice { - display: flex !important; +.s-toolbar-nav .c-toolbar__notice-wrapper { + display: none; +} +@media all and (min-width: 1120px) { + .s-toolbar-nav .c-toolbar__notice-wrapper { + display: flex; + } +} + +.c-header .c-toolbar__notice { + display: flex; gap: 0.5625rem; - color: #FFFFFF; align-items: center; white-space: nowrap; - text-decoration: none; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - padding: 0 1.5rem 0 0 !important; } -.c-toolbar__notice span { +.c-header .c-toolbar__notice span { + text-transform: capitalize; display: flex; gap: 0.25rem; + font-size: 0.875rem; + font-weight: 500; + line-height: 1.25rem; + color: #FFFFFF; } -.c-toolbar__notice sup { +.c-header .c-toolbar__notice sup { top: 0.65em; } @media all and (min-width: 1120px) { - .c-toolbar__notice { + .c-header .c-toolbar__notice { padding: 0 2rem 0 0 !important; } } -.c-toolbar__notice:hover { - color: #212224 !important; +.c-header .c-toolbar__notice:hover svg path { + fill: #E2E2E2; } -.c-toolbar__notice:hover svg { - fill: #212224 !important; +.c-header .c-toolbar__notice:hover span { + color: #E2E2E2; } -.c-header { - background-color: #212224; - color: #FFFFFF; +.c-toolbar__lang-socials { + box-shadow: 0px 0px 48px 0px rgba(0, 0, 0, 0.12); + background: #FFFFFF; + color: #212224; + border-radius: 0 0 0.5rem 0.5rem; + width: 100%; + padding: 1rem 1.5625rem 1.125rem 1rem; display: flex; - align-items: center; - z-index: 99; - position: relative; -} - -.c-header__menu { - display: block; + justify-content: space-between; } @media all and (min-width: 1120px) { - .c-header__menu { + .c-toolbar__lang-socials { display: none; } } +.c-toolbar__lang-socials .c-header__lang .c-dropdown__label__lang { + color: #212224; +} +.c-toolbar__lang-socials .c-header__lang svg { + fill: #212224; +} +.c-toolbar__lang-socials .c-header__lang .c-dropdown__list { + left: -0.5rem; + right: auto; +} -.c-header__lang { +.c-header__tools { + display: flex; + align-items: center; + gap: 20px; margin-left: auto; margin-right: 1.25rem; } @media all and (min-width: 1120px) { - .c-header__lang { + .c-header__tools { margin-right: 2rem; } } @media all and (min-width: 1600px) { - .c-header__lang { + .c-header__tools { margin-left: 0; margin-right: 3.125rem; } } +.c-header__tools .c-toolbar__notice { + display: flex; + text-decoration: none; +} +.c-header__tools .c-toolbar__notice span { + gap: 0; +} +@media all and (min-width: 1120px) { + .c-header__tools .c-toolbar__notice { + margin-right: 2rem; + display: none; + } +} +.c-header__tools .c-header__lang { + display: none; +} +@media all and (min-width: 1120px) { + .c-header__tools .c-header__lang { + display: block; + } +} + +.c-header { + background-color: #212224; + color: #FFFFFF; + display: flex; + align-items: center; + z-index: 99; + position: relative; +} + +.c-header__menu { + display: block; + margin-right: 0.3125rem; +} +@media all and (min-width: 1120px) { + .c-header__menu { + display: none; + } +} .c-header__toggle { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5625rem; - background-color: linear-gradient(90deg, #48A23F 1.35%, #3EB54C 98.65%); + background-color: linear-gradient(90deg, #009DE1 1.35%, #0085CA 98.65%); color: #FFFFFF; border-radius: 0; border: none; @@ -3074,30 +3138,16 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali .c-header__user { display: flex; gap: 0.5625rem; - color: #212224; + color: #FFFFFF; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; - color: var(--Black, #212224); -} -@media all and (min-width: 1120px) { - .c-header__user { - color: #FFFFFF; - } -} -.c-header__user svg { - fill: #212224; -} -@media all and (min-width: 1120px) { - .c-header__user svg { - fill: #FFFFFF; - } } .c-header__user:hover { - color: #212224; + color: #E2E2E2; text-decoration: underline; } @media all and (min-width: 1120px) { @@ -3105,13 +3155,8 @@ input:not([type=checkbox]):not([type=radio]).is-invalid + span, select.is-invali color: #E2E2E2; } } -.c-header__user:hover svg { - fill: #212224; -} -@media all and (min-width: 1120px) { - .c-header__user:hover svg { - fill: #E2E2E2; - } +.c-header__user:hover svg path { + fill: #E2E2E2; } .c-socials { @@ -4463,7 +4508,7 @@ table .c-btn--icon { } .c-footer { - background: linear-gradient(90deg, #003D63 1.35%, #064F7C 98.65%); + background: linear-gradient(90deg, #003d63 1.35%, #064f7c 98.65%); margin-top: 4.375rem; } @media all and (min-width: 768px) { @@ -4483,9 +4528,14 @@ table .c-btn--icon { gap: 2rem; position: relative; } +@media all and (min-width: 768px) { + .c-footer__grid { + gap: 2.5rem; + } +} @media all and (min-width: 1120px) { .c-footer__grid { - gap: 5.3125rem; + gap: 7rem; flex-wrap: nowrap; } } @@ -4501,7 +4551,7 @@ table .c-btn--icon { padding: 1.25rem 1.125rem; transform-origin: bottom left; flex-direction: row; - justify-content: space-evenly; + justify-content: space-around; transform: translateY(-20px); } @media all and (min-width: 768px) { @@ -4511,11 +4561,6 @@ table .c-btn--icon { position: absolute; } } -@media all and (min-width: 992px) { - .c-footer__highlight { - top: -50%; - } -} @media (min-width: 992px) and (max-width: 1044px) { .c-footer__highlight { top: -28%; @@ -4557,22 +4602,24 @@ table .c-btn--icon { @media all and (min-width: 768px) { .c-footer__highlight__grid--row-t { - width: 45%; flex-direction: row; - justify-content: space-between; + justify-content: space-around; + flex: 1; + align-items: flex-end; } } @media all and (min-width: 1120px) { .c-footer__highlight__grid--row-t { width: auto; flex-direction: column; + align-items: center; } } .c-footer__highlight__title { font-weight: 900; - font-size: 0.875rem; - line-height: 1.125rem; + font-size: 1rem; + line-height: 1.25rem; text-align: left; color: #FFFFFF; margin: 0; @@ -4583,23 +4630,27 @@ table .c-btn--icon { } } -.c-footer__highlight__info, .c-footer__highlight__contact { +.c-footer__highlight__info, +.c-footer__highlight__contact { font-weight: 500; - font-size: 0.875rem; + font-size: 1rem; line-height: 1.375rem; text-align: left; color: #FFFFFF; } @media all and (min-width: 1120px) { - .c-footer__highlight__info, .c-footer__highlight__contact { + .c-footer__highlight__info, + .c-footer__highlight__contact { text-align: center; } } -.c-footer__highlight__info a, .c-footer__highlight__contact a { +.c-footer__highlight__info a, +.c-footer__highlight__contact a { color: #FFFFFF; text-decoration: none; } -.c-footer__highlight__info a:hover, .c-footer__highlight__contact a:hover { +.c-footer__highlight__info a:hover, +.c-footer__highlight__contact a:hover { color: #003D63; } @@ -4616,23 +4667,25 @@ table .c-btn--icon { .c-footer__grid__row { display: flex; + justify-content: space-between; flex-wrap: wrap; position: relative; - gap: 2rem; + row-gap: 2rem; flex-grow: 1; padding-top: 0.625rem; padding-bottom: 2.375rem; + justify-content: space-between; } @media all and (min-width: 768px) { .c-footer__grid__row { padding-bottom: 0.625rem; - gap: 4.5rem; + gap: 1.875rem; padding-top: 4.5rem; } } @media all and (min-width: 1120px) { .c-footer__grid__row { - gap: 2rem; + row-gap: 1rem; padding-bottom: 0; flex-wrap: nowrap; justify-content: space-between; @@ -4644,6 +4697,58 @@ table .c-btn--icon { color: #FFFFFF; line-height: 1.5rem; } +.s-footer-col:nth-child(1) { + width: 100%; +} +@media all and (min-width: 768px) { + .s-footer-col:nth-child(1) { + width: 33.3333333333%; + } +} +@media all and (min-width: 1120px) { + .s-footer-col:nth-child(1) { + width: 25%; + } +} +.s-footer-col:nth-child(2) { + width: 100%; +} +@media all and (min-width: 768px) { + .s-footer-col:nth-child(2) { + width: 33.3333333333%; + flex: 1; + } +} +@media all and (min-width: 1120px) { + .s-footer-col:nth-child(2) { + width: 25%; + flex: unset; + } +} +.s-footer-col:nth-child(3) { + width: 100%; +} +@media all and (min-width: 768px) { + .s-footer-col:nth-child(3) { + padding-right: 0; + width: calc(33.3333333333% - 4rem); + flex: unset; + } +} +@media all and (min-width: 1120px) { + .s-footer-col:nth-child(3) { + width: 25%; + } +} +.s-footer-col:nth-child(4) { + width: 100%; +} +@media all and (min-width: 1120px) { + .s-footer-col:nth-child(4) { + width: 25%; + align-items: flex-start; + } +} .s-footer-col p { color: #FFFFFF; } @@ -4658,6 +4763,12 @@ table .c-btn--icon { } .s-footer-col .c-socials { gap: 0.5rem; + margin-bottom: 2.875rem; +} +@media all and (min-width: 1120px) { + .s-footer-col .c-socials { + display: flex; + } } .s-footer-col .c-socials a { width: 1.5rem; @@ -4671,21 +4782,37 @@ table .c-btn--icon { .c-footer__sviiter { position: absolute; - bottom: 2.375rem; + bottom: 2.25rem; right: 0; } -@media all and (min-width: 992px) { +@media all and (min-width: 768px) { + .c-footer__sviiter { + bottom: 3.125rem; + right: 1rem; + } +} +@media all and (min-width: 1120px) { + .c-footer__sviiter { + bottom: 0.625rem; + right: 1rem; + } +} +@media all and (min-width: 1480px) { .c-footer__sviiter { bottom: 0.625rem; + right: 3rem; } } -.c-footer__sviiter svg, .c-footer__sviiter svg path { +.c-footer__sviiter svg, +.c-footer__sviiter svg path { transition: 0.25s; } -.c-footer__sviiter:hover svg, .c-footer__sviiter:hover svg path { +.c-footer__sviiter:hover svg, +.c-footer__sviiter:hover svg path { fill: #FFFFFF; } -.c-footer__sviiter a:hover svg, .c-footer__sviiter a:hover svg path { +.c-footer__sviiter a:hover svg, +.c-footer__sviiter a:hover svg path { fill: #0085ca; } @@ -5121,7 +5248,7 @@ table .c-btn--icon { } @media all and (min-width: 1120px) { .c-table__filters__more { - width: 24.5rem; + width: auto; } } @@ -5836,6 +5963,9 @@ table .c-btn--icon { .c-login__checkbox-container { margin-top: 0.4375rem; } +.c-login__checkbox-container .o-checkbox-text { + white-space: nowrap; +} .c-login__links { flex-wrap: wrap; @@ -5945,11 +6075,13 @@ table .c-btn--icon { padding: 0; } -.c-account__input--editable input, .c-account__input--editable select { +.c-account__input--editable input, +.c-account__input--editable select { border-color: transparent; transition: border 0.5s; } -.c-account__input--editable.is-editable input, .c-account__input--editable.is-editable select { +.c-account__input--editable.is-editable input, +.c-account__input--editable.is-editable select { border: 1px solid #e2e2e2; } diff --git a/app/assets/builds/application.js b/app/assets/builds/application.js index 4d7cb1d6b..3192a67a3 100644 --- a/app/assets/builds/application.js +++ b/app/assets/builds/application.js @@ -7538,6 +7538,12 @@ } }; + // ../../node_modules/@rails/request.js/src/verbs.js + async function get(url, options) { + const request = new FetchRequest2("get", url, options); + return request.perform(); + } + // controllers/form/checkbox_autosubmit_controller.js var checkbox_autosubmit_controller_default = class extends Controller { static targets = ["checkbox"]; @@ -7618,11 +7624,18 @@ // controllers/table/tab_controller.js var tab_controller_default = class extends Controller { - static targets = ["tab", "content"]; + static targets = ["tab", "content", "payablebtn"]; static classes = ["active"]; initialize() { this.showTab = this.showTab.bind(this); } + connect() { + console.log(this.payablebtnTargets); + if (this.payablebtnTargets.length > 0) { + this.payablebtnTargets[0].style.display = "block"; + this.payablebtnTargets[1].style.display = "none"; + } + } showTab(event2) { const index = event2.params.index; this.tabTargets.forEach((tab) => { @@ -7633,6 +7646,18 @@ }); this.tabTargets[index].classList.add(this.activeClass); this.contentTargets[index].classList.add(this.activeClass); + if (this.payablebtnTargets.length > 0) { + if (index == 0) { + this.payablebtnTargets[0].style.display = "block"; + this.payablebtnTargets[1].style.display = "none"; + } else if (index == 1) { + this.payablebtnTargets[1].style.display = "block"; + this.payablebtnTargets[0].style.display = "none"; + } else { + this.payablebtnTargets[0].style.display = "none"; + this.payablebtnTargets[1].style.display = "none"; + } + } } }; @@ -8628,6 +8653,16 @@ } }; + // controllers/daily_summary_controller.js + var daily_summary_controller_default = class extends Controller { + updateDailtSummary(_event) { + clearTimeout(this.timeout); + this.timeout = setTimeout(() => { + get("/profile/toggle_subscription"); + }, 500); + } + }; + // controllers/index.js application.register("modals--offer-modal", offer_modal_controller_default); application.register("modals--modal", modal_controller_default); @@ -8651,6 +8686,7 @@ application.register("cookie-consent", cookie_consent_controller_default); application.register("google-analytics", google_analytics_controller_default); application.register("auction-timezone", auction_timezone_controller_default); + application.register("daily-summary", daily_summary_controller_default); })(); /*! Bundled license information: diff --git a/app/assets/stylesheets/components/_account.scss b/app/assets/stylesheets/components/_account.scss index 34f051f60..09b15cc3b 100644 --- a/app/assets/stylesheets/components/_account.scss +++ b/app/assets/stylesheets/components/_account.scss @@ -1,47 +1,54 @@ -.c-account__title-wrapper{ +.c-account__title-wrapper { flex-direction: column-reverse; - @include mq(tablet){ + + @include mq(tablet) { flex-direction: row; } } -.c-account__title{ +.c-account__title { margin-top: 0; margin-bottom: rem(24px); - @include mq(tablet){ + + @include mq(tablet) { margin-bottom: rem(32px); } } -.c-account--mainpage{ +.c-account--mainpage { .c-account_editicons { - &> svg:first-child{ + &>svg:first-child { display: none; } } } + .c-account_editicons { gap: 8px; height: rem(32px); margin-bottom: rem(24px); - &> svg{ + + &>svg { cursor: pointer; opacity: 1; transition: opacity .3s; - &:nth-last-child(-n + 2){ + + &:nth-last-child(-n + 2) { display: none; } - &:hover{ + + &:hover { opacity: .7; } } - &.is-editable{ - >svg{ - &:nth-last-child(-n + 2){ + &.is-editable { + >svg { + &:nth-last-child(-n + 2) { display: inline-flex; } - &:nth-child(-n + 2){ + + &:nth-child(-n + 2) { display: none; } } @@ -53,56 +60,71 @@ gap: 0; max-width: 450px; justify-content: space-between; - @include mq(tablet){ + + @include mq(tablet) { column-gap: 15px; justify-content: flex-start; } + .c-account__input { width: 100%; flex-shrink: 0; - @include mq(mobile){ + + @include mq(mobile) { width: 50%; } - @include mq(tablet){ + + @include mq(tablet) { width: rem(131px); } - &:last-child{ - @include mq(tablet){ + + &:last-child { + @include mq(tablet) { width: rem(165px); } } } - span{ + + span { font-weight: 500; font-size: rem(14px); line-height: rem(24px); padding: rem(12px 16px); - &:last-child{ + + &:last-child { padding-right: 0; } } - - .c-account__input--readonly{ - label{ + + .c-account__input--readonly { + label { margin-bottom: rem(20px); } - input{ + + input { border: 0; padding: 0; } } } -.c-account__input--editable{ - input,select{ + +.c-account__input--editable { + + input, + select { border-color: transparent; transition: border .5s; } - &.is-editable{ - input,select{ + + &.is-editable { + + input, + select { border: 1px solid #e2e2e2; } } } + .c-account__checkbox { gap: 16px; @@ -110,16 +132,19 @@ margin: 0; } } + .c-account .c-account__checkbox label { margin: 0; margin-top: rem(5px); } + .c-account__chekboxtitle { color: $black-color; font-size: rem(14px); font-weight: 500; line-height: rem(24px); } + .c-acount__link { color: $primary-blue-color; font-size: rem(14px); @@ -129,116 +154,144 @@ margin-bottom: rem(30px); display: block; } -.c-acount__buttons{ + +.c-acount__buttons { gap: 5px; - @include mq(mobile){ + + @include mq(mobile) { gap: 10px; } - @include mq(tablet){ + + @include mq(tablet) { gap: 24px; } } -.c-acount__button{ + +.c-acount__button { font-size: rem(11px); - @include mq(mobile){ + + @include mq(mobile) { font-size: rem(14px); } } -.c-acount__button--icon{ + +.c-acount__button--icon { display: inline-flex; align-items: center; gap: 10px; } + .c-account__label-explain { display: flex; justify-content: space-between; + span { font-weight: 500; - &:first-child{ + + &:first-child { display: block; - @include mq(tablet){ + + @include mq(tablet) { display: inline-block; } } } - & > span { + + &>span { color: $grey-400-color; margin-right: rem(16px); display: none; - @include mq(tablet){ + + @include mq(tablet) { display: block; } - @include mq(laptop){ + + @include mq(laptop) { display: none; } - @include mq(menu){ + + @include mq(menu) { display: block; } } - } - -.c-account__input-explain{ -color: $grey-400-color; -text-align: right; -font-size: rem(14px); -font-weight: 500; -line-height: rem(24px); -display: block; -@include mq(tablet){ - display: none; } -@include mq(laptop){ + +.c-account__input-explain { + color: $grey-400-color; + text-align: right; + font-size: rem(14px); + font-weight: 500; + line-height: rem(24px); display: block; + + @include mq(tablet) { + display: none; + } + + @include mq(laptop) { + display: block; + } + + @include mq(menu) { + display: none; + } } -@include mq(menu){ - display: none; -} -} + .c-account__title--password { margin-bottom: rem(24px); + @include mq(tablet) { - margin-bottom: rem(32px); + margin-bottom: rem(32px); } } + .o-checkbox-text { -margin-left: rem(8px); -@include mq(tablet){ - margin-left: rem(16px); -} -white-space: normal; -&:first-child { - margin-bottom: rem(24px); - @include mq(tablet){ - margin-bottom: rem(32px); -} -} -a { - color: $primary-blue-color; - text-decoration: underline; -} -} + margin-left: rem(8px); + + @include mq(tablet) { + margin-left: rem(16px); + } + white-space: normal; -.c-account__title--confirm{ -margin-bottom: rem(8px); -} -.c-account__subtitle{ -font-size: rem(14px); -font-weight: 500; -line-height: rem(24px); -margin: rem(0 0 16px 0); -@include mq(tablet){ - margin: rem(0 0 24px 0); -} -@include mq(laptop){ - margin: rem(0 0 32px 0); -} + &:first-child { + margin-bottom: rem(24px); + + @include mq(tablet) { + margin-bottom: rem(32px); + } + } + + a { + color: $primary-blue-color; + text-decoration: underline; + } } -.c-account__btns{ -justify-content: center; -@include mq(laptop){ - justify-content: flex-start; + + +.c-account__title--confirm { + margin-bottom: rem(8px); } + +.c-account__subtitle { + font-size: rem(14px); + font-weight: 500; + line-height: rem(24px); + margin: rem(0 0 16px 0); + + @include mq(tablet) { + margin: rem(0 0 24px 0); + } + + @include mq(laptop) { + margin: rem(0 0 32px 0); + } } - \ No newline at end of file +.c-account__btns { + justify-content: center; + + @include mq(laptop) { + justify-content: flex-start; + } +} diff --git a/app/assets/stylesheets/components/_address.scss b/app/assets/stylesheets/components/_address.scss index 16317b7ae..4450311a0 100644 --- a/app/assets/stylesheets/components/_address.scss +++ b/app/assets/stylesheets/components/_address.scss @@ -1,87 +1,108 @@ -.c-account--adresses{ +.c-account--adresses { .c-account_editicons { width: 100%; - @include mq(laptop){ + + @include mq(laptop) { width: unset; } } - input{ + + input { max-width: 550px; } - .c-account__input-title{ - input{ + + .c-account__input-title { + input { border-radius: 0; } - &.is-editable{ - input{ + + &.is-editable { + input { border-color: transparent; border-bottom-color: $grey-200-color; } } } - .c-account__input-wrapper{ + + .c-account__input-wrapper { max-width: 100%; flex-wrap: wrap; column-gap: 8px; - @include mq(tablet){ + + @include mq(tablet) { column-gap: 16px; } - .c-account__input{ - input{ + + .c-account__input { + input { width: 100%; } + select { cursor: pointer; min-width: 62px; width: fit-content; background-position: right 0.6rem center; } - &:nth-child(1){ + + &:nth-child(1) { width: 100%; } + &:nth-child(2) { width: 88px; } + &:nth-child(3) { width: 88px; } + &:nth-child(4) { width: fit-content; } - @include mq(tablet){ - &:nth-child(1){ + + @include mq(tablet) { + &:nth-child(1) { width: 200px; } + &:nth-child(2) { width: 130px; } + &:nth-child(3) { width: 108px; } } - @include mq(desktop){ - &:nth-child(1){ + + @include mq(desktop) { + &:nth-child(1) { width: 100%; } + &:nth-child(2) { width: 88px; } + &:nth-child(3) { width: 88px; } } - @include mq(menu){ - &:nth-child(1){ + + @include mq(menu) { + &:nth-child(1) { width: 200px; } + &:nth-child(2) { width: 130px; } + &:nth-child(3) { width: 108px; } } } - + } } \ No newline at end of file diff --git a/app/assets/stylesheets/components/_footer.scss b/app/assets/stylesheets/components/_footer.scss index f96cad010..aa82f38a1 100644 --- a/app/assets/stylesheets/components/_footer.scss +++ b/app/assets/stylesheets/components/_footer.scss @@ -1,12 +1,11 @@ .c-footer { - background: linear-gradient(90deg, #003D63 1.35%, #064F7C 98.65%); + background: linear-gradient(90deg, #003d63 1.35%, #064f7c 98.65%); margin-top: rem(70px); @include mq(tablet) { margin-top: rem(185px); } - @include mq(desktop) { margin-top: rem(105px); } @@ -17,9 +16,11 @@ flex-wrap: wrap; gap: rem(32px); position: relative; - + @include mq(tablet) { + gap: rem(40px); + } @include mq(desktop) { - gap: rem(85px); + gap: rem(112px); flex-wrap: nowrap; } } @@ -35,7 +36,7 @@ padding: rem(20px 18px); transform-origin: bottom left; flex-direction: row; - justify-content: space-evenly; + justify-content: space-around; transform: translateY(-20px); @include mq(tablet) { @@ -44,10 +45,6 @@ position: absolute; } - @include mq(laptop) { - top: -50%; - } - @media (min-width: 992px) and (max-width: 1044px) { top: -28%; } @@ -84,21 +81,23 @@ .c-footer__highlight__grid--row-t { @include mq(tablet) { - width: 45%; flex-direction: row; - justify-content: space-between; + justify-content: space-around; + flex: 1; + align-items: flex-end; } @include mq(desktop) { width: auto; flex-direction: column; + align-items: center; } } .c-footer__highlight__title { font-weight: 900; - font-size: rem(14px); - line-height: rem(18px); + font-size: rem(16px); + line-height: rem(20px); text-align: left; color: $white-color; margin: 0; @@ -108,9 +107,10 @@ } } -.c-footer__highlight__info, .c-footer__highlight__contact { +.c-footer__highlight__info, +.c-footer__highlight__contact { font-weight: 500; - font-size: rem(14px); + font-size: rem(16px); line-height: rem(22px); text-align: left; color: $white-color; @@ -143,21 +143,23 @@ .c-footer__grid__row { display: flex; + justify-content: space-between; flex-wrap: wrap; position: relative; - gap: rem(32px); + row-gap: rem(32px); flex-grow: 1; padding-top: rem(10px); padding-bottom: rem(38px); + justify-content: space-between; @include mq(tablet) { padding-bottom: rem(10px); - gap: rem(72px); + gap: rem(30px); padding-top: rem(72px); } @include mq(desktop) { - gap: rem(32px); + row-gap: rem(16px); padding-bottom: 0; flex-wrap: nowrap; justify-content: space-between; @@ -169,6 +171,47 @@ color: $white-color; line-height: rem(24px); + &:nth-child(1) { + width: 100%; + @include mq(tablet) { + width: calc(100% / 3); + } + @include mq(desktop) { + width: calc(100% / 4); + } + } + &:nth-child(2) { + width: 100%; + @include mq(tablet) { + width: calc(100% / 3); + flex: 1; + } + @include mq(desktop) { + width: calc(100% / 4); + flex: unset; + } + } + &:nth-child(3) { + width: 100%; + @include mq(tablet) { + padding-right: 0; + width: calc(100% / 3 - 4rem); + flex: unset; + } + @include mq(desktop) { + width: calc(100% / 4); + } + } + &:nth-child(4) { + width: 100%; + + @include mq(desktop) { + width: calc(100% / 4); + align-items: flex-start; + } + + } + p { color: $white-color; } @@ -186,6 +229,10 @@ .c-socials { gap: rem(8px); + margin-bottom: rem(46px); + @include mq(desktop) { + display: flex; + } a { width: rem(24px); @@ -202,26 +249,37 @@ .c-footer__sviiter { position: absolute; - bottom: rem(38px); + bottom: rem(36px); right: 0; - @include mq(laptop) { + @include mq(tablet) { + bottom: rem(50px); + right: rem(16px); + } + @include mq(desktop) { bottom: rem(10px); + right: 1rem; } - - svg, svg path { + @include mq(menu) { + bottom: rem(10px); + right: 3rem; + } + svg, + svg path { transition: $transition; } &:hover { - svg, svg path { + svg, + svg path { fill: $white-color; } } a:hover { - svg, svg path { + svg, + svg path { fill: $primary-blue-color; } } -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/components/_header.scss b/app/assets/stylesheets/components/_header.scss index 80ab86aed..4696fe75d 100644 --- a/app/assets/stylesheets/components/_header.scss +++ b/app/assets/stylesheets/components/_header.scss @@ -9,31 +9,32 @@ .c-header__menu { display: block; + margin-right: rem(5px); @include mq(desktop) { display: none; } } -.c-header__lang { - margin-left: auto; - margin-right: rem(20px); - @include mq(desktop) { - margin-right: rem(32px); - } +// .c-header__lang { +// margin-left: auto; +// margin-right: rem(20px); +// @include mq(desktop) { +// margin-right: rem(32px); +// } - @include mq(ultra) { - margin-left: 0; - margin-right: rem(50px); - } -} +// @include mq(ultra) { +// margin-left: 0; +// margin-right: rem(50px); +// } +// } .c-header__toggle { display: flex; align-items: center; gap: rem(16px); padding: rem(16px 25px); - background-color: $gradient-green; + background-color: $gradient-blue; color: $white-color; border-radius: 0; border: none; @@ -55,34 +56,22 @@ .c-header__user { display: flex; gap: rem(9px); - color: $black-color; + color: $white-color; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: rem(14px); line-height: rem(20px); - color: var(--Black, #212224); - @include mq(desktop){ - color: $white-color; - } - svg { - fill: $black-color; - @include mq(desktop){ - fill: $white-color; - } - } + &:hover { - color: $black-color; + color: $grey-200-color; text-decoration: underline; - @include mq(desktop){ + @include mq(desktop) { color: $grey-200-color; } - svg { - fill: $black-color; - @include mq(desktop){ - fill: $grey-200-color; - } + svg path { + fill: $grey-200-color; } } -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/components/_login.scss b/app/assets/stylesheets/components/_login.scss index eea5550be..592e4ce44 100644 --- a/app/assets/stylesheets/components/_login.scss +++ b/app/assets/stylesheets/components/_login.scss @@ -45,6 +45,10 @@ } .c-login__checkbox-container{ margin-top: rem(7px); + + .o-checkbox-text{ + white-space: nowrap; + } } .c-login__links { flex-wrap: wrap; diff --git a/app/assets/stylesheets/components/_modal.scss b/app/assets/stylesheets/components/_modal.scss index 869ba7b1c..d69fed945 100644 --- a/app/assets/stylesheets/components/_modal.scss +++ b/app/assets/stylesheets/components/_modal.scss @@ -31,20 +31,24 @@ scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: $grey-400-color $grey-100-color; + /* width */ ::-webkit-scrollbar { width: 20px; border-radius: 12px; } + /* Track */ ::-webkit-scrollbar-track { background: $grey-100-color; border-radius: rem(20px); } + /* Handle */ ::-webkit-scrollbar-thumb { background: $grey-400-color; } + max-height: calc(98vh - 2.5rem); @include mq(tablet) { @@ -159,20 +163,25 @@ gap: rem(0 40px); } } -.c-modal__grid--gap{ - &:nth-child(-n + 2){ + +.c-modal__grid--gap { + &:nth-child(-n + 2) { gap: rem(12px); - @include mq(tablet){ + + @include mq(tablet) { gap: rem(20px); } + @include mq(laptop) { gap: rem(30px); } + @include mq(desktop) { gap: rem(40px); } } } + .c-modal__main { padding: rem(40px 0); } @@ -205,41 +214,52 @@ padding: rem(24px); width: calc(50% - 1.25rem); } - h3{ + + h3 { line-height: 30px; } } -.c-modal__main__info__wrapper{ + +.c-modal__main__info__wrapper { height: 100%; padding: rem(24px 0 0 0); + @include mq(desktop) { padding: rem(24px 6px 0 0); } } + .c-modal__main__info--black { background-color: $black-color; color: $white-color; } + .c-modal__main__info--orange { background: $gradient-orange-secondary; color: $white-color; } -.c-modal__main__info--white{ + +.c-modal__main__info--white { background-color: $white-color; padding: 0; - span{ + + span { text-align: left; } } -.c-modal__main__info--wide{ + +.c-modal__main__info--wide { width: 100%; - @include mq(tablet){ - width:calc(50% - .75rem); + + @include mq(tablet) { + width: calc(50% - .75rem); } + @include mq(laptop) { width: calc(50% - 0.9375rem); } - @include mq(desktop){ + + @include mq(desktop) { width: calc(50% - 1.25rem); } } @@ -320,6 +340,7 @@ line-height: rem(14px); text-decoration: underline; color: $primary-blue-color; + &:hover { color: $black-color; } @@ -361,6 +382,7 @@ padding: rem(8px 0); } } + .c-modal.c-modal--bill { .c-modal__grid { gap: rem(30px); @@ -377,12 +399,15 @@ gap: rem(0 40px); } } + .c-modal__main { padding: rem(30px 0 50px 0); + @include mq(tablet) { padding: rem(40px 0); } } + .c-modal__scroll__content { padding: rem(40px 20px 30px 20px); @@ -390,34 +415,43 @@ padding: rem(40px); } } + .c-modal__header__title { color: $grey-400-color; } + .c-modal__text-title { margin-bottom: 20px; padding-left: 0; } + .c-modal__text { color: $black-color; font-size: rem(14px); font-weight: 500; line-height: rem(24px); } + .c-modal__extrainfo { gap: 70px; } + td { word-break: break-all; + strong { word-break: break-all; } } + thead { th { background-color: $grey-400-color; + &:first-child { padding: 0; font-size: 0; + @include mq(tablet) { padding: rem(8px 16px); font-size: 14px; @@ -425,25 +459,31 @@ } } } + tbody { tr { transition: background 0.3s; + td { transition: font-weight 0.3s; + &:first-child { padding: 0; font-size: 0; + @include mq(tablet) { padding: rem(8px 16px); font-size: 14px; } } } + &:hover { background-color: $grey-100-color; } } } + tfoot { td { background-color: $black-color; @@ -452,12 +492,15 @@ border: 0; } } + .c-modal__footer { margin-bottom: 20px; + .c-btn { font-size: rem(14px); } } + .c-modal__col { width: 100%; @@ -489,4 +532,4 @@ .c-modal__header { padding-bottom: rem(10px); } -} +} \ No newline at end of file diff --git a/app/assets/stylesheets/components/_table.scss b/app/assets/stylesheets/components/_table.scss index 1b7290190..5e1688a53 100644 --- a/app/assets/stylesheets/components/_table.scss +++ b/app/assets/stylesheets/components/_table.scss @@ -153,7 +153,8 @@ } @include mq(desktop) { - width: rem(392px); + // width: rem(392px); + width: auto; } } diff --git a/app/assets/stylesheets/components/_tabs.scss b/app/assets/stylesheets/components/_tabs.scss index 1ffc8d567..2cec36566 100644 --- a/app/assets/stylesheets/components/_tabs.scss +++ b/app/assets/stylesheets/components/_tabs.scss @@ -84,10 +84,6 @@ align-self: center; } -.c-tabs__content { - -} - .c-tabs__content__tab { display: none; diff --git a/app/assets/stylesheets/components/_toolbar.scss b/app/assets/stylesheets/components/_toolbar.scss index ad209ad25..4a4cac207 100644 --- a/app/assets/stylesheets/components/_toolbar.scss +++ b/app/assets/stylesheets/components/_toolbar.scss @@ -1,12 +1,11 @@ .c-toolbar { color: $white-color; display: none; - min-width: rem(375px); - width: auto; + width: rem(375px); + max-width: 100%; border-radius: rem(0 0 8px 8px); - overflow: hidden; + // overflow: hidden; @include box-shadow-light; - background-color: $black-color; position: absolute; top: rem(50.4px); left: 0; @@ -20,6 +19,7 @@ min-width: unset; display: block; padding-right: 0; + background-color: $black-color; } } @@ -56,12 +56,8 @@ flex-direction: row; } - & > li a { - font-weight: 400; - - .active { - font-weight: 800; - } + &>li a { + font-weight: 800; @include mq(desktop) { font-weight: 500; @@ -73,25 +69,31 @@ gap: rem(6px); flex-wrap: wrap; align-items: center; + width: 100%; &:nth-child(1) a:hover { background-color: $primary-blue-color; color: $white-color; } + &:nth-child(2) a:hover { background-color: $primary-green-color; color: $white-color; } + &:nth-child(3) a:hover { background-color: $primary-orange-color; color: $white-color; } + &:nth-child(4) a:hover { background-color: $secondary-blue-color; color: $white-color; } - &:nth-child(n+5) a:hover { + + &:nth-child(n + 5) a:hover { color: $white-color; + @include mq(desktop) { background-color: #000000; } @@ -115,10 +117,9 @@ white-space: nowrap; &:hover { - @include mq(desktop) { - color: $primary-blue-color; - } + color: $primary-blue-color; + } } @include mq(desktop) { @@ -128,7 +129,7 @@ } li.is-active { - & > a { + &>a { @include mq(desktop) { box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.2); } @@ -160,6 +161,7 @@ .submenu { display: block; + @include mq(desktop) { background-color: $primary-blue-color; display: flex; @@ -179,7 +181,8 @@ } } - .submenu a, .submenu button { + .submenu a, + .submenu button { text-transform: uppercase; font-weight: 500; background: transparent; @@ -198,7 +201,7 @@ .submenu { width: 100%; list-style: none; - padding: rem(0 0 8px 24px); + padding: rem(0 0 0 24px); margin: 0; display: none; @@ -208,7 +211,7 @@ } } - & > li { + &>li { padding: rem(16px 0); @include mq(desktop) { @@ -217,11 +220,13 @@ &:nth-child(2) { background: $primary-green-color; + box-shadow: 0px 0px 48px 0px rgba(0, 0, 0, 0.12); @include mq(desktop) { background: transparent; } } + &:nth-child(3) { background: $primary-orange-color; @@ -229,6 +234,7 @@ background: transparent; } } + &:nth-child(4) { background: $secondary-blue-color; @@ -236,6 +242,7 @@ background: transparent; } } + &:nth-child(5) { background: $black-color; @@ -313,7 +320,6 @@ display: flex; justify-content: space-between; - @include mq(desktop) { margin-right: 0; width: auto; @@ -332,21 +338,28 @@ } } -.c-toolbar__notice { - display: flex !important; +.s-toolbar-nav .c-toolbar__notice-wrapper { + display: none; + + @include mq(desktop) { + display: flex; + } +} + +.c-header .c-toolbar__notice { + display: flex; gap: rem(9px); - color: $white-color; align-items: center; white-space: nowrap; - text-decoration: none; - font-weight: 500; - font-size: rem(14px); - line-height: rem(20px); - padding: rem(0 24px 0 0) !important; span { + text-transform: capitalize; display: flex; gap: rem(4px); + font-size: rem(14px); + font-weight: 500; + line-height: rem(20px); + color: $white-color; } sup { @@ -358,10 +371,93 @@ } &:hover { - color: $black-color !important; + svg path { + fill: $grey-200-color; + } + + span { + color: $grey-200-color; + } + } +} + +.c-toolbar__lang-socials { + box-shadow: 0px 0px 48px 0px rgba(0, 0, 0, 0.12); + background: $white-color; + color: $black-color; + border-radius: 0 0 0.5rem 0.5rem; + width: 100%; + padding: rem(16px 25px 18px 16px); + display: flex; + justify-content: space-between; + + @include mq(desktop) { + display: none; + } + + .c-header__lang { + .c-dropdown__label__lang { + color: $black-color; + } svg { - fill: $black-color !important; + fill: $black-color; + } + + .c-dropdown__list { + left: -0.5rem; + right: auto; + } + } +} + +// .c-header__lang { +// margin-left: auto; +// margin-right: rem(20px); +// @include mq(desktop) { +// margin-right: rem(32px); +// } + +// @include mq(ultra) { +// margin-left: 0; +// margin-right: rem(50px); +// } +// } +.c-header__tools { + display: flex; + align-items: center; + gap: 20px; + margin-left: auto; + margin-right: rem(20px); + + @include mq(desktop) { + margin-right: rem(32px); + } + + @include mq(ultra) { + margin-left: 0; + margin-right: rem(50px); + } + + .c-toolbar__notice { + display: flex; + text-decoration: none; + + span { + gap: 0; + } + + @include mq(desktop) { + margin-right: rem(32px); + display: none; + } + } + + .c-header__lang { + display: none; + + @include mq(desktop) { + display: block; } } } \ No newline at end of file diff --git a/app/assets/stylesheets/mixins/_btn.scss b/app/assets/stylesheets/mixins/_btn.scss index 6309c0ca8..1bb7bc472 100644 --- a/app/assets/stylesheets/mixins/_btn.scss +++ b/app/assets/stylesheets/mixins/_btn.scss @@ -45,10 +45,11 @@ @include btn; background: $secondary-blue-color; border: 1px solid $secondary-blue-color; + &:hover { background: $white-color; color: $secondary-blue-color; - + } } @@ -61,6 +62,7 @@ color: $black-color; } } + @mixin btn-white { @include btn; background: $white-color; @@ -93,4 +95,4 @@ &:hover { background: $black-color; } -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/objects/_grid.scss b/app/assets/stylesheets/objects/_grid.scss index a7b221452..144661d77 100644 --- a/app/assets/stylesheets/objects/_grid.scss +++ b/app/assets/stylesheets/objects/_grid.scss @@ -25,11 +25,13 @@ grid-template-columns: repeat(2, 1fr); } } + .o-grid--two-col-laptop { @include mq(laptop) { grid-template-columns: repeat(2, 1fr); } } + .o-grid--two-col-desktop { @include mq(desktop) { grid-template-columns: repeat(2, 1fr); @@ -45,42 +47,55 @@ .o-grid--sep { row-gap: rem(48px); } -.o-grid--wishlist{ + +.o-grid--wishlist { row-gap: rem(24px); - @include mq(tablet){ - row-gap: rem(40px); + + @include mq(tablet) { + row-gap: rem(40px); } - @include mq(laptop){ - row-gap: 0; + + @include mq(laptop) { + row-gap: 0; } } -.o-grid--auction{ + +.o-grid--auction { column-gap: rem(24px); - @include mq(tablet){ - column-gap: rem(50px); + + @include mq(tablet) { + column-gap: rem(50px); } } -.o-grid--auction-cards{ + +.o-grid--auction-cards { column-gap: rem(16px); - @include mq(laptop){ - column-gap: rem(48px); + + @include mq(laptop) { + column-gap: rem(48px); } } -.c-account { + +.c-account, +.c-login { .o-grid--two-col { - grid-template-columns: repeat(1,1fr); - @include mq(laptop){ - grid-template-columns: repeat(2,1fr); - } + grid-template-columns: repeat(1, 1fr); + + @include mq(laptop) { + grid-template-columns: repeat(2, 1fr); + } } + .o-grid--sep { - row-gap: rem(20px); - @include mq(tablet){ - row-gap: rem(40px); - } - @include mq(laptop){ - row-gap: rem(50px); - column-gap: rem(50px); - } + row-gap: rem(20px); + + @include mq(tablet) { + row-gap: rem(40px); + } + + @include mq(laptop) { + row-gap: rem(50px); + column-gap: rem(50px); + } } -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/utilities/_background.scss b/app/assets/stylesheets/utilities/_background.scss index fefad96a4..b426cbc83 100644 --- a/app/assets/stylesheets/utilities/_background.scss +++ b/app/assets/stylesheets/utilities/_background.scss @@ -8,4 +8,4 @@ .u-bg-silver-gradient { background: linear-gradient(90deg, #EEEEF0 0%, #FFFFFF 24.48%, #EEEEF0 51.56%, #FFFFFF 77.08%, #EEEEF0 100%); -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/utilities/_flexbox.scss b/app/assets/stylesheets/utilities/_flexbox.scss index b8f35588e..e9a7e7d9c 100644 --- a/app/assets/stylesheets/utilities/_flexbox.scss +++ b/app/assets/stylesheets/utilities/_flexbox.scss @@ -1,7 +1,8 @@ -.u-flex{ +.u-flex { display: flex; } -.u-flex-col{ + +.u-flex-col { flex-direction: column; } @@ -18,12 +19,15 @@ .u-align-center { align-items: center; } + .u-align-start { align-items: flex-start; } -.u-align-end{ + +.u-align-end { align-items: flex-end; } + .u-content-center { justify-content: center; } @@ -31,9 +35,11 @@ .u-content-sp { justify-content: space-between; } + .u-content-start { justify-content: flex-start; } + .u-content-end { justify-content: flex-end; } diff --git a/app/assets/stylesheets/utilities/_margin.scss b/app/assets/stylesheets/utilities/_margin.scss index f16b2e7d0..980eabbce 100644 --- a/app/assets/stylesheets/utilities/_margin.scss +++ b/app/assets/stylesheets/utilities/_margin.scss @@ -1,6 +1,7 @@ .u-mt-0 { margin-top: rem(0); } + .u-mt-24 { margin-top: rem(24px); } @@ -17,6 +18,7 @@ .u-mt-48 { margin-top: rem(48px); } + .u-mt-60 { margin-top: rem(60px); } @@ -31,6 +33,7 @@ margin-top: rem(40px); } } + .u-mb-60 { margin-bottom: rem(60px); } @@ -38,26 +41,33 @@ .u-mb-48 { margin-bottom: rem(48px); } + .u-mb-40 { margin-bottom: rem(40px); } + .u-mb-40-l { - @include mq(tablet){ + @include mq(tablet) { margin-bottom: rem(40px); } } + .u-mb-30-48 { margin-bottom: rem(30px); - @include mq(tablet){ + + @include mq(tablet) { margin-bottom: rem(48px); } } + .u-mb-36 { margin-bottom: rem(36px); } + .u-mb-30 { margin-bottom: rem(30px); } + .u-mb-20 { margin-bottom: rem(20px); } @@ -84,4 +94,4 @@ .u-ml-4 { margin-left: rem(4px); -} \ No newline at end of file +} diff --git a/app/components/common/header/component.html.erb b/app/components/common/header/component.html.erb index bf844b89e..52525fe0e 100644 --- a/app/components/common/header/component.html.erb +++ b/app/components/common/header/component.html.erb @@ -1,42 +1,159 @@
-
- -
-
-
-
- -
-
+
+ <% if user_signed_in? %> + + + + + + (<%= current_user&.notifications&.unread&.count %>) + + + + + <% end %> + + <% if user_signed_in? %> <%= link_to destroy_user_session_path, class: "c-header__user", method: :delete, data: { 'turbo-method': 'delete' } do %> <%= render 'svg/person' %><%= t(:sign_out) %> @@ -46,20 +163,21 @@ <%= render 'svg/person' %><%= t(:sign_in) %> <% end %> <% end %> -
-
-
-
-
-
-
- - <%= current_language %><%= render 'svg/down_arrow' %> - -
    - <%= languages %> -
+
+
+ + + <%= current_language %> + + <%= render 'svg/down_arrow' %> + + +
    + <%= languages %> +
+ +
+
-
-
\ No newline at end of file + diff --git a/app/components/common/header/component_deprecated.html.erb b/app/components/common/header/component_deprecated.html.erb new file mode 100644 index 000000000..c0407cf2a --- /dev/null +++ b/app/components/common/header/component_deprecated.html.erb @@ -0,0 +1,66 @@ +
+
+ +
+
+
+
+ +
+ +
+ <% if user_signed_in? %> + <%= link_to destroy_user_session_path, class: "c-header__user", method: :delete, data: { 'turbo-method': 'delete' } do %> + <%= render 'svg/person' %><%= t(:sign_out) %> + <% end %> + <% else %> + <%= link_to new_user_session_path, class: "c-header__user" do %> + <%= render 'svg/person' %><%= t(:sign_in) %> + <% end %> + <% end %> +
+
+
+
+
+ +
+
+ + <%= current_language %><%= render 'svg/down_arrow' %> + +
    + <%= languages %> +
+
+
+
\ No newline at end of file diff --git a/app/components/common/header/notification/component.html.erb b/app/components/common/header/notification/component.html.erb index 532326b60..141fcde14 100644 --- a/app/components/common/header/notification/component.html.erb +++ b/app/components/common/header/notification/component.html.erb @@ -1,6 +1,6 @@ <% if user_signed_in? %> -