[bc20307] | 1 | import styled from 'styled-components';
|
---|
| 2 | import CIcon from '@mui/icons-material/Close';
|
---|
| 3 | import Box from '@mui/material/Box';
|
---|
| 4 | import { Button, TextField } from '@mui/material';
|
---|
| 5 | import CreditCardIcon from '@mui/icons-material/CreditCard';
|
---|
| 6 |
|
---|
| 7 | export const Wrapper = styled.div`
|
---|
| 8 | display: flex;
|
---|
| 9 | flex-direction: column;
|
---|
| 10 | width: 100%;
|
---|
| 11 | min-height: 100%;
|
---|
| 12 | max-width: 500px;
|
---|
| 13 | border-radius: 10px;
|
---|
| 14 | position: relative;
|
---|
| 15 | `;
|
---|
| 16 |
|
---|
| 17 | export const ButtonWrapper = styled.div`
|
---|
| 18 | bottom: 0;
|
---|
| 19 | margin: auto;
|
---|
| 20 | margin-top: 5vh;
|
---|
| 21 | `;
|
---|
| 22 |
|
---|
| 23 | export const ModalContainer = styled(Box).attrs({
|
---|
| 24 | width: 350,
|
---|
| 25 | minHeight: 421,
|
---|
| 26 | bgcolor: '#2b7878fa',
|
---|
| 27 | boxShadow: 24,
|
---|
| 28 | zIndex: 100,
|
---|
| 29 | marginBottom: '10%',
|
---|
| 30 | color: 'whiteSmoke',
|
---|
| 31 | })`
|
---|
| 32 | padding-bottom: 16px;
|
---|
| 33 | display: flex;
|
---|
| 34 | flex-direction: column;
|
---|
| 35 | align-content: center;
|
---|
| 36 | position: relative;
|
---|
| 37 | `;
|
---|
| 38 |
|
---|
| 39 | export const CloseIcon = styled(CIcon).attrs({
|
---|
| 40 | sx: {
|
---|
| 41 | color: 'red',
|
---|
| 42 | fontSize: '2.5rem',
|
---|
| 43 | },
|
---|
| 44 | })``;
|
---|
| 45 |
|
---|
| 46 | export const KeyValueWrapper = styled.div`
|
---|
| 47 | text-align: center;
|
---|
| 48 | margin-bottom: 20px;
|
---|
| 49 | `;
|
---|
| 50 |
|
---|
| 51 | export const Key = styled.p`
|
---|
| 52 | margin: 0;
|
---|
| 53 | margin-bottom: 10px;
|
---|
| 54 | font-size: 1.15rem;
|
---|
| 55 | `;
|
---|
| 56 |
|
---|
| 57 | export const Value = styled.p`
|
---|
| 58 | margin: 0;
|
---|
| 59 | font-weight: 600;
|
---|
| 60 | font-size: 1.25rem;
|
---|
| 61 | `;
|
---|
| 62 |
|
---|
| 63 | export const PaymentMethodWrapper = styled.div`
|
---|
| 64 | display: flex;
|
---|
| 65 | flex-direction: row;
|
---|
| 66 | align-items: center;
|
---|
| 67 | justify-content: center;
|
---|
| 68 | width: 100%;
|
---|
| 69 | `;
|
---|
| 70 |
|
---|
| 71 | export const PayWithText = styled.p`
|
---|
| 72 | margin: 0;
|
---|
| 73 | display: inline-block;
|
---|
| 74 | font-size: 1.15rem;
|
---|
| 75 | margin-right: 40px;
|
---|
| 76 | `;
|
---|
| 77 |
|
---|
| 78 | export const PaymentMethodsWrapper = styled.div`
|
---|
| 79 | display: flex;
|
---|
| 80 | flex-direction: column;
|
---|
| 81 | justify-content: space-between;
|
---|
| 82 |
|
---|
| 83 | span {
|
---|
| 84 | font-size: 1.15rem;
|
---|
| 85 | font-weight: 600;
|
---|
| 86 | }
|
---|
| 87 | `;
|
---|
| 88 |
|
---|
| 89 | export const PayButtonWrapper = styled.div`
|
---|
| 90 | width: 100%;
|
---|
| 91 | text-align: center;
|
---|
| 92 | margin-top: 50px;
|
---|
| 93 | `;
|
---|
| 94 |
|
---|
| 95 | export const ModalPayButton = styled(Button).attrs((props) => ({
|
---|
| 96 | variant: 'contained',
|
---|
| 97 | size: 'large',
|
---|
| 98 | sx: {
|
---|
| 99 | backgroundColor: `${props.theme.palette.primary.main}`,
|
---|
| 100 | fontSize: '1.25rem',
|
---|
| 101 | },
|
---|
| 102 | }))`
|
---|
| 103 | :hover {
|
---|
| 104 | background-color: ${(props) => props.theme.palette.primary.dark};
|
---|
| 105 | }
|
---|
| 106 | `;
|
---|
| 107 |
|
---|
| 108 | export const CardDetails = styled.div`
|
---|
| 109 | display: flex;
|
---|
| 110 | flex-direction: column;
|
---|
| 111 | width: 100%;
|
---|
| 112 | padding: 0 30px;
|
---|
| 113 | `;
|
---|
| 114 |
|
---|
| 115 | export const DateAndCCVWrapper = styled.div`
|
---|
| 116 | display: flex;
|
---|
| 117 | flex-direction: row;
|
---|
| 118 | width: 100%;
|
---|
| 119 | justify-content: space-between;
|
---|
| 120 | padding-right: 5%;
|
---|
| 121 | `;
|
---|
| 122 |
|
---|
| 123 | export const ModalInput = styled(TextField).attrs({
|
---|
| 124 | fullWidth: true,
|
---|
| 125 | sx: {
|
---|
| 126 | marginTop: '10px',
|
---|
| 127 | padding: 0,
|
---|
| 128 | },
|
---|
| 129 | })`
|
---|
| 130 | input {
|
---|
| 131 | text-align: center;
|
---|
| 132 | font-size: 1.15rem;
|
---|
| 133 | font-weight: 500;
|
---|
| 134 | border: 2px solid ${(props) => props.theme.palette.primary.main};
|
---|
| 135 | border-radius: 10px;
|
---|
| 136 | width: 100%;
|
---|
| 137 | color: whiteSmoke;
|
---|
| 138 | :focus {
|
---|
| 139 | border: 2px dashed ${(props) => props.theme.palette.primary.main};
|
---|
| 140 | }
|
---|
| 141 | ::placeholder {
|
---|
| 142 | opacity: 0.6;
|
---|
| 143 | }
|
---|
| 144 | }
|
---|
| 145 | > div {
|
---|
| 146 | padding: 0;
|
---|
| 147 | }
|
---|
| 148 | fieldset,
|
---|
| 149 | .Mui-focused {
|
---|
| 150 | border: 0;
|
---|
| 151 | }
|
---|
| 152 | `;
|
---|
| 153 |
|
---|
| 154 | export const ModalInputCardNumber = styled(ModalInput)`
|
---|
| 155 | input {
|
---|
| 156 | padding-left: 42px;
|
---|
| 157 | }
|
---|
| 158 | fieldset {
|
---|
| 159 | position: relative;
|
---|
| 160 | }
|
---|
| 161 | `;
|
---|
| 162 |
|
---|
| 163 | export const CreditCard = styled(CreditCardIcon).attrs((props) => ({
|
---|
| 164 | sx: {
|
---|
| 165 | fontSize: '2rem',
|
---|
| 166 | color: `${props.theme.palette.primary.main}`,
|
---|
| 167 | position: 'absolute',
|
---|
| 168 | marginLeft: '10px',
|
---|
| 169 | },
|
---|
| 170 | }))``;
|
---|