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.9KB

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