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.

ItemDetailsCard.styled.js 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. import { Box, Container, 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 { Icon } from "../../Icon/Icon";
  7. import { ReactComponent as Category } from "../../../assets/images/svg/category.svg";
  8. import { ReactComponent as Subcategory } from "../../../assets/images/svg/subcategory.svg";
  9. import { ReactComponent as Quantity } from "../../../assets/images/svg/quantity.svg";
  10. import { ReactComponent as Eye } from "../../../assets/images/svg/eye-striked.svg";
  11. export const ItemDetailsCardContainer = styled(Container)`
  12. display: flex;
  13. flex-direction: column;
  14. width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
  15. box-sizing: border-box;
  16. margin: 10px 0;
  17. border: 1px solid ${selectedTheme.borderNormal};
  18. background-color: ${(props) =>
  19. props.sponsored === "true"
  20. ? selectedTheme.backgroundSponsoredColor
  21. : "white"};
  22. border-radius: 4px;
  23. padding: 18px;
  24. max-width: 2000px;
  25. position: relative;
  26. width: 100%;
  27. /* padding-bottom: 70px; */
  28. @media (max-width: 600px) {
  29. padding: 10px;
  30. padding-bottom: 65px;
  31. }
  32. `;
  33. export const OfferInfo = styled(Box)`
  34. display: flex;
  35. flex: 2;
  36. flex-direction: row;
  37. justify-content: space-between;
  38. margin: 18px 0;
  39. @media (max-width: 600px) {
  40. margin: 0;
  41. }
  42. `;
  43. export const PostDate = styled(Typography)`
  44. font-family: "Open Sans";
  45. font-size: 12px;
  46. color: ${selectedTheme.primaryText};
  47. &::before {
  48. content: "Objavljeno: ";
  49. @media (max-width: 600px) {
  50. font-size: 9px;
  51. font-family: "Open Sans";
  52. }
  53. }
  54. @media (max-width: 600px) {
  55. position: absolute;
  56. bottom: 23px;
  57. left: 18px;
  58. width: 70px;
  59. }
  60. `;
  61. export const Info = styled(Box)`
  62. display: flex;
  63. gap: 18px;
  64. @media (max-width: 600px) {
  65. flex: 1;
  66. gap: 0;
  67. justify-content: space-between;
  68. margin-bottom: 15px;
  69. max-width: 92%;
  70. position: relative;
  71. left: 5px;
  72. }
  73. `;
  74. export const OfferAuthor = styled(Box)`
  75. display: flex;
  76. flex: 1;
  77. flex-direction: column;
  78. `;
  79. export const OfferAuthorName = styled(Typography)`
  80. font-family: "Open Sans";
  81. line-height: 22px;
  82. font-size: 16px;
  83. color: ${selectedTheme.primaryDarkText};
  84. `;
  85. export const OfferLocation = styled(Typography)`
  86. font-family: "Open Sans";
  87. color: ${selectedTheme.primaryText};
  88. line-height: 16px;
  89. font-size: 12px;
  90. `;
  91. export const OfferCategory = styled(Box)`
  92. font-family: "Open Sans";
  93. color: ${selectedTheme.primaryText};
  94. line-height: 16px;
  95. font-size: 12px;
  96. width: 33%;
  97. `;
  98. export const OfferPackage = styled(Box)`
  99. font-family: "Open Sans";
  100. color: ${selectedTheme.primaryText};
  101. line-height: 16px;
  102. font-size: 12px;
  103. width: 34%;
  104. `;
  105. export const OfferViews = styled(Box)`
  106. font-family: "Open Sans";
  107. color: ${selectedTheme.primaryText};
  108. line-height: 16px;
  109. font-size: 12px;
  110. width: 34%;
  111. `;
  112. export const OfferDescription = styled(Box)`
  113. flex: 3;
  114. `;
  115. export const Line = styled(Box)`
  116. border-left: 1px solid rgba(0, 0, 0, 0.15);
  117. height: 100px;
  118. width: 0;
  119. margin: auto 0;
  120. `;
  121. export const DetailIcon = styled(Icon)`
  122. & svg {
  123. width: 14px;
  124. position: relative;
  125. top: -1px;
  126. }
  127. `;
  128. export const DetailText = styled(Typography)`
  129. font-family: "Open Sans";
  130. color: ${selectedTheme.primaryText};
  131. line-height: 16px;
  132. font-size: 12px;
  133. position: relative;
  134. top: -2px;
  135. left: 3px;
  136. `;
  137. export const CheckButton = styled(PrimaryButton)`
  138. width: 180px;
  139. height: 48px;
  140. position: absolute;
  141. bottom: 9px;
  142. right: 12px;
  143. font-weight: 600;
  144. &:hover button {
  145. background-color: ${selectedTheme.primaryPurple} !important;
  146. color: white !important;
  147. }
  148. @media (max-width: 600px) {
  149. height: 44px;
  150. }
  151. `;
  152. // export const OfferImage = styled.img`
  153. // `
  154. export const PublishButtonContainer = styled(Box)`
  155. display: flex;
  156. justify-content: center;
  157. margin-bottom: 30px;
  158. `;
  159. export const CategoryIcon = styled(Category)`
  160. width: 14px;
  161. `
  162. export const SubcategoryIcon = styled(Subcategory)`
  163. width: 14px;
  164. `
  165. export const QuantityIcon = styled(Quantity)`
  166. width: 22px;
  167. height: 16px;
  168. `
  169. export const EyeIcon = styled(Eye)`
  170. width: 18px;
  171. height: 20px;
  172. `