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.

EditProfile.styled.js 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. import styled from "styled-components";
  2. import { Box, TextField, Typography } from "@mui/material";
  3. import ImagePicker from "../../../ImagePicker/ImagePicker";
  4. import { PrimaryButton } from "../../../Buttons/PrimaryButton/PrimaryButton";
  5. import { Label } from "../../../CheckBox/Label";
  6. import selectedTheme from "../../../../themes";
  7. import { PrimaryAnimatedButton } from "../../../Styles/globalStyleComponents";
  8. export const EditProfileContainer = styled(Box)`
  9. background-color: #fff;
  10. position: fixed;
  11. top: calc(50vh - 390px);
  12. left: calc(50% - 310px);
  13. z-index: 150;
  14. padding: 36px 144px;
  15. width: 623px;
  16. min-height: 781px;
  17. max-height: 802px;
  18. overflow-y: auto;
  19. &::-webkit-scrollbar {
  20. width: 5px;
  21. }
  22. &::-webkit-scrollbar-track {
  23. background: #ddd;
  24. }
  25. &::-webkit-scrollbar-thumb {
  26. background: #777;
  27. }
  28. scrollbar-width: thin;
  29. scrollbar-color: #ddd;
  30. @media (max-height: 800px) {
  31. height: 90vh;
  32. top: 5vh;
  33. }
  34. @media screen and (max-width: 600px) {
  35. height: 100vh;
  36. max-height: 100vh;
  37. min-height: 90vh;
  38. width: 100vw;
  39. top: 0;
  40. left: 0;
  41. padding: 38px 18px;
  42. }
  43. `;
  44. export const ProfileImageContainer = styled(Box)`
  45. display: flex;
  46. flex-direction: column;
  47. justify-content: center;
  48. align-items: center;
  49. `;
  50. export const ProfileImagePicker = styled(ImagePicker)`
  51. background: none;
  52. background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%235A3984FF' stroke-width='2' stroke-dasharray='7%2c 12' stroke-dashoffset='44' stroke-linecap='square'/%3e%3c/svg%3e");
  53. border-radius: 100px;
  54. overflow: hidden;
  55. position: relative;
  56. margin-bottom: 5px;
  57. `;
  58. export const ProfileHeader = styled(Typography)`
  59. font-family: ${selectedTheme.fonts.textFont};
  60. font-size: 24px;
  61. font-weight: 700;
  62. margin-top: 9px;
  63. @media screen and (max-width: 600px) {
  64. font-size: 18px;
  65. }
  66. `;
  67. export const BackButton = styled(Box)`
  68. cursor: pointer;
  69. position: absolute;
  70. top: 40px;
  71. left: 40px;
  72. @media screen and (max-width: 600px) {
  73. left: 22px;
  74. svg {
  75. width: 20px;
  76. height: 20px;
  77. }
  78. }
  79. `;
  80. export const CloseButton = styled(Box)`
  81. cursor: pointer;
  82. position: absolute;
  83. top: 42px;
  84. right: 42px;
  85. @media screen and (max-width: 600px) {
  86. right: 22px;
  87. svg {
  88. width: 20px;
  89. height: 20px;
  90. }
  91. }
  92. `;
  93. export const InputFieldLabel = styled(Label)`
  94. position: relative;
  95. bottom: -14px;
  96. & label {
  97. font-size: 12px;
  98. font-weight: 600;
  99. line-height: 20px;
  100. color: #808080;
  101. cursor: auto;
  102. letter-spacing: 0.2px;
  103. ${(props) => props.labelWebsite && `margin-top: 8px`}
  104. }
  105. @media screen and (max-width: 600px) {
  106. & label {
  107. font-size: 9px;
  108. margin-top: 0;
  109. }
  110. }
  111. `;
  112. export const InputField = styled(TextField)`
  113. & input {
  114. padding: 10px 16px;
  115. font-size: 16px;
  116. }
  117. @media screen and (max-width: 600px) {
  118. & input {
  119. padding: 12px 18px;
  120. font-size: 12px;
  121. }
  122. }
  123. `;
  124. export const SaveButton = styled(PrimaryButton)`
  125. font-size: 12px;
  126. letter-spacing: 1.5px;
  127. @media (max-width: 375px) {
  128. width: 100%;
  129. }
  130. `;
  131. export const FinishButton = styled(PrimaryAnimatedButton)`
  132. font-size: 12px;
  133. letter-spacing: 1.5px;
  134. @media (max-width: 375px) {
  135. width: 100%;
  136. }
  137. `;
  138. export const ButtonsContainer = styled(Box)`
  139. display: flex;
  140. margin-top: 28px;
  141. @media screen and (max-width: 600px) {
  142. margin-top: 100px;
  143. justify-content: space-between;
  144. }
  145. `;
  146. export const BasicInfo = styled(Box)``;
  147. export const DetailsInfo = styled(Box)``;