| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- import { Box, Container, Typography } from "@mui/material";
- import styled from "styled-components";
- import selectedTheme from "../../../themes";
- //import { IconButton } from "../../Buttons/IconButton/IconButton";
- import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
- import { Icon } from "../../Icon/Icon";
-
- export const ItemDetailsCardContainer = styled(Container)`
- display: flex;
- flex-direction: column;
- width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
- box-sizing: border-box;
- margin: 10px 0;
- border: 1px solid ${selectedTheme.borderNormal};
- background-color: ${(props) =>
- props.sponsored === 'true' ? selectedTheme.backgroundSponsoredColor : "white"};
- border-radius: 4px;
- padding: 18px;
- max-width: 2000px;
- position: relative;
- `;
- export const OfferImage = styled(Box)``;
- export const OfferInfo = styled(Box)`
- display: flex;
- flex: 2;
- flex-direction: row;
- justify-content: space-between;
- margin:18px 0;
- `;
- export const InfoGroup = styled(Box)`
- display: flex;
- flex-direction: row;
- align-items:center;
- gap:4px;
- `;
- export const PostDate = styled(Typography)`
- font-family: "Open Sans";
- font-size: 12px;
- color: ${selectedTheme.primaryText};
- `;
- export const Info = styled(Box)`
- display:flex;
- gap:18px;
- `;
- export const InfoIcon = styled(Box)`
- `;
- export const InfoText = styled(Typography)`
- font-family: "Open Sans";
- `;
- export const OfferTitle = styled(Typography)`
- font-family: "Open Sans";
- flex: 1;
- color: ${selectedTheme.primaryPurple};
- font-weight: 700;
- font-size: 24px;
- padding: 0 72px;
- `;
- export const OfferAuthor = styled(Box)`
- display: flex;
- flex: 1;
- flex-direction: column;
- `;
- export const OfferAuthorName = styled(Typography)`
- font-family: "Open Sans";
- line-height: 22px;
- font-size: 16px;
- color: ${selectedTheme.primaryDarkText};
- `;
- export const OfferLocation = styled(Typography)`
- font-family: "Open Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- `;
- export const OfferDetails = styled(Box)`
- display: flex;
- flex-direction: column;
- flex-wrap: ${(props) => (!props.halfwidth ? "no-wrap" : "wrap")};
- justify-content: space-between;
- padding: 0 72px;
- `;
- export const OfferCategory = styled(Box)`
- font-family: "Open Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 33%;
- `;
- export const OfferPackage = styled(Box)`
- font-family: "Open Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 34%;
- `;
- export const OfferViews = styled(Box)`
- font-family: "Open Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 34%;
- `;
- export const OfferDescriptionTitle = styled(Box)`
- font-family: "Open Sans";
- font-size: 12px;
- color: ${selectedTheme.primaryDarkText};
- line-height: 16px;
- `;
- export const OfferDescriptionText = styled(Box)`
- font-family: "Open Sans";
- font-size: 16px;
- color: ${selectedTheme.primaryDarkText};
- line-height: 22px;
- max-width: calc(100% - 230px);
- max-height: 120px;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 5;
- -webkit-box-orient: vertical;
- `;
- export const OfferDescription = styled(Box)`
- flex: 3;
- `;
- export const Line = styled(Box)`
- border-left: 1px solid rgba(0, 0, 0, 0.15);
- height: 100px;
- width: 0;
- margin: auto 0;
- `;
- export const DetailIcon = styled(Icon)`
- & svg {
- width: 14px;
- position: relative;
- top: -1px;
- }
- `;
- export const DetailText = styled(Typography)`
- font-family: "Open Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- position: relative;
- top: -2px;
- left: 3px;
- `;
- export const CheckButton = styled(PrimaryButton)`
- width: 180px;
- height: 48px;
- position: absolute;
- bottom: 9px;
- right: 9px;
- &:hover button {
- background-color: ${selectedTheme.primaryPurple} !important;
- color: white !important;
- }
- `;
- export const Details = styled(Box)`
- `;
|