| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- 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";
- import { ReactComponent as Category } from "../../../assets/images/svg/category.svg";
- import { ReactComponent as Subcategory } from "../../../assets/images/svg/subcategory.svg";
- import { ReactComponent as Quantity } from "../../../assets/images/svg/quantity.svg";
- import { ReactComponent as Eye } from "../../../assets/images/svg/eye-striked.svg";
-
- 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;
- width: 100%;
- /* padding-bottom: 70px; */
-
- @media (max-width: 600px) {
- padding: 10px;
- padding-bottom: 65px;
- }
- `;
- export const OfferInfo = styled(Box)`
- display: flex;
- flex: 2;
- flex-direction: row;
- justify-content: space-between;
- margin: 18px 0;
- @media (max-width: 600px) {
- margin: 0;
- }
- `;
- export const PostDate = styled(Typography)`
- font-family: "Open Sans";
- font-size: 12px;
- color: ${selectedTheme.primaryText};
- &::before {
- content: "Objavljeno: ";
- @media (max-width: 600px) {
- font-size: 9px;
- font-family: "Open Sans";
- }
- }
- @media (max-width: 600px) {
- position: absolute;
- bottom: 23px;
- left: 18px;
- width: 70px;
- }
- `;
- export const Info = styled(Box)`
- display: flex;
- gap: 18px;
- @media (max-width: 600px) {
- flex: 1;
- gap: 0;
- justify-content: space-between;
- margin-bottom: 15px;
- max-width: 92%;
- position: relative;
- left: 5px;
- }
- `;
- 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 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 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: 12px;
- font-weight: 600;
- &:hover button {
- background-color: ${selectedTheme.primaryPurple} !important;
- color: white !important;
- }
- @media (max-width: 600px) {
- height: 44px;
- }
- `;
- // export const OfferImage = styled.img`
- // `
-
- export const PublishButtonContainer = styled(Box)`
- display: flex;
- justify-content: center;
- margin-bottom: 30px;
- `;
- export const CategoryIcon = styled(Category)`
- width: 14px;
- `
- export const SubcategoryIcon = styled(Subcategory)`
- width: 14px;
- `
- export const QuantityIcon = styled(Quantity)`
- width: 22px;
- height: 16px;
- `
-
- export const EyeIcon = styled(Eye)`
- width: 18px;
- height: 20px;
- `
|