diff --git a/app/assets/stylesheets/components/_change-address-modal.scss b/app/assets/stylesheets/components/_change-address-modal.scss new file mode 100644 index 000000000..cbbaf33f7 --- /dev/null +++ b/app/assets/stylesheets/components/_change-address-modal.scss @@ -0,0 +1,12 @@ +.change-address-modal { + .modal-dialog { + height: 70%; + transition: 0.5s; + position: absolute; + bottom: 0px; + } + .modal-content { + border-radius: 16px 16px 0px 0px; + box-shadow: 0px 0px 16px rgba(140, 48, 245, 0.2); + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/components/_index.scss b/app/assets/stylesheets/components/_index.scss index 63919a7e5..e7a324de0 100644 --- a/app/assets/stylesheets/components/_index.scss +++ b/app/assets/stylesheets/components/_index.scss @@ -46,3 +46,5 @@ @import "bg-top"; @import "bg-bubble"; @import "background-waves"; +@import "payment-modal"; +@import "change-address-modal"; diff --git a/app/assets/stylesheets/components/_payment-modal.scss b/app/assets/stylesheets/components/_payment-modal.scss new file mode 100644 index 000000000..ad1efbe4a --- /dev/null +++ b/app/assets/stylesheets/components/_payment-modal.scss @@ -0,0 +1,18 @@ +.payment-modal { + .modal-dialog { + height: 70%; + transition: 0.5s; + position: absolute; + bottom: 0px; + } + .modal-content { + border-radius: 16px 16px 0px 0px; + box-shadow: 0px 0px 16px rgba(140, 48, 245, 0.2); + } + label { + color: $grey; + } + #card-cvc-element { + width: 60px; + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/steps/checkouts/_new.scss b/app/assets/stylesheets/steps/checkouts/_new.scss index d0a0bf93c..3793d76af 100644 --- a/app/assets/stylesheets/steps/checkouts/_new.scss +++ b/app/assets/stylesheets/steps/checkouts/_new.scss @@ -1,7 +1,6 @@ .pricing { font-size: 14px; .pricing-card { - color: #18191fa6; display: flex; align-items: center; margin-bottom: 1rem; @@ -10,6 +9,7 @@ margin-right: 12px; img { width: 50px; + border-radius: 4px; } } .pricing-details { @@ -25,11 +25,15 @@ flex-direction: column; width: 100%; .name { - font-weight: bold; + font-weight: 500; } .description { padding-right: 0.9em; } + .price { + font-weight: 700; + font-size: 13px; + } } .product-price { font-weight: bold; @@ -38,16 +42,29 @@ } } .total-price { - color: #18191fa6; .total { font-size: 18px; - font-weight: bold; + font-weight: 700; } } .old-price { font-weight: 200; font-size: 16px; } + .bg-bubble { + top: -10%; + left: -20%; + } + .subscription-details { + .details { + font-size: 14px; + font-weight: 400; + color: #3E3E3E; + } + } + .pointer { + cursor: pointer; + } } .legals { color: $grey; diff --git a/app/javascript/controllers/address_controller.js b/app/javascript/controllers/address_controller.js index 4512d1fb6..0aca8515f 100644 --- a/app/javascript/controllers/address_controller.js +++ b/app/javascript/controllers/address_controller.js @@ -26,7 +26,7 @@ export default class extends Controller { address.classList.toggle("d-none"); address.value = ""; address.type = "text"; - document.querySelector('.mapboxgl-ctrl').classList.toggle('d-none'); + document.getElementById('mapbox').classList.toggle('d-none'); } cleanCountryCode(e) { diff --git a/app/views/steps/checkout/_change_address_modal.html.erb b/app/views/steps/checkout/_change_address_modal.html.erb new file mode 100644 index 000000000..b676964a6 --- /dev/null +++ b/app/views/steps/checkout/_change_address_modal.html.erb @@ -0,0 +1,29 @@ +
diff --git a/app/views/steps/checkout/_new.html.erb b/app/views/steps/checkout/_new.html.erb index da1175bff..f9c73ab16 100644 --- a/app/views/steps/checkout/_new.html.erb +++ b/app/views/steps/checkout/_new.html.erb @@ -1,13 +1,14 @@