選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ItemDetailsCard.styled.js 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. export const ItemDetailsCardContainer = styled(Container)`
  8. display: flex;
  9. flex-direction: column;
  10. width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
  11. box-sizing: border-box;
  12. margin: 10px 0;
  13. border: 1px solid ${selectedTheme.borderNormal};
  14. background-color: ${(props) =>
  15. props.sponsored === 'true' ? selectedTheme.backgroundSponsoredColor : "white"};
  16. border-radius: 4px;
  17. padding: 18px;
  18. max-width: 2000px;
  19. position: relative;
  20. `;
  21. export const OfferImage = styled(Box)``;
  22. export const OfferInfo = styled(Box)`
  23. display: flex;
  24. flex: 2;
  25. flex-direction: row;
  26. justify-content: space-between;
  27. margin:18px 0;
  28. `;
  29. export const InfoGroup = styled(Box)`
  30. display: flex;
  31. flex-direction: row;
  32. align-items:center;
  33. gap:4px;
  34. `;
  35. export const PostDate = styled(Typography)`
  36. font-family: "Open Sans";
  37. font-size: 12px;
  38. color: ${selectedTheme.primaryText};
  39. `;
  40. export const Info = styled(Box)`
  41. display:flex;
  42. gap:18px;
  43. `;
  44. export const InfoIcon = styled(Box)`
  45. `;
  46. export const InfoText = styled(Typography)`
  47. font-family: "Open Sans";
  48. `;
  49. export const OfferTitle = styled(Typography)`
  50. font-family: "Open Sans";
  51. flex: 1;
  52. color: ${selectedTheme.primaryPurple};
  53. font-weight: 700;
  54. font-size: 24px;
  55. padding: 0 72px;
  56. `;
  57. export const OfferAuthor = styled(Box)`
  58. display: flex;
  59. flex: 1;
  60. flex-direction: column;
  61. `;
  62. export const OfferAuthorName = styled(Typography)`
  63. font-family: "Open Sans";
  64. line-height: 22px;
  65. font-size: 16px;
  66. color: ${selectedTheme.primaryDarkText};
  67. `;
  68. export const OfferLocation = styled(Typography)`
  69. font-family: "Open Sans";
  70. color: ${selectedTheme.primaryText};
  71. line-height: 16px;
  72. font-size: 12px;
  73. `;
  74. export const OfferDetails = styled(Box)`
  75. display: flex;
  76. flex-direction: column;
  77. flex-wrap: ${(props) => (!props.halfwidth ? "no-wrap" : "wrap")};
  78. justify-content: space-between;
  79. padding: 0 72px;
  80. `;
  81. export const OfferCategory = styled(Box)`
  82. font-family: "Open Sans";
  83. color: ${selectedTheme.primaryText};
  84. line-height: 16px;
  85. font-size: 12px;
  86. width: 33%;
  87. `;
  88. export const OfferPackage = styled(Box)`
  89. font-family: "Open Sans";
  90. color: ${selectedTheme.primaryText};
  91. line-height: 16px;
  92. font-size: 12px;
  93. width: 34%;
  94. `;
  95. export const OfferViews = styled(Box)`
  96. font-family: "Open Sans";
  97. color: ${selectedTheme.primaryText};
  98. line-height: 16px;
  99. font-size: 12px;
  100. width: 34%;
  101. `;
  102. export const OfferDescriptionTitle = styled(Box)`
  103. font-family: "Open Sans";
  104. font-size: 12px;
  105. color: ${selectedTheme.primaryDarkText};
  106. line-height: 16px;
  107. `;
  108. export const OfferDescriptionText = styled(Box)`
  109. font-family: "Open Sans";
  110. font-size: 16px;
  111. color: ${selectedTheme.primaryDarkText};
  112. line-height: 22px;
  113. max-width: calc(100% - 230px);
  114. max-height: 120px;
  115. overflow: hidden;
  116. display: -webkit-box;
  117. -webkit-line-clamp: 5;
  118. -webkit-box-orient: vertical;
  119. `;
  120. export const OfferDescription = styled(Box)`
  121. flex: 3;
  122. `;
  123. export const Line = styled(Box)`
  124. border-left: 1px solid rgba(0, 0, 0, 0.15);
  125. height: 100px;
  126. width: 0;
  127. margin: auto 0;
  128. `;
  129. export const DetailIcon = styled(Icon)`
  130. & svg {
  131. width: 14px;
  132. position: relative;
  133. top: -1px;
  134. }
  135. `;
  136. export const DetailText = styled(Typography)`
  137. font-family: "Open Sans";
  138. color: ${selectedTheme.primaryText};
  139. line-height: 16px;
  140. font-size: 12px;
  141. position: relative;
  142. top: -2px;
  143. left: 3px;
  144. `;
  145. export const CheckButton = styled(PrimaryButton)`
  146. width: 180px;
  147. height: 48px;
  148. position: absolute;
  149. bottom: 9px;
  150. right: 9px;
  151. &:hover button {
  152. background-color: ${selectedTheme.primaryPurple} !important;
  153. color: white !important;
  154. }
  155. `;
  156. export const Details = styled(Box)`
  157. `;