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.

ProfileCard.styled.js 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. import styled from "styled-components";
  2. import { Card, Typography, Grid, Box } from "@mui/material";
  3. import selectedTheme from "../../themes";
  4. import { ReactComponent as Edit } from "../../assets/images/svg/edit.svg";
  5. // import { ReactComponent as Pocket } from "../../assets/images/svg/pocket.svg";
  6. // import { ReactComponent as Globe } from "../../assets/images/svg/globe.svg";
  7. import { ReactComponent as Mail } from "../../assets/images/svg/mail.svg";
  8. // import { ReactComponent as Location } from "../../assets/images/svg/location.svg";
  9. // import { PRIMARY_PURPLE_COLOR, PRIMARY_YELLOW_COLOR } from '../../constants/stylesConstants';
  10. export const ProfileCardContainer = styled(Box)`
  11. width: 100%;
  12. box-sizing: border-box;
  13. padding: 0 50px;
  14. margin-top: 34px;
  15. @media (max-width: 1200px) {
  16. padding: 0 36px 0 0;
  17. }
  18. @media (max-width: 600px) {
  19. padding: 0;
  20. }
  21. `;
  22. export const EditIcon = styled(Edit)`
  23. width: 18px;
  24. height: 18px;
  25. & path {
  26. stroke: ${selectedTheme.primaryPurple};
  27. }
  28. `;
  29. export const EditButton = styled(Box)`
  30. position: absolute;
  31. right: 1rem;
  32. top: 1rem;
  33. color: ${selectedTheme.primaryPurple};
  34. font-weight: 900;
  35. background: #f4f4f4;
  36. border-radius: 360px;
  37. padding: 0.45rem 0.45rem 0.27rem 0.57rem;
  38. cursor: pointer;
  39. `;
  40. export const MessageButton = styled(EditButton)`
  41. background: ${selectedTheme.primaryPurple};
  42. width: 40px;
  43. height: 40px;
  44. `;
  45. export const ProfileCardWrapper = styled(Card)`
  46. border: 1px solid ${selectedTheme.primaryPurple};
  47. background: ${(props) =>
  48. props.isMyProfile ? selectedTheme.primaryPurple : "white"};
  49. width: 100%;
  50. min-width: fit-content;
  51. padding: 1rem;
  52. position: relative;
  53. `;
  54. // export const ProfileName = styled(Typography)`
  55. // color: ${(props) =>
  56. // props.isMyProfile
  57. // ? selectedTheme.primaryYellow
  58. // : selectedTheme.primaryPurple};
  59. // font-weight: 700;
  60. // font-size: 24px;
  61. // font-family: "Open Sans";
  62. // margin-bottom: 5px;
  63. // @media (max-width: 600px) {
  64. // font-size: 18px;
  65. // }
  66. // `;
  67. // export const ProfilePIB = styled(Typography)`
  68. // color: ${(props) =>
  69. // props.isMyProfile ? "white" : selectedTheme.primaryDarkText};
  70. // margin-top: 0.18rem;
  71. // font-family: "Open Sans";
  72. // font-size: 16px;
  73. // padding-top: 1px;
  74. // @media (max-width: 600px) {
  75. // font-size: 14px;
  76. // }
  77. // `;
  78. // export const ProfilePIBContainer = styled(Grid)`
  79. // display: flex;
  80. // justify-content: center;
  81. // align-items: center;
  82. // position: relative;
  83. // left: 5px;
  84. // `;
  85. // export const ProfileMainInfo = styled(Grid)`
  86. // display: flex;
  87. // justify-content: start;
  88. // align-items: start;
  89. // `;
  90. // export const AvatarImageContainer = styled(Grid)`
  91. // display: flex;
  92. // justify-content: start;
  93. // align-items: center;
  94. // `;
  95. // export const ProfileMainInfoGrid = styled(Grid)`
  96. // display: flex;
  97. // flex-direction: column;
  98. // align-items: start;
  99. // margin-left: 16px;
  100. // `;
  101. // export const ProfileContact = styled(Grid)`
  102. // padding-top: 2rem;
  103. // padding-bottom: 2rem;
  104. // @media (max-width: 600px) {
  105. // padding-bottom: 1rem;
  106. // }
  107. // `;
  108. // export const ContactItem = styled(Typography)`
  109. // margin-right: 2rem;
  110. // margin-left: 0.4rem;
  111. // color: ${(props) =>
  112. // props.isMyProfile ? "white" : selectedTheme.primaryDarkText};
  113. // display: unset;
  114. // font-family: "Open Sans";
  115. // letter-spacing: 0.02em;
  116. // font-size: 16px;
  117. // position: relative;
  118. // bottom: 1px;
  119. // @media (max-width: 600px) {
  120. // font-size: 14px;
  121. // bottom: 4px;
  122. // }
  123. // `;
  124. // export const StatsItem = styled(Typography)`
  125. // margin-right: 2rem;
  126. // display: unset;
  127. // margin-left: 1rem;
  128. // font-family: "Open Sans";
  129. // font-size: 16px;
  130. // margin-bottom: 2px;
  131. // @media (max-width: 600px) {
  132. // font-size: 12px;
  133. // }
  134. // `;
  135. // export const ProfileStats = styled(Grid)`
  136. // display: flex;
  137. // justify-content: start;
  138. // align-items: center;
  139. // background: ${selectedTheme.primaryDarkTextSecond};
  140. // width: calc(100% + 2rem);
  141. // padding-top: 1.3rem;
  142. // padding-bottom: 1.3rem;
  143. // margin-bottom: -1rem;
  144. // margin-left: -1rem;
  145. // border-radius: 0 0 4px 4px;
  146. // `;
  147. // export const AvatarImage = styled.img`
  148. // min-height: 144px;
  149. // min-width: 144px;
  150. // width: 144px;
  151. // height: 144px;
  152. // border-radius: 100%;
  153. // @media (max-width: 600px) {
  154. // min-height: 90px;
  155. // min-width: 90px;
  156. // width: 90px;
  157. // height: 90px;
  158. // }
  159. // `;
  160. export const ProfileCardHeader = styled(Grid)`
  161. display: flex;
  162. justify-content: start;
  163. align-items: center;
  164. margin-bottom: 11px;
  165. `;
  166. export const HeaderTitle = styled(Typography)`
  167. font-size: 16px;
  168. font-family: "Open Sans";
  169. color: ${selectedTheme.primaryDarkTextThird};
  170. position: relative;
  171. @media (max-width: 600px) {
  172. font-size: 12px;
  173. }
  174. `;
  175. // export const PocketIcon = styled(Pocket)`
  176. // width: 22px;
  177. // height: 22px;
  178. // position: relative;
  179. // left: -5px;
  180. // top: 2px;
  181. // & path {
  182. // stroke: #b4b4b4;
  183. // }
  184. // @media (max-width: 600px) {
  185. // width: 14px;
  186. // height: 14px;
  187. // }
  188. // `;
  189. // export const MailIcon = styled(Mail)`
  190. // height: 24px;
  191. // width: 24px;
  192. // & path {
  193. // stroke: ${(props) =>
  194. // props.isMyProfile
  195. // ? selectedTheme.iconMineProfileColor
  196. // : selectedTheme.iconProfileColor};
  197. // }
  198. // @media (max-width: 600px) {
  199. // width: 14px;
  200. // height: 14px;
  201. // }
  202. // `;
  203. // export const GlobeIcon = styled(Globe)`
  204. // height: 22px;
  205. // width: 22px;
  206. // & path {
  207. // stroke: ${(props) =>
  208. // props.isMyProfile
  209. // ? selectedTheme.iconMineProfileColor
  210. // : selectedTheme.iconProfileColor};
  211. // }
  212. // @media (max-width: 600px) {
  213. // width: 14px;
  214. // height: 14px;
  215. // }
  216. // `;
  217. // export const LocationIcon = styled(Location)`
  218. // height: 22px;
  219. // width: 22px;
  220. // & path {
  221. // stroke: ${(props) =>
  222. // props.isMyProfile
  223. // ? selectedTheme.iconMineProfileColor
  224. // : selectedTheme.iconProfileColor};
  225. // }
  226. // @media (max-width: 600px) {
  227. // width: 14px;
  228. // height: 14px;
  229. // }
  230. // `;
  231. export const MessageIcon = styled(Mail)`
  232. width: 19.5px;
  233. height: 19.5px;
  234. position: relative;
  235. left: 2.5px;
  236. top: 3.5px;
  237. & path {
  238. stroke: ${selectedTheme.primaryYellow};
  239. }
  240. @media (max-width: 600px) {
  241. width: 14px;
  242. height: 14px;
  243. right: 0.5px;
  244. }
  245. `;
  246. export const ProfileInfoContainer = styled(Grid)`
  247. display: flex;
  248. flex-direction: column;
  249. justify-content: center;
  250. align-items: start;
  251. `;
  252. // export const ProfileStatsGrid = styled(Grid)`
  253. // display: flex;
  254. // flex-direction: column;
  255. // justify-content: center;
  256. // align-items: start;
  257. // `;