Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ItemDetailsHeaderCard.styled.js 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. import { Box, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. import { IconButton } from "../../Buttons/IconButton/IconButton";
  5. import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
  6. import { ReactComponent as User } from "../../../assets/images/svg/user.svg";
  7. export const ItemDetailsHeaderContainer = styled(Box)`
  8. display: flex;
  9. flex-direction: column;
  10. width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
  11. box-sizing: border-box;
  12. margin: 10px 0;
  13. background-color: ${(props) =>
  14. props.isMyProfile ? selectedTheme.colors.primaryPurple : "white"};
  15. border-radius: 4px;
  16. border: 1px solid ${selectedTheme.colors.primaryPurple};
  17. max-width: 2000px;
  18. position: relative;
  19. @media screen and (max-width: 600px) {
  20. width: calc(100vw - 36px);
  21. }
  22. `;
  23. export const HeaderTop = styled(Box)`
  24. display: flex;
  25. flex-direction: row;
  26. padding: 18px;
  27. gap: 18px;
  28. `;
  29. export const OfferImage = styled.img`
  30. border-radius: 50%;
  31. width: 144px;
  32. height: 144px;
  33. @media (max-width: 600px) {
  34. width: 90px;
  35. height: 90px;
  36. }
  37. `;
  38. export const OfferInfo = styled(Box)`
  39. display: flex;
  40. flex: 2;
  41. flex-direction: column;
  42. justify-content: space-between;
  43. margin-left: 18px;
  44. `;
  45. export const OfferTitle = styled(Typography)`
  46. margin-bottom: 12px;
  47. font-family: ${selectedTheme.fonts.textFont};
  48. color: ${(props) =>
  49. props.isMyProfile
  50. ? selectedTheme.colors.primaryYellow
  51. : selectedTheme.colors.primaryPurple};
  52. font-weight: 700;
  53. font-size: 24px;
  54. cursor: pointer;
  55. @media (max-width: 600px) {
  56. font-size: 18px;
  57. }
  58. `;
  59. export const OfferAuthor = styled(Box)`
  60. display: flex;
  61. flex: 1;
  62. flex-direction: column;
  63. `;
  64. export const OfferAuthorName = styled(Typography)`
  65. font-family: ${selectedTheme.fonts.textFont};
  66. line-height: 22px;
  67. font-size: 16px;
  68. color: ${selectedTheme.colors.primaryDarkText};
  69. `;
  70. export const OfferLocation = styled(Box)`
  71. font-family: ${selectedTheme.fonts.textFont};
  72. color: ${selectedTheme.colors.primaryText};
  73. line-height: 16px;
  74. font-size: 12px;
  75. `;
  76. export const OfferPIB = styled(Box)`
  77. font-family: ${selectedTheme.fonts.textFont};
  78. color: ${(props) =>
  79. props.isMyProfile
  80. ? selectedTheme.colors.primaryDarkTextThird
  81. : selectedTheme.colors.primaryText};
  82. line-height: 16px;
  83. font-size: 12px;
  84. `;
  85. export const OfferDetails = styled(Box)`
  86. display: flex;
  87. flex-direction: column;
  88. flex-wrap: ${(props) => (!props.halfwidth ? "no-wrap" : "wrap")};
  89. justify-content: start;
  90. `;
  91. export const OfferCategory = styled(Box)`
  92. font-family: ${selectedTheme.fonts.textFont};
  93. color: ${selectedTheme.colors.primaryText};
  94. line-height: 16px;
  95. font-size: 12px;
  96. width: 33%;
  97. `;
  98. export const OfferPackage = styled(Box)`
  99. font-family: ${selectedTheme.fonts.textFont};
  100. color: ${selectedTheme.colors.primaryText};
  101. line-height: 16px;
  102. font-size: 12px;
  103. width: 34%;
  104. `;
  105. export const OfferViews = styled(Box)`
  106. font-family: ${selectedTheme.fonts.textFont};
  107. color: ${selectedTheme.colors.primaryText};
  108. line-height: 16px;
  109. font-size: 12px;
  110. width: 34%;
  111. `;
  112. export const OfferDescriptionTitle = styled(Box)`
  113. font-family: ${selectedTheme.fonts.textFont};
  114. font-size: 12px;
  115. color: ${selectedTheme.colors.primaryDarkText};
  116. line-height: 16px;
  117. `;
  118. export const OfferDescriptionText = styled(Box)`
  119. font-family: ${selectedTheme.fonts.textFont};
  120. font-size: 16px;
  121. color: ${selectedTheme.colors.primaryDarkText};
  122. line-height: 22px;
  123. max-width: calc(100% - 230px);
  124. max-height: 120px;
  125. overflow: hidden;
  126. display: -webkit-box;
  127. -webkit-line-clamp: 5;
  128. -webkit-box-orient: vertical;
  129. `;
  130. export const OfferDescription = styled(Box)`
  131. flex: 3;
  132. margin: auto 0;
  133. padding-left: 35px;
  134. `;
  135. export const Line = styled(Box)`
  136. border-left: 1px solid rgba(0, 0, 0, 0.15);
  137. height: 100px;
  138. width: 0;
  139. margin: auto 0;
  140. `;
  141. export const CheckButton = styled(PrimaryButton)`
  142. width: 180px;
  143. height: 48px;
  144. position: absolute;
  145. bottom: 9px;
  146. right: 9px;
  147. &:hover button {
  148. background-color: ${selectedTheme.colors.primaryPurple} !important;
  149. color: white !important;
  150. }
  151. `;
  152. export const MessageIcon = styled(IconButton)`
  153. width: 40px;
  154. height: 40px;
  155. background-color: ${selectedTheme.colors.primaryPurple};
  156. border-radius: 100%;
  157. padding-top: 2px;
  158. text-align: center;
  159. @media (max-width: 600px) {
  160. width: 32px;
  161. height: 32px;
  162. & button svg {
  163. width: 16px;
  164. height: 16px;
  165. position: relative;
  166. top: -4px;
  167. left: -2px;
  168. }
  169. }
  170. `;
  171. export const UserIconContainer = styled(MessageIcon)`
  172. background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
  173. `;
  174. export const UserIcon = styled(User)``;
  175. export const TooltipInnerContainer = styled(Box)`
  176. width: 40px;
  177. height: 40px;
  178. position: absolute;
  179. top: 10px;
  180. right: 10px;
  181. @media (max-width: 600px) {
  182. width: 32px;
  183. height: 32px;
  184. }
  185. `;