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

UserReviews.styled.js 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. import styled from "styled-components";
  2. import { List, Box, Typography, Grid } from "@mui/material";
  3. import ThumbUpIcon from "@mui/icons-material/ThumbUp";
  4. import ThumbDownIcon from "@mui/icons-material/ThumbDown";
  5. import selectedTheme from "../../themes";
  6. import { ReactComponent as DownArrow } from "../../assets/images/svg/up-arrow.svg";
  7. export const UserReviewsContainer = styled(Box)``;
  8. export const ReviewsBox = styled(Box)`
  9. width: 100%;
  10. min-width: 290px;
  11. ${(props) =>
  12. props.profile &&
  13. `
  14. position: relative;
  15. top: -15px;
  16. `}
  17. margin-top: ${(props) => (props.profile ? "60px" : "0")};
  18. @media (max-width: 600px) {
  19. position: relative;
  20. top: -45px;
  21. overflow: hidden;
  22. max-height: ${(props) =>
  23. props.numOfReviews > 2
  24. ? "650px"
  25. : props.numOfReviews > 1
  26. ? "450px"
  27. : "350px"};
  28. padding: 0;
  29. margin: 0 ${props => props.isAdmin ? "18px" : "0"};
  30. margin-top: 60px;
  31. }
  32. `;
  33. export const ReviewsHeader = styled(Grid)`
  34. justify-content: space-between;
  35. @media (max-width: 600px) {
  36. margin-bottom: 18px;
  37. font-size: 12px;
  38. }
  39. `;
  40. export const ReviewsTitle = styled(Typography)`
  41. font-family: ${selectedTheme.fonts.textFont};
  42. color: ${selectedTheme.colors.primaryDarkTextThird};
  43. font-size: 16px;
  44. @media (max-width: 600px) {
  45. font-size: 12px;
  46. }
  47. `;
  48. export const ReviewList = styled(List)`
  49. background: white;
  50. padding: 0 18px;
  51. border-radius: 4px 0 0 4px;
  52. padding-right: 0.4rem;
  53. height: 100%;
  54. width: 100%;
  55. border: 1px solid ${selectedTheme.colors.borderNormal};
  56. overflow-y: auto;
  57. overflow-x: hidden;
  58. max-height: ${(props) => (props.isProfileReviews ? "70vh" : "39vh")};
  59. /* overflow-y: auto; */
  60. &::-webkit-scrollbar {
  61. width: 5px;
  62. }
  63. &::-webkit-scrollbar-track {
  64. background: #ddd;
  65. }
  66. &::-webkit-scrollbar-thumb {
  67. background: #777;
  68. }
  69. scrollbar-width: thin;
  70. scrollbar-color: #ddd;
  71. `;
  72. export const ThumbUp = styled(ThumbUpIcon)`
  73. position: relative;
  74. left: -8px;
  75. `;
  76. export const ThumbDown = styled(ThumbDownIcon)`
  77. position: relative;
  78. left: -8px;
  79. `;
  80. export const NoReviewsContainer = styled(Box)``;
  81. export const NoReviewsText = styled(Typography)`
  82. color: ${selectedTheme.colors.primaryPurple};
  83. font-size: 24px;
  84. font-family: ${selectedTheme.fonts.textFont};
  85. text-align: center;
  86. font-weight: 700;
  87. width: 100%;
  88. `;
  89. export const NoReviewsAltText = styled(Typography)`
  90. font-size: 12px;
  91. color: ${selectedTheme.colors.primaryDarkText};
  92. font-family: ${selectedTheme.fonts.textFont};
  93. text-align: center;
  94. width: 100%;
  95. margin-bottom: 36px;
  96. `;
  97. export const ProfileImage = styled.img`
  98. width: 54px;
  99. height: 54px;
  100. border-radius: 100%;
  101. `;
  102. export const ProfileImageContainer = styled(Box)`
  103. width: 54px;
  104. height: 54px;
  105. border-radius: 100%;
  106. margin-right: 14px;
  107. `;
  108. export const ReviewQuote = styled(Grid)`
  109. position: relative;
  110. left: 8px;
  111. `;
  112. export const ThumbBox = styled(Grid)``;
  113. export const ReviewQuoteBox = styled(Grid)``;
  114. export const ReviewQuoteText = styled(Typography)`
  115. font-family: ${selectedTheme.fonts.textFont};
  116. font-size: 12px;
  117. color: ${selectedTheme.colors.primaryDarkText};
  118. `;
  119. export const ReviewDetails = styled(Grid)``;
  120. export const ReviewDetailsText = styled(Typography)`
  121. font-family: ${selectedTheme.fonts.textFont};
  122. font-size: 12px;
  123. color: ${selectedTheme.colors.primaryDarkText};
  124. font-style: italic;
  125. letter-spacing: 0.02em;
  126. `;
  127. export const ReviewDetailsValue = styled(Typography)`
  128. color: ${selectedTheme.colors.primaryPurple};
  129. font-style: normal;
  130. font-weight: 600;
  131. `;
  132. export const ProfileName = styled(Typography)`
  133. font-weight: 600;
  134. font-size: 16px;
  135. font-family: ${selectedTheme.fonts.textFont};
  136. `;
  137. export const ReviewContainer = styled(Box)``;
  138. export const ReviewSortDescription = styled(Typography)`
  139. font-size: 16px;
  140. font-family: ${selectedTheme.fonts.textFont};
  141. color: ${selectedTheme.colors.primaryDarkTextThird};
  142. `;
  143. export const ReviewSortOption = styled(Typography)`
  144. font-family: ${selectedTheme.fonts.textFont};
  145. font-size: 16px;
  146. font-weight: 600;
  147. color: ${selectedTheme.colors.primaryPurple};
  148. `;
  149. export const ReviewSortIcon = styled(DownArrow)`
  150. transform: rotate(180deg);
  151. position: relative;
  152. margin-left: 4px;
  153. top: 1px;
  154. `;
  155. export const ReviewSortContainer = styled(Box)`
  156. display: flex;
  157. flex-direction: row;
  158. gap: 4px;
  159. position: relative;
  160. top: 4px;
  161. `;
  162. export const ReviewSortOptionContainer = styled(Box)`
  163. cursor: pointer;
  164. `;
  165. export const ReviewsHeaderTitle = styled(Box)``;