| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- 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";
- import { IconButton } from "../../Buttons/IconButton/IconButton";
- import { ReactComponent as Edit } from "../../../assets/images/svg/edit.svg";
- import { ReactComponent as Remove } from "../../../assets/images/svg/trash.svg";
-
- export const ItemDetailsCardContainer = styled(Container)`
- display: flex;
- flex-direction: column;
- width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
- box-sizing: border-box;
- margin: ${(props) => (props.singleOffer ? "10px 36px" : "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) {
- margin: 18px 0;
- padding: 10px;
- padding-bottom: 65px;
- height: 656px;
- }
-
- @media screen and (max-width: 1200px) {
- margin-left: 0;
- }
- `;
- export const OfferInfo = styled(Box)`
- display: flex;
- flex: 2;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin: 18px 0;
- @media (max-width: 600px) {
- margin: 0;
- flex: 0;
- }
- `;
- export const ButtonsContainer = styled(Box)`
- display: flex;
- align-items: center;
-
- @media screen and (max-width: 600px) {
- position: absolute;
- top: 75px;
- right: 143px;
- }
- `;
-
- export const EditDeleteButtons = styled(Box)`
- display: flex;
-
- @media screen and (max-width: 600px) {
- position: absolute;
- }
- `;
- export const EditIconContainer = styled(IconButton)`
- width: 40px;
- height: 40px;
- background-color: ${selectedTheme.primaryIconBackgroundColor};
- border-radius: 100%;
- padding-top: 2px;
- text-align: center;
- margin-left: 18px;
-
- @media screen and (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
- export const EditIcon = styled(Edit)`
- @media screen and (max-width: 600px) {
- width: 16px;
- height: 16px;
- position: relative;
- top: -4px;
- left: -2px;
- }
- `;
-
- export const RemoveIconContainer = styled(IconButton)`
- width: 40px;
- height: 40px;
- background-color: ${selectedTheme.primaryIconBackgroundColor};
- border-radius: 100%;
- padding-top: 2px;
- text-align: center;
- margin-left: 18px;
-
- @media screen and (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
-
- export const RemoveIcon = styled(Remove)`
- @media screen and (max-width: 600px) {
- width: 16px;
- height: 16px;
- position: relative;
- top: -4px;
- left: -2px;
- }
- `;
-
- export const DateButtonsContainer = styled(Box)`
- display: flex;
- align-items: center;
- position: absolute;
- right: 220px;
- bottom: 22px;
-
- @media screen and (max-width: 600px) {
- top: 0;
- right: -10px;
- }
- `;
-
- export const PostDate = styled(Typography)`
- font-family: "DM Sans";
- font-size: 12px;
- color: ${selectedTheme.primaryText};
- &::before {
- content: "Objavljeno: ";
- @media (max-width: 600px) {
- font-size: 9px;
- font-family: "DM Sans";
- }
- }
- @media (max-width: 600px) {
- position: absolute;
- bottom: 23px;
- left: 18px;
- width: 70px;
- flex-direction: column;
- align-items: start;
- }
- @media screen and (min-width: 600px) and (max-width: 1200px) {
- display: none;
- }
- `;
- 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: "DM Sans";
- line-height: 22px;
- font-size: 16px;
- color: ${selectedTheme.primaryDarkText};
- `;
- export const OfferLocation = styled(Typography)`
- font-family: "DM Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- `;
-
- export const OfferCategory = styled(Box)`
- font-family: "DM Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 33%;
- `;
- export const OfferPackage = styled(Box)`
- font-family: "DM Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 34%;
- `;
- export const OfferViews = styled(Box)`
- font-family: "DM Sans";
- color: ${selectedTheme.primaryText};
- line-height: 16px;
- font-size: 12px;
- width: 34%;
- `;
- export const OfferDescriptionTitle = styled(Box)`
- font-family: "DM Sans";
- font-size: 12px;
- color: ${selectedTheme.primaryDarkText};
- line-height: 16px;
- @media (max-width: 600px) {
- font-size: 9px;
- line-height: 13px;
- }
- `;
- export const OfferDescriptionText = styled(Box)`
- font-family: "DM Sans";
- font-size: 16px;
- color: ${selectedTheme.primaryDarkText};
- line-height: 22px;
- padding-bottom: 20px;
- max-width: ${(props) =>
- props.showBarterButton ? "calc(100% - 230px)" : "100%"};
- @media (max-width: 600px) {
- font-size: 14px;
- max-width: 100%;
- max-height: 100px;
- }
- /* max-width: calc(100% - 230px); */
- /* 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: "DM 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 {
- color: white !important;
- background-color: ${(props) =>
- !props.disabled
- ? selectedTheme.primaryPurple
- : selectedTheme.primaryPurpleDisabled} !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;
- `;
|