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.

ProfileMainInfo.styled.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. import styled, { css } from "styled-components";
  2. import { Grid, Typography } from "@mui/material";
  3. import selectedTheme from "../../../../themes";
  4. import { ReactComponent as Pocket } from "../../../../assets/images/svg/pocket.svg";
  5. export const ProfileMainInfoContainer = styled(Grid)`
  6. display: flex;
  7. justify-content: start;
  8. align-items: start;
  9. flex-direction: row;
  10. @media (max-width: 600px) {
  11. flex-direction: ${(props) =>
  12. props.bigProfileCard ? `column-reverse` : `row`};
  13. gap: 18px;
  14. max-width: 108px;
  15. ${(props) =>
  16. props.isAdmin &&
  17. !props.bigProfileCard &&
  18. css`
  19. align-items: center;
  20. position: relative;
  21. top: 36px;
  22. max-width: none;
  23. `}
  24. }
  25. `;
  26. export const AvatarImageContainer = styled(Grid)`
  27. display: flex;
  28. justify-content: start;
  29. align-items: center;
  30. `;
  31. export const AvatarImage = styled.img`
  32. /* border: 1px solid black; */
  33. min-height: ${(props) => (props.isAdmin ? `108px` : `144px`)};
  34. min-width: ${(props) => (props.isAdmin ? `108px` : `144px`)};
  35. width: ${(props) => (props.isAdmin ? `108px` : `144px`)};
  36. height: ${(props) => (props.isAdmin ? `108px` : `144px`)};
  37. border-radius: 100%;
  38. @media (max-width: 600px) {
  39. min-height: ${(props) => (props.isAdmin ? "108px" : "90px")};
  40. min-width: ${(props) => (props.isAdmin ? "108px" : "90px")};
  41. width: ${(props) => (props.isAdmin ? "108px" : "90px")};
  42. height: ${(props) => (props.isAdmin ? "108px" : "90px")};
  43. }
  44. `;
  45. export const BlockedProfileText = styled(Typography)`
  46. font-style: italic;
  47. font-weight: 400;
  48. font-size: 12px;
  49. line-height: 16px;
  50. font-family: ${selectedTheme.fonts.textFont};
  51. color: ${selectedTheme.colors.blockedColor};
  52. `;
  53. export const ProfileMainInfoGrid = styled(Grid)`
  54. display: flex;
  55. flex-direction: column;
  56. align-items: start;
  57. margin-left: 16px;
  58. @media (max-width: 600px) {
  59. margin-left: 0;
  60. ${(props) =>
  61. props.bigProfileCard &&
  62. css`
  63. width: calc(100vw - 196px);
  64. `}
  65. }
  66. `;
  67. export const ProfileName = styled(Typography)`
  68. color: ${(props) =>
  69. props.isBlocked
  70. ? selectedTheme.colors.primaryPurple
  71. : props.isMyProfile
  72. ? selectedTheme.colors.primaryYellow
  73. : selectedTheme.colors.primaryPurple};
  74. font-weight: 700;
  75. font-size: 24px;
  76. min-width: 200px;
  77. font-family: ${selectedTheme.fonts.textFont};
  78. margin-bottom: 5px;
  79. cursor: ${(props) => props.isAdmin && `pointer`};
  80. @media (max-width: 600px) {
  81. font-size: 18px;
  82. line-height: 24px;
  83. margin-bottom: 0;
  84. ${(props) =>
  85. props.bigProfileCard &&
  86. css`
  87. max-width: calc(100vw - 200px);
  88. min-width: 0;
  89. text-overflow: ellipsis;
  90. overflow: hidden;
  91. white-space: nowrap;
  92. `}
  93. ${(props) =>
  94. props.isAdmin &&
  95. !props.bigProfileCard &&
  96. css`
  97. max-width: calc(100vw - 200px);
  98. min-width: 0;
  99. text-overflow: ellipsis;
  100. overflow: hidden;
  101. display: -webkit-box;
  102. max-height: 48px;
  103. -webkit-line-clamp: 2;
  104. -webkit-box-orient: vertical;
  105. `}
  106. }
  107. `;
  108. export const ProfilePIBContainer = styled(Grid)`
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. position: relative;
  113. left: 5px;
  114. `;
  115. export const PocketIcon = styled(Pocket)`
  116. width: 22px;
  117. height: 22px;
  118. position: relative;
  119. left: -5px;
  120. top: 2px;
  121. & path {
  122. stroke: #b4b4b4;
  123. }
  124. @media (max-width: 600px) {
  125. width: 14px;
  126. height: 14px;
  127. }
  128. `;
  129. export const ProfilePIB = styled(Typography)`
  130. color: ${(props) =>
  131. props.isMyProfile && !props.isBlocked
  132. ? "white"
  133. : selectedTheme.colors.primaryDarkText};
  134. /* color: ${selectedTheme.colors.primaryDarkText}; */
  135. margin-top: 0.18rem;
  136. font-family: ${selectedTheme.fonts.textFont};
  137. font-size: 16px;
  138. font-weight: 400;
  139. padding-top: 1px;
  140. white-space: nowrap;
  141. @media (max-width: 600px) {
  142. font-size: 14px;
  143. }
  144. `;