diff --git a/hotel-bogota-passive-negotiation-website/src/BookingModal/BookingModal.css b/hotel-bogota-passive-negotiation-website/src/BookingModal/BookingModal.css index 0b676a83e..11c40d661 100644 --- a/hotel-bogota-passive-negotiation-website/src/BookingModal/BookingModal.css +++ b/hotel-bogota-passive-negotiation-website/src/BookingModal/BookingModal.css @@ -26,18 +26,28 @@ top: 37px; text-align: center; height: 100px; + max-height: 272px; + animation: fadeInSlide 1s; + overflow: scroll; } -.discountTicketContainer, .discountAppliedContainer { +.discountTicketContainer { max-height: 272px; animation: fadeIn 1s; + overflow: scroll; } @keyframes fadeIn { 0% { opacity: 0; } - 50% { opacity: 0; } + 50% { opacity: 0; } 100% { opacity: 1; } } +@keyframes fadeInSlide { + 0% { opacity: 0; transform: translateY(-100%); } + 50% { opacity: 0; } + 100% { opacity: 1; transform: translateY(0); } +} + .smallCopy { font-weight: 500; text-align: center; @@ -60,6 +70,10 @@ transform: scale(0.9); } +.ticketWrapper { + transform: scale(0.9); +} + /* override Google Material */ .MuiDialogActions-root { diff --git a/hotel-bogota-passive-negotiation-website/src/BookingModal/index.js b/hotel-bogota-passive-negotiation-website/src/BookingModal/index.js index 73bdab728..457603aa8 100644 --- a/hotel-bogota-passive-negotiation-website/src/BookingModal/index.js +++ b/hotel-bogota-passive-negotiation-website/src/BookingModal/index.js @@ -23,6 +23,7 @@ export default function BookingModal({ }) { // Modal State (open boolean) const [open, setOpen] = React.useState(false); + const [loading, setLoading] = React.useState(true); // Form state. const [formInput, setFormInput] = useReducer( @@ -74,8 +75,13 @@ export default function BookingModal({ localStorage.removeItem("booking-room-type"); setOpen(true); } + setTimeout(() => { + setLoading(false); + }, 2000); }, [discount]); + + return (
} + {!discount.value && loading === false && + + }