Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ProfileCard.styled.js 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. import styled, { css } 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 Block } from "../../../assets/images/svg/block.svg";
  6. import { ReactComponent as Unblock } from "../../../assets/images/svg/unblock.svg";
  7. import { ReactComponent as Remove } from "../../../assets/images/svg/trash.svg";
  8. import { ReactComponent as Mail } from "../../../assets/images/svg/mail.svg";
  9. export const ProfileCardContainer = styled(Box)`
  10. width: 100%;
  11. box-sizing: border-box;
  12. padding: 0 50px;
  13. margin-top: 34px;
  14. overflow: hidden;
  15. @media (max-width: 1200px) {
  16. padding: 0 36px 0 0;
  17. }
  18. @media (max-width: 600px) {
  19. padding: 0 ${(props) => (props.isAdmin ? "18px" : "0")};
  20. }
  21. `;
  22. export const EditIcon = styled(Edit)`
  23. position: relative;
  24. top: 3px;
  25. left: 2px;
  26. width: 18px;
  27. height: 18px;
  28. @media (max-width: 600px) {
  29. top: 0;
  30. left: -2px;
  31. }
  32. & path {
  33. stroke: ${selectedTheme.colors.primaryPurple};
  34. }
  35. `;
  36. export const EditButton = styled(Box)`
  37. width: 40px;
  38. height: 40px;
  39. font-weight: 900;
  40. background: ${(props) =>
  41. props.disabled ? "white" : selectedTheme.colors.primaryIconBackgroundColor};
  42. border-radius: 360px;
  43. padding: 0.45rem 0.45rem 0.27rem 0.57rem;
  44. cursor: ${(props) => !props.disabled && `pointer`};
  45. ${(props) =>
  46. props.disabled &&
  47. css`
  48. & path {
  49. stroke: ${selectedTheme.colors.iconStrokePurpleDisabledColor};
  50. }
  51. `}
  52. @media (max-width: 600px) {
  53. width: 32px;
  54. height: 32px;
  55. }
  56. `;
  57. export const RemoveIcon = styled(Remove)`
  58. position: relative;
  59. top: 3px;
  60. left: 2px;
  61. width: 18px;
  62. height: 18px;
  63. @media (max-width: 600px) {
  64. top: 0;
  65. left: -2px;
  66. }
  67. & path {
  68. stroke: ${selectedTheme.colors.primaryPurple};
  69. }
  70. `;
  71. export const RemoveButton = styled(Box)`
  72. width: 40px;
  73. height: 40px;
  74. font-weight: 900;
  75. background: ${selectedTheme.colors.primaryIconBackgroundColor};
  76. border-radius: 360px;
  77. padding: 0.45rem 0.45rem 0.27rem 0.57rem;
  78. cursor: pointer;
  79. @media (max-width: 600px) {
  80. width: 32px;
  81. height: 32px;
  82. }
  83. `;
  84. export const BlockLabelIcon = styled(Block)`
  85. width: 18px;
  86. height: 18px;
  87. position: relative;
  88. top: 10px;
  89. left: 11px;
  90. & path {
  91. stroke: ${selectedTheme.colors.iconYellowColor};
  92. }
  93. `;
  94. export const BlockButton = styled(Box)`
  95. width: 40px;
  96. height: 40px;
  97. font-weight: 900;
  98. background: ${selectedTheme.colors.primaryIconBackgroundColor};
  99. border-radius: 360px;
  100. padding: 0.45rem 0.45rem 0.27rem 0.57rem;
  101. cursor: pointer;
  102. @media (max-width: 600px) {
  103. width: 32px;
  104. height: 32px;
  105. }
  106. `;
  107. export const BlockIcon = styled(Block)`
  108. position: relative;
  109. top: 3px;
  110. left: 2px;
  111. width: 18px;
  112. height: 18px;
  113. @media (max-width: 600px) {
  114. top: 0;
  115. left: -2px;
  116. }
  117. & path {
  118. stroke: ${selectedTheme.colors.primaryPurple};
  119. }
  120. `;
  121. export const UnblockButton = styled(Box)`
  122. width: 40px;
  123. height: 40px;
  124. font-weight: 900;
  125. background: ${selectedTheme.colors.primaryIconBackgroundColor};
  126. border-radius: 360px;
  127. padding: 0.45rem 0.45rem 0.27rem 0.57rem;
  128. cursor: pointer;
  129. @media (max-width: 600px) {
  130. width: 32px;
  131. height: 32px;
  132. }
  133. `;
  134. export const UnblockIcon = styled(Unblock)`
  135. position: relative;
  136. top: 3px;
  137. left: 2px;
  138. width: 18px;
  139. height: 18px;
  140. @media (max-width: 600px) {
  141. top: 0;
  142. left: -2px;
  143. }
  144. `;
  145. export const MessageButton = styled(EditButton)`
  146. background: ${selectedTheme.colors.primaryPurple};
  147. width: 40px;
  148. height: 40px;
  149. @media (max-width: 600px) {
  150. width: 32px;
  151. height: 32px;
  152. }
  153. `;
  154. export const ButtonsContainer = styled(Box)`
  155. position: absolute;
  156. top: 18px;
  157. right: 18px;
  158. gap: 16px;
  159. display: flex;
  160. justify-content: flex-end;
  161. flex-direction: row;
  162. @media (max-width: 600px) {
  163. gap: 12px;
  164. }
  165. `;
  166. export const ProfileCardWrapper = styled(Card)`
  167. border: 1px solid ${selectedTheme.colors.borderNormal};
  168. background: ${(props) =>
  169. props.blocked
  170. ? selectedTheme.colors.blockedColor
  171. : props.isMyProfile
  172. ? selectedTheme.colors.primaryPurple
  173. : "white"};
  174. width: 100%;
  175. min-width: fit-content;
  176. padding: 1rem;
  177. position: relative;
  178. border-radius: 0 0 4px 4px;
  179. `;
  180. // export const ProfileName = styled(Typography)`
  181. // color: ${(props) =>
  182. // props.isMyProfile
  183. // ? selectedTheme.colors.primaryYellow
  184. // : selectedTheme.colors.primaryPurple};
  185. // font-weight: 700;
  186. // font-size: 24px;
  187. // font-family: ${selectedTheme.fonts.textFont};
  188. // margin-bottom: 5px;
  189. // @media (max-width: 600px) {
  190. // font-size: 18px;
  191. // }
  192. // `;
  193. // export const ProfilePIB = styled(Typography)`
  194. // color: ${(props) =>
  195. // props.isMyProfile ? "white" : selectedTheme.colors.primaryDarkText};
  196. // margin-top: 0.18rem;
  197. // font-family: ${selectedTheme.fonts.textFont};
  198. // font-size: 16px;
  199. // padding-top: 1px;
  200. // @media (max-width: 600px) {
  201. // font-size: 14px;
  202. // }
  203. // `;
  204. // export const ProfilePIBContainer = styled(Grid)`
  205. // display: flex;
  206. // justify-content: center;
  207. // align-items: center;
  208. // position: relative;
  209. // left: 5px;
  210. // `;
  211. // export const ProfileMainInfo = styled(Grid)`
  212. // display: flex;
  213. // justify-content: start;
  214. // align-items: start;
  215. // `;
  216. // export const AvatarImageContainer = styled(Grid)`
  217. // display: flex;
  218. // justify-content: start;
  219. // align-items: center;
  220. // `;
  221. // export const ProfileMainInfoGrid = styled(Grid)`
  222. // display: flex;
  223. // flex-direction: column;
  224. // align-items: start;
  225. // margin-left: 16px;
  226. // `;
  227. // export const ProfileContact = styled(Grid)`
  228. // padding-top: 2rem;
  229. // padding-bottom: 2rem;
  230. // @media (max-width: 600px) {
  231. // padding-bottom: 1rem;
  232. // }
  233. // `;
  234. // export const ContactItem = styled(Typography)`
  235. // margin-right: 2rem;
  236. // margin-left: 0.4rem;
  237. // color: ${(props) =>
  238. // props.isMyProfile ? "white" : selectedTheme.colors.primaryDarkText};
  239. // display: unset;
  240. // font-family: ${selectedTheme.fonts.textFont};
  241. // letter-spacing: 0.02em;
  242. // font-size: 16px;
  243. // position: relative;
  244. // bottom: 1px;
  245. // @media (max-width: 600px) {
  246. // font-size: 14px;
  247. // bottom: 4px;
  248. // }
  249. // `;
  250. // export const StatsItem = styled(Typography)`
  251. // margin-right: 2rem;
  252. // display: unset;
  253. // margin-left: 1rem;
  254. // font-family: ${selectedTheme.fonts.textFont};
  255. // font-size: 16px;
  256. // margin-bottom: 2px;
  257. // @media (max-width: 600px) {
  258. // font-size: 12px;
  259. // }
  260. // `;
  261. // export const ProfileStats = styled(Grid)`
  262. // display: flex;
  263. // justify-content: start;
  264. // align-items: center;
  265. // background: ${selectedTheme.colors.primaryDarkTextSecond};
  266. // width: calc(100% + 2rem);
  267. // padding-top: 1.3rem;
  268. // padding-bottom: 1.3rem;
  269. // margin-bottom: -1rem;
  270. // margin-left: -1rem;
  271. // border-radius: 0 0 4px 4px;
  272. // `;
  273. // export const AvatarImage = styled.img`
  274. // min-height: 144px;
  275. // min-width: 144px;
  276. // width: 144px;
  277. // height: 144px;
  278. // border-radius: 100%;
  279. // @media (max-width: 600px) {
  280. // min-height: 90px;
  281. // min-width: 90px;
  282. // width: 90px;
  283. // height: 90px;
  284. // }
  285. // `;
  286. export const ProfileCardHeader = styled(Grid)`
  287. display: flex;
  288. justify-content: start;
  289. align-items: center;
  290. margin-bottom: 11px;
  291. `;
  292. export const HeaderTitle = styled(Typography)`
  293. font-size: 16px;
  294. font-family: ${selectedTheme.fonts.textFont};
  295. color: ${selectedTheme.colors.primaryText};
  296. position: relative;
  297. @media (max-width: 600px) {
  298. font-size: 12px;
  299. }
  300. `;
  301. export const MessageIcon = styled(Mail)`
  302. width: 19.5px;
  303. height: 19.5px;
  304. position: relative;
  305. left: 1px;
  306. top: 3px;
  307. & path {
  308. stroke: ${selectedTheme.colors.primaryYellow};
  309. }
  310. @media (max-width: 600px) {
  311. width: 16px;
  312. height: 16px;
  313. left: -1px;
  314. top: 1px;
  315. }
  316. `;
  317. export const ProfileInfoContainer = styled(Grid)`
  318. display: flex;
  319. flex-direction: column;
  320. justify-content: center;
  321. align-items: start;
  322. @media (max-width: 600px) {
  323. }
  324. `;
  325. export const ProfileInfoAndContactContainer = styled(Box)`
  326. display: flex;
  327. flex-direction: column;
  328. margin-bottom: ${(props) => props.isAdmin && "36px"};
  329. @media (max-width: 600px) {
  330. padding-bottom: ${(props) => (props.isAdmin ? "0" : "18px")};
  331. margin-bottom: ${(props) => props.isAdmin && "0"};
  332. ${(props) => props.bigProfileCard && "gap: 18px;"}
  333. flex-direction: ${(props) => (props.bigProfileCard ? "row" : "column")};
  334. }
  335. `;
  336. // export const ProfileStatsGrid = styled(Grid)`
  337. // display: flex;
  338. // flex-direction: column;
  339. // justify-content: center;
  340. // align-items: start;
  341. // `;
  342. export const BlockedProfileContainer = styled(Box)`
  343. @media (max-width: 600px) {
  344. position: absolute;
  345. top: 16px;
  346. left: 16px;
  347. }
  348. `;