You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CreateOffer.styled.js 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. import { Box, Container, Typography } from "@mui/material";
  2. import styled, { css } from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
  5. import { Label } from "../../CheckBox/Label";
  6. import Select from "../../Select/Select";
  7. export const ModalCreateOfferContainer = styled(Box)`
  8. background-color: #fff;
  9. position: fixed;
  10. ${(props) => props.currentstep === 3 && `overflow-y: auto;`}
  11. max-height: 90vh;
  12. top: ${(props) =>
  13. props.currentstep === 1 ? "calc(50% - 400px);" : "calc(50% - 350px);"};
  14. left: ${(props) =>
  15. props.currentstep !== 3 ? "calc(50% - 310px);" : "calc(50% - 405px);"};
  16. z-index: 150;
  17. padding: ${(props) => (props.currentstep !== 3 ? "0 120px" : "0 36px")};
  18. overflow-y: auto;
  19. overflow-x: hidden;
  20. /* ${(props) => props.currentstep === 3 && `height: 712px;`} */
  21. &::-webkit-scrollbar {
  22. width: 5px;
  23. }
  24. &::-webkit-scrollbar-track {
  25. background: #ddd;
  26. }
  27. &::-webkit-scrollbar-thumb {
  28. background: #777;
  29. }
  30. scrollbar-width: thin;
  31. scrollbar-color: #ddd;
  32. @media (max-height: 820px) {
  33. top: ${(props) =>
  34. props.currentstep === 1 ? "calc(50% - 340px)" : "calc(50% - 340px)"};
  35. }
  36. @media (max-width: 810px) {
  37. left: ${(props) =>
  38. props.currentstep === 3 &&
  39. `
  40. calc(50% - 336px);
  41. `};
  42. }
  43. @media screen and (max-width: 628px) {
  44. height: 100vh;
  45. max-height: 100vh;
  46. min-height: 90vh;
  47. width: 100vw;
  48. top: 0;
  49. left: 0;
  50. padding: 0 30px;
  51. ${(props) => props.currentstep === 3 && `padding: 0;`}
  52. }
  53. `;
  54. export const ModalHeader = styled(Box)`
  55. display: flex;
  56. justify-content: space-between;
  57. align-items: center;
  58. `;
  59. export const BackIcon = styled(Box)`
  60. cursor: pointer;
  61. position: absolute;
  62. left: 40px;
  63. @media screen and (max-width: 600px) {
  64. left: 20px;
  65. & svg {
  66. width: 20px;
  67. }
  68. }
  69. `;
  70. // export const CloseIcon = styled(Box)`
  71. // cursor: pointer;
  72. // position: absolute;
  73. // right: 40px;
  74. // @media screen and (max-width: 600px) {
  75. // right: 20px;
  76. // & svg {
  77. // width: 20px;
  78. // }
  79. // }
  80. // `;
  81. export const CreateOfferContainer = styled(Container)`
  82. margin-top: 0px;
  83. display: flex;
  84. width: ${(props) => (props.currentstep === 3 ? "739px" : "380px")};
  85. flex-direction: column;
  86. align-items: center;
  87. ${(props) => props.currentstep === 3 && `padding-bottom: 20px;`}
  88. @media (max-width: 810px) {
  89. ${(props) =>
  90. props.currentstep === 3 &&
  91. `
  92. width: 600px;
  93. `}
  94. }
  95. @media screen and (max-width: 600px) {
  96. width: 100%;
  97. padding-right: 0;
  98. padding-left: 0;
  99. ${(props) => props.currentstep === 3 && `padding: 0 18px;`}
  100. }
  101. `;
  102. export const CreateOfferTitle = styled(Typography)`
  103. font-family: ${selectedTheme.fonts.textFont};
  104. width: 328px;
  105. height: 33px;
  106. text-align: center;
  107. flex: 1;
  108. font-style: normal;
  109. font-weight: 700;
  110. font-size: 24px;
  111. line-height: 33px;
  112. color: ${selectedTheme.colors.primaryPurple};
  113. margin-top: 36px;
  114. margin-bottom: 40px;
  115. @media screen and (max-width: 600px) {
  116. font-size: 18px;
  117. margin-bottom: 30px;
  118. }
  119. `;
  120. export const CreateOfferDescription = styled(Typography)`
  121. font-family: ${selectedTheme.fonts.textFont};
  122. margin-top: 9px;
  123. width: 221px;
  124. font-style: normal;
  125. font-weight: 400;
  126. font-size: 16px;
  127. line-height: 22px;
  128. display: flex;
  129. align-items: center;
  130. text-align: center;
  131. color: ${selectedTheme.colors.primaryGrayText};
  132. margin-bottom: 20px;
  133. `;
  134. export const CreateOfferFormContainer = styled(Box)`
  135. width: 335px;
  136. height: 700px;
  137. ${(props) =>
  138. props.currentStep === 3 &&
  139. css`
  140. width: 100%;
  141. border-radius: 4px;
  142. height: 420px;
  143. border: 1px solid ${selectedTheme.colors.borderNormal};
  144. margin-top: 40px;
  145. `}
  146. @media (max-width: 600px) {
  147. height: 350px;
  148. }
  149. `;
  150. export const RegisterAltText = styled(Typography)`
  151. font-family: ${selectedTheme.fonts.altText};
  152. color: ${selectedTheme.fonts.textFont};
  153. font-size: 14px;
  154. padding-right: 6px;
  155. line-height: 14px;
  156. `;
  157. export const RegisterTextContainer = styled(Box)`
  158. display: flex;
  159. flex-direction: row;
  160. margin-top: 36px;
  161. justify-content: center;
  162. `;
  163. export const FieldLabel = styled(Label)`
  164. position: relative;
  165. bottom: -14px;
  166. & label {
  167. font-size: 12px;
  168. font-weight: 600;
  169. line-height: 20px;
  170. color: ${selectedTheme.colors.primaryGrayText};
  171. cursor: auto;
  172. letter-spacing: 0.2px;
  173. }
  174. @media (max-width: 600px) {
  175. & label {
  176. font-size: 9px;
  177. }
  178. }
  179. `;
  180. export const SelectText = styled(Typography)`
  181. font-size: 16px;
  182. font-family: ${selectedTheme.fonts.textFont};
  183. font-weight: 400;
  184. `;
  185. export const SelectField = styled(Select)`
  186. position: relative;
  187. top: 15px;
  188. margin-bottom: 18px;
  189. @media (max-width: 600px) {
  190. height: 40px;
  191. font-size: 12px;
  192. }
  193. & div {
  194. ${SelectText} {
  195. font-weight: 600;
  196. }
  197. }
  198. `;
  199. export const SelectAltText = styled(Typography)`
  200. font-family: ${selectedTheme.fonts.textFont};
  201. font-style: italic;
  202. white-space: pre;
  203. font-size: 12px;
  204. position: relative;
  205. bottom: -1px;
  206. `;
  207. export const NextButtonContainer = styled(PrimaryButton)`
  208. margin-top: 16px;
  209. width: 100%;
  210. @media (min-width: 601px) {
  211. margin-bottom: 18px;
  212. }
  213. @media screen and (max-width: 600px) {
  214. position: absolute;
  215. bottom: 18px;
  216. height: 44px;
  217. width: 339px;
  218. /* left: 9px; */
  219. & button {
  220. height: 44px;
  221. }
  222. }
  223. @media (max-width: 360px) {
  224. width: 300px;
  225. }
  226. @media (max-width: 320px) {
  227. width: 260px;
  228. }
  229. @media (max-height: 660px) {
  230. position: relative;
  231. width: 100%;
  232. margin-top: 34px;
  233. }
  234. `;
  235. export const ErrorText = styled(Typography)`
  236. color: red;
  237. font-family: ${selectedTheme.fonts.textFont};
  238. height: 20px;
  239. font-size: 14px;
  240. `;