Bläddra i källkod

changed color and font to pull from global theme

global-styles
Pavle Golubovic 3 år sedan
förälder
incheckning
b94d39c82f
62 ändrade filer med 281 tillägg och 298 borttagningar
  1. 6
    6
      src/components/Buttons/ArrowButton/ArrowButton.styled.js
  2. 1
    1
      src/components/Buttons/IconButton/IconButton.styled.js
  3. 2
    2
      src/components/Buttons/PrimaryButton/PrimaryButton.js
  4. 3
    3
      src/components/Buttons/PrimaryButton/PrimaryButton.styled.js
  5. 6
    7
      src/components/Cards/CreateOfferCard/CreateOffer.styled.js
  6. 1
    1
      src/components/Cards/CreateOfferCard/FirstPart/FirstPartCreateOffer.js
  7. 5
    6
      src/components/Cards/CreateOfferCard/FirstPart/FirstPartCreateOffer.styled.js
  8. 4
    5
      src/components/Cards/FilterCard/FilterCard.js
  9. 4
    5
      src/components/Cards/FilterCard/FilterCard.styled.js
  10. 4
    5
      src/components/Cards/FilterCard/FilterDropdown/Checkbox/FilterCheckboxDropdown.js
  11. 3
    4
      src/components/Cards/FilterCard/FilterDropdown/Checkbox/FilterCheckboxDropdown.styled.js
  12. 4
    5
      src/components/Cards/FilterCard/FilterDropdown/Radio/FilterRadioDropdown.js
  13. 1
    1
      src/components/Cards/FilterCard/FilterDropdown/Radio/FilterRadioDropdown.styled.js
  14. 5
    5
      src/components/Cards/ItemDetailsCard/ItemDetailsCard.js
  15. 23
    24
      src/components/Cards/ItemDetailsCard/ItemDetailsCard.styled.js
  16. 2
    2
      src/components/Cards/OfferCard/OfferCard.js
  17. 22
    23
      src/components/Cards/OfferCard/OfferCard.styled.js
  18. 1
    1
      src/components/CheckBox/CheckBox.js
  19. 2
    2
      src/components/CheckBox/CheckBox.styled.js
  20. 4
    5
      src/components/CheckBox/Label.styled.js
  21. 2
    2
      src/components/Dropdown/DropdownItem/DropdownItem.styled.js
  22. 4
    5
      src/components/Dropdown/DropdownList/DropdownList.styled.js
  23. 3
    3
      src/components/Icon/IconWithNumber/IconWithNumber.styled.js
  24. 7
    7
      src/components/ImagePicker/ImagePicker.styled.js
  25. 2
    3
      src/components/ItemDetails/Header/Header.styled.js
  26. 2
    2
      src/components/ItemDetails/ItemDetailsHeaderCard/ItemDetailsHeaderCard.js
  27. 29
    30
      src/components/ItemDetails/ItemDetailsHeaderCard/ItemDetailsHeaderCard.styled.js
  28. 1
    1
      src/components/Link/Link.styled.js
  29. 4
    4
      src/components/MarketPlace/Header/Header.js
  30. 5
    6
      src/components/MarketPlace/Header/Header.styled.js
  31. 2
    2
      src/components/Radio/Button/RadioButton.styled.js
  32. 5
    5
      src/components/Scroller/HorizontalScroller.styled.js
  33. 3
    3
      src/components/Select/Option/Option.styled.js
  34. 2
    2
      src/components/Select/Select.styled.js
  35. 4
    5
      src/components/StepProgress/StepProgress.styled.js
  36. 1
    1
      src/components/TextFields/TextField/TextField.styled.js
  37. 1
    1
      src/components/UserReviewsCard/UserReviewsCard.js
  38. 6
    7
      src/pages/CreateOffer/CreateOffer.styled.js
  39. 7
    8
      src/pages/ForgotPasswordPage/ForgotPassword.styled.js
  40. 1
    1
      src/pages/ForgotPasswordPage/ForgotPasswordMailSent/MailSent.js
  41. 7
    8
      src/pages/ForgotPasswordPage/ForgotPasswordMailSent/MailSent.styled.js
  42. 1
    1
      src/pages/ForgotPasswordPage/ForgotPasswordPage.js
  43. 1
    1
      src/pages/HomePage/HomePage.styled.js
  44. 1
    1
      src/pages/ItemDetailsPage/ItemDetailsPage.styled.js
  45. 7
    8
      src/pages/LoginPage/Login.styled.js
  46. 1
    1
      src/pages/LoginPage/LoginPage.js
  47. 1
    1
      src/pages/RegisterPages/Register/FirstPart/FirstPartOfRegistration.js
  48. 3
    4
      src/pages/RegisterPages/Register/FirstPart/FirstPartOfRegistration.styled.js
  49. 7
    8
      src/pages/RegisterPages/Register/Register.styled.js
  50. 1
    1
      src/pages/RegisterPages/Register/SecondPart/SecondPartOfRegistration.js
  51. 3
    4
      src/pages/RegisterPages/Register/SecondPart/SecondPartOfRegistration.styled.js
  52. 1
    1
      src/pages/RegisterPages/Register/ThirdPart/ThirdPartOfRegistration.js
  53. 2
    3
      src/pages/RegisterPages/Register/ThirdPart/ThirdPartOfRegistration.styled.js
  54. 4
    5
      src/pages/RegisterPages/RegisterSuccessful.js/RegisterSuccessful.styled.js
  55. 1
    1
      src/pages/ResetPasswordPage/ResetPasswordPage.js
  56. 6
    7
      src/pages/ResetPasswordPage/ResetPasswordPage.styled.js
  57. 3
    2
      src/themes/index.js
  58. 2
    2
      src/themes/primaryTheme/base.js
  59. 28
    0
      src/themes/primaryTheme/primaryTheme.js
  60. 0
    19
      src/themes/primaryTheme/primaryThemeColors.js
  61. 4
    9
      src/themes/primaryTheme/primaryThemeFonts.js
  62. 3
    0
      src/themes/primaryTheme/variables.js

+ 6
- 6
src/components/Buttons/ArrowButton/ArrowButton.styled.js Visa fil

height: 18px; height: 18px;
& path { & path {
${props => props.disabled && ` ${props => props.disabled && `
stroke: ${selectedTheme.iconStrokeDisabledColor}
stroke: ${selectedTheme.colors.iconStrokeDisabledColor}
`} `}
} }
` `
export const ArrowContainer = styled(IconButton)` export const ArrowContainer = styled(IconButton)`
border: 1px solid ${selectedTheme.primaryPurple};
border: 1px solid ${selectedTheme.colors.primaryPurple};
border-radius: 100%; border-radius: 100%;
min-width: 40px; min-width: 40px;
width: 40px; width: 40px;
margin-bottom: auto; margin-bottom: auto;
transition: 0.2s all ease; transition: 0.2s all ease;
&:hover { &:hover {
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
& svg path { & svg path {
stroke: white; stroke: white;
} }
} }
${props => props.disabled && ` ${props => props.disabled && `
border 1px solid ${selectedTheme.iconStrokeDisabledColor};
border 1px solid ${selectedTheme.colors.iconStrokeDisabledColor};
&:hover { &:hover {
background-color: inherit; background-color: inherit;
& svg path { & svg path {
stroke: ${selectedTheme.iconStrokeDisabledColor};
stroke: ${selectedTheme.colors.iconStrokeDisabledColor};
} }
} }
& svg path { & svg path {
stroke: ${selectedTheme.iconStrokeDisabledColor};
stroke: ${selectedTheme.colors.iconStrokeDisabledColor};
transition: 0.2s all ease; transition: 0.2s all ease;
} }

+ 1
- 1
src/components/Buttons/IconButton/IconButton.styled.js Visa fil

stroke: ${props.iconcolor}; stroke: ${props.iconcolor};
} }
`} `}
border: ${props => props.border ? "1px solid " + selectedTheme.backgroundSponsoredColor : "none"}
border: ${props => props.border ? "1px solid " + selectedTheme.colors.backgroundSponsoredColor : "none"}
` `

+ 2
- 2
src/components/Buttons/PrimaryButton/PrimaryButton.js Visa fil

import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { import {
PrimaryButtonContainer, PrimaryButtonContainer,
PrimaryButtonStyled, PrimaryButtonStyled,
} from "./PrimaryButton.styled"; } from "./PrimaryButton.styled";
import selectedTheme from "../../../themes";


export const PrimaryButton = (props) => { export const PrimaryButton = (props) => {
return ( return (
}; };


PrimaryButton.defaultProps = { PrimaryButton.defaultProps = {
font: TextFont,
font: selectedTheme.fonts.textFont,
}; };

+ 3
- 3
src/components/Buttons/PrimaryButton/PrimaryButton.styled.js Visa fil

export const PrimaryButtonStyled = styled(Button)` export const PrimaryButtonStyled = styled(Button)`
background-color: ${(props) => background-color: ${(props) =>
props.disabled props.disabled
? selectedTheme.primaryPurpleDisabled
? selectedTheme.colors.primaryPurpleDisabled
: props.variant === "contained" : props.variant === "contained"
? props.buttoncolor ? props.buttoncolor
: "transparent"} !important; : "transparent"} !important;
props.variant === "outlined" ? props.buttoncolor : "transparent"}; props.variant === "outlined" ? props.buttoncolor : "transparent"};
color: ${(props) => color: ${(props) =>
props.disabled props.disabled
? selectedTheme.primaryTextDisabled
? selectedTheme.colors.primaryTextDisabled
: props.textcolor} !important; : props.textcolor} !important;
box-shadow: 0 0 0 0; box-shadow: 0 0 0 0;
font-size: 12px; font-size: 12px;
box-shadow: 0 0 0 0; box-shadow: 0 0 0 0;
} }
&:disabled { &:disabled {
background-color: ${selectedTheme.primaryPurpleDisabled};
background-color: ${selectedTheme.colors.primaryPurpleDisabled};
color: ${(props) => props.textcolor}; color: ${(props) => props.textcolor};
} }
`; `;

+ 6
- 7
src/components/Cards/CreateOfferCard/CreateOffer.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { Label } from "../../CheckBox/Label"; import { Label } from "../../CheckBox/Label";
import Select from "../../Select/Select"; import Select from "../../Select/Select";


align-items: center; align-items: center;
`; `;
export const CreateOfferTitle = styled(Typography)` export const CreateOfferTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
margin-bottom: 40px; margin-bottom: 40px;
`; `;
export const CreateOfferDescription = styled(Typography)` export const CreateOfferDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;
export const CreateOfferFormContainer = styled(Box)` export const CreateOfferFormContainer = styled(Box)`
`; `;
export const RegisterAltText = styled(Typography)` export const RegisterAltText = styled(Typography)`
font-family: "Poppins"; font-family: "Poppins";
color: ${selectedTheme.primaryText};
color: ${selectedTheme.fonts.textFont};
font-size: 14px; font-size: 14px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
line-height: 20px; line-height: 20px;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
cursor: auto; cursor: auto;
letter-spacing: 0.2px; letter-spacing: 0.2px;
} }

+ 1
- 1
src/components/Cards/CreateOfferCard/FirstPart/FirstPartCreateOffer.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
// disabled={ // disabled={
// formik.values.username.length === 0 || // formik.values.username.length === 0 ||

+ 5
- 6
src/components/Cards/CreateOfferCard/FirstPart/FirstPartCreateOffer.styled.js Visa fil

import { Box, Typography } from "@mui/material"; import { Box, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../../themes"; import selectedTheme from "../../../../themes";
import { TextFont } from "../../../../themes/primaryTheme/primaryThemeFonts";
import { PrimaryButton } from "../../../Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../../Buttons/PrimaryButton/PrimaryButton";
import { Label } from "../../../CheckBox/Label"; import { Label } from "../../../CheckBox/Label";
import { TextField } from "../../../TextFields/TextField/TextField"; import { TextField } from "../../../TextFields/TextField/TextField";


export const CreateOfferTitle = styled(Typography)` export const CreateOfferTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
margin-bottom: 40px; margin-bottom: 40px;
position: relative; position: relative;
`; `;
export const CreateOfferDescription = styled(Typography)` export const CreateOfferDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 18px; margin-bottom: 18px;
`; `;
export const CreateOfferFormContainer = styled(Box)` export const CreateOfferFormContainer = styled(Box)`
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
line-height: 20px; line-height: 20px;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
cursor: auto; cursor: auto;
letter-spacing: 0.2px; letter-spacing: 0.2px;
} }

+ 4
- 5
src/components/Cards/FilterCard/FilterCard.js Visa fil

import qs from "query-string"; import qs from "query-string";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


const FilterCard = () => { const FilterCard = () => {
const [appliedFilters, setAppliedFilters] = useState([]); const [appliedFilters, setAppliedFilters] = useState([]);
<FilterCardContainer> <FilterCardContainer>
<Header> <Header>
<Title>{t("filters.title")}</Title> <Title>{t("filters.title")}</Title>
<Link to="#" textsize={"12px"} font={TextFont} onClick={clearFilters}>
<Link to="#" textsize={"12px"} font={selectedTheme.fonts.textFont} onClick={clearFilters}>
{t("filters.cancel")} {t("filters.cancel")}
</Link> </Link>
</Header> </Header>
variant="outlined" variant="outlined"
fullWidth fullWidth
onClick={handleFilters} onClick={handleFilters}
textcolor={selectedTheme.primaryPurple}
font={TextFont}
textcolor={selectedTheme.colors.primaryPurple}
font={selectedTheme.fonts.textFont}
style={{ style={{
fontWeight: "600", fontWeight: "600",
fontSize: "12px", fontSize: "12px",
borderColor: selectedTheme.primaryPurple,
borderColor: selectedTheme.colors.primaryPurple,
}} }}
> >
{t("filters.usefilters")} {t("filters.usefilters")}

+ 4
- 5
src/components/Cards/FilterCard/FilterCard.styled.js Visa fil

import { Box, Typography } from "@mui/material"; import { Box, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const FilterCardContainer = styled(Box)` export const FilterCardContainer = styled(Box)`
position: fixed; position: fixed;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
font-weight: 700; font-weight: 700;
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
position: relative; position: relative;
`; `;
export const Header = styled(Box)` export const Header = styled(Box)`
padding-top: 7px; padding-top: 7px;
} }
& div button:hover { & div button:hover {
background-color: ${selectedTheme.primaryPurple} !important;
color: ${selectedTheme.primaryBackgroundColor} !important;
background-color: ${selectedTheme.colors.primaryPurple} !important;
color: ${selectedTheme.colors.primaryBackgroundColor} !important;
} }
`; `;
export const ContentContainer = styled(Box)` export const ContentContainer = styled(Box)`

+ 4
- 5
src/components/Cards/FilterCard/FilterDropdown/Checkbox/FilterCheckboxDropdown.js Visa fil

import PropTypes from "prop-types"; import PropTypes from "prop-types";
import DropdownList from "../../../../Dropdown/DropdownList/DropdownList"; import DropdownList from "../../../../Dropdown/DropdownList/DropdownList";
import selectedTheme from "../../../../../themes"; import selectedTheme from "../../../../../themes";
import {TextFont} from "../../../../../themes/primaryTheme/primaryThemeFonts"
import IconWithNumber from "../../../../Icon/IconWithNumber/IconWithNumber"; import IconWithNumber from "../../../../Icon/IconWithNumber/IconWithNumber";
import { ReactComponent as DropdownDown } from "../../../../../assets/images/svg/down-arrow.svg"; import { ReactComponent as DropdownDown } from "../../../../../assets/images/svg/down-arrow.svg";
import { ReactComponent as DropdownUp } from "../../../../../assets/images/svg/up-arrow.svg"; import { ReactComponent as DropdownUp } from "../../../../../assets/images/svg/up-arrow.svg";
title={props.title} title={props.title}
textcolor={ textcolor={
props.filters.length > 0 props.filters.length > 0
? selectedTheme.primaryPurple
: selectedTheme.primaryText
? selectedTheme.colors.primaryPurple
: selectedTheme.colors.primaryText
} }
dropdownIcon={ dropdownIcon={
<IconWithNumber number={props.filters.length}> <IconWithNumber number={props.filters.length}>
fullWidth fullWidth
setIsOpened={setIsOpened} setIsOpened={setIsOpened}
toggleIconStyles={{ toggleIconStyles={{
backgroundColor: isOpened ? "white" : selectedTheme.primaryIconBackgroundColor,
backgroundColor: isOpened ? "white" : selectedTheme.colors.primaryIconBackgroundColor,
}} }}
headerOptions={ headerOptions={
<React.Fragment> <React.Fragment>
value={toSearch} value={toSearch}
onChange={(event) => setToSearch(event.target.value)} onChange={(event) => setToSearch(event.target.value)}
textsize={"12px"} textsize={"12px"}
font={TextFont}
font={selectedTheme.fonts.textFont}
fullWidth fullWidth
height={"40px"} height={"40px"}
containerStyle={{ marginTop: "6px" }} containerStyle={{ marginTop: "6px" }}

+ 3
- 4
src/components/Cards/FilterCard/FilterDropdown/Checkbox/FilterCheckboxDropdown.styled.js Visa fil

import { Box } from "@mui/material"; import { Box } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../../../themes"; import selectedTheme from "../../../../../themes";
import { TextFont } from "../../../../../themes/primaryTheme/primaryThemeFonts";


export const SelectedItemsContainer = styled(Box)` export const SelectedItemsContainer = styled(Box)`
display: flex; display: flex;
`; `;
export const SelectedItem = styled(Box)` export const SelectedItem = styled(Box)`
margin-top: 2px; margin-top: 2px;
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
border-radius: 8px; border-radius: 8px;
color: white; color: white;
padding-left: 8px; padding-left: 8px;
padding-right: 6px; padding-right: 6px;
line-height: 12px; line-height: 12px;
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
margin-right: 3px; margin-right: 3px;
width: 21px; width: 21px;
height: 21px; height: 21px;
&:hover { &:hover {
background-color: ${selectedTheme.primaryIconBackgroundColor};
background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
} }
`; `;

+ 4
- 5
src/components/Cards/FilterCard/FilterDropdown/Radio/FilterRadioDropdown.js Visa fil

import DropdownItem from "../../../../Dropdown/DropdownItem/DropdownItem"; import DropdownItem from "../../../../Dropdown/DropdownItem/DropdownItem";
import RadioButton from "../../../../Radio/Button/RadioButton"; import RadioButton from "../../../../Radio/Button/RadioButton";
import RadioGroup from "../../../../Radio/Group/RadioGroup"; import RadioGroup from "../../../../Radio/Group/RadioGroup";
import { TextFont } from "../../../../../themes/primaryTheme/primaryThemeFonts";


const FilterRadioDropdown = (props) => { const FilterRadioDropdown = (props) => {
const [toSearch, setToSearch] = useState(""); const [toSearch, setToSearch] = useState("");
title={props.title} title={props.title}
textcolor={ textcolor={
props.selected !== 0 props.selected !== 0
? selectedTheme.primaryPurple
: selectedTheme.primaryText
? selectedTheme.colors.primaryPurple
: selectedTheme.colors.primaryText
} }
dropdownIcon={props.icon} dropdownIcon={props.icon}
toggleIconClosed={<DropdownDown />} toggleIconClosed={<DropdownDown />}
fullWidth fullWidth
setIsOpened={setIsOpened} setIsOpened={setIsOpened}
toggleIconStyles={{ toggleIconStyles={{
backgroundColor: isOpened ? "white" : selectedTheme.primaryIconBackgroundColor,
backgroundColor: isOpened ? "white" : selectedTheme.colors.primaryIconBackgroundColor,
}} }}
headerOptions={ headerOptions={
<React.Fragment> <React.Fragment>
value={toSearch} value={toSearch}
onChange={(event) => setToSearch(event.target.value)} onChange={(event) => setToSearch(event.target.value)}
textsize={"12px"} textsize={"12px"}
font={TextFont}
font={selectedTheme.fonts.textFont}
fullWidth fullWidth
height={"40px"} height={"40px"}
containerStyle={{ marginTop: "6px" }} containerStyle={{ marginTop: "6px" }}

+ 1
- 1
src/components/Cards/FilterCard/FilterDropdown/Radio/FilterRadioDropdown.styled.js Visa fil

width: 21px; width: 21px;
height: 21px; height: 21px;
&:hover { &:hover {
background-color: ${selectedTheme.primaryIconBackgroundColor};
background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
} }
` `

+ 5
- 5
src/components/Cards/ItemDetailsCard/ItemDetailsCard.js Visa fil

<OfferInfo> <OfferInfo>
<Info> <Info>
<InfoGroup> <InfoGroup>
<InfoIcon color={selectedTheme.iconStrokeColor} component="span" size="16px">
<InfoIcon color={selectedTheme.colors.iconStrokeColor} component="span" size="16px">
<Category width={"14px"} /> <Category width={"14px"} />
</InfoIcon> </InfoIcon>
<InfoText>{offerMock.category}</InfoText> <InfoText>{offerMock.category}</InfoText>
</InfoGroup> </InfoGroup>
<InfoGroup> <InfoGroup>
<InfoIcon color={selectedTheme.iconStrokeColor} component="span" size="16px">
<InfoIcon color={selectedTheme.colors.iconStrokeColor} component="span" size="16px">
<Subcategory width={"14px"} /> <Subcategory width={"14px"} />
</InfoIcon> </InfoIcon>
<InfoText>{offerMock.subcategory}</InfoText> <InfoText>{offerMock.subcategory}</InfoText>
</InfoGroup> </InfoGroup>
<InfoGroup> <InfoGroup>
<InfoIcon color={selectedTheme.iconStrokeColor} component="span" size="16px">
<InfoIcon color={selectedTheme.colors.iconStrokeColor} component="span" size="16px">
<Quantity width={"22px"} height={"16px"} /> <Quantity width={"22px"} height={"16px"} />
</InfoIcon> </InfoIcon>
<InfoText>{props.offer.condition}</InfoText> <InfoText>{props.offer.condition}</InfoText>
<React.Fragment> <React.Fragment>
<CheckButton <CheckButton
variant={props.sponsored ? "contained" : "outlined"} variant={props.sponsored ? "contained" : "outlined"}
buttoncolor={selectedTheme.primaryPurple}
textcolor={props.sponsored ? "white" : selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor={props.sponsored ? "white" : selectedTheme.colors.primaryPurple}
style={{fontWeight: "600"}} style={{fontWeight: "600"}}
> >
Trampi Trampi

+ 23
- 24
src/components/Cards/ItemDetailsCard/ItemDetailsCard.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
//import { IconButton } from "../../Buttons/IconButton/IconButton"; //import { IconButton } from "../../Buttons/IconButton/IconButton";
import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";
width: ${(props) => (!props.halfwidth ? "100%" : "49%")}; width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
box-sizing: border-box; box-sizing: border-box;
margin: 10px 0; margin: 10px 0;
border: 1px solid ${selectedTheme.borderNormal};
border: 1px solid ${selectedTheme.colors.borderNormal};
background-color: ${(props) => background-color: ${(props) =>
props.sponsored === 'true' ? selectedTheme.backgroundSponsoredColor : "white"};
props.sponsored === 'true' ? selectedTheme.colors.backgroundSponsoredColor : "white"};
border-radius: 4px; border-radius: 4px;
padding: 18px; padding: 18px;
max-width: 2000px; max-width: 2000px;
gap:4px; gap:4px;
`; `;
export const PostDate = styled(Typography)` export const PostDate = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
color: ${selectedTheme.primaryText};
color: ${selectedTheme.colors.primaryText};
`; `;
export const Info = styled(Box)` export const Info = styled(Box)`
display:flex; display:flex;
align-items:center; align-items:center;
`; `;
export const InfoText = styled(Typography)` export const InfoText = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
text-transform: capitalize; text-transform: capitalize;
`; `;
export const OfferTitle = styled(Typography)` export const OfferTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
flex: 1; flex: 1;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
padding: 0 72px; padding: 0 72px;
flex-direction: column; flex-direction: column;
`; `;
export const OfferAuthorName = styled(Typography)` export const OfferAuthorName = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText}; color: ${selectedTheme.primaryDarkText};
`; `;
export const OfferLocation = styled(Typography)` export const OfferLocation = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
padding: 0 72px; padding: 0 72px;
`; `;
export const OfferCategory = styled(Box)` export const OfferCategory = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 33%; width: 33%;
`; `;
export const OfferPackage = styled(Box)` export const OfferPackage = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 34%; width: 34%;
`; `;
export const OfferViews = styled(Box)` export const OfferViews = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 34%; width: 34%;
`; `;
export const OfferDescriptionTitle = styled(Box)` export const OfferDescriptionTitle = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 16px; line-height: 16px;
`; `;
export const OfferDescriptionText = styled(Box)` export const OfferDescriptionText = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 22px; line-height: 22px;
max-width: calc(100% - 230px); max-width: calc(100% - 230px);
max-height: 120px; max-height: 120px;
} }
`; `;
export const DetailText = styled(Typography)` export const DetailText = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
position: relative; position: relative;
bottom: 9px; bottom: 9px;
right: 9px; right: 9px;
&:hover button { &:hover button {
background-color: ${selectedTheme.primaryPurple} !important;
background-color: ${selectedTheme.colors.primaryPurple} !important;
color: white !important; color: white !important;
} }
`; `;

+ 2
- 2
src/components/Cards/OfferCard/OfferCard.js Visa fil



<CheckButton <CheckButton
variant={props.sponsored ? "contained" : "outlined"} variant={props.sponsored ? "contained" : "outlined"}
buttoncolor={selectedTheme.primaryPurple}
textcolor={props.sponsored ? "white" : selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor={props.sponsored ? "white" : selectedTheme.colors.primaryPurple}
style={{fontWeight: "600"}} style={{fontWeight: "600"}}
onClick = {() => routeToItem(props.offer._id)} onClick = {() => routeToItem(props.offer._id)}
> >

+ 22
- 23
src/components/Cards/OfferCard/OfferCard.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { IconButton } from "../../Buttons/IconButton/IconButton"; import { IconButton } from "../../Buttons/IconButton/IconButton";
import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";
box-sizing: border-box; box-sizing: border-box;
margin: 10px 0; margin: 10px 0;
background-color: ${(props) => background-color: ${(props) =>
props.sponsored === 'true' ? selectedTheme.backgroundSponsoredColor : "white"};
props.sponsored === 'true' ? selectedTheme.colors.backgroundSponsoredColor : "white"};
border-radius: 4px; border-radius: 4px;
${(props) => ${(props) =>
props.sponsored === 'true' && props.sponsored === 'true' &&
`border: 1px solid ${selectedTheme.borderSponsoredColor};`}
`border: 1px solid ${selectedTheme.colors.borderSponsoredColor};`}
padding: 16px; padding: 16px;
max-width: 2000px; max-width: 2000px;
height: 180px; height: 180px;
margin-left: 18px; margin-left: 18px;
`; `;
export const OfferTitle = styled(Typography)` export const OfferTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
flex: 1; flex: 1;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
`; `;
flex-direction: column; flex-direction: column;
`; `;
export const OfferAuthorName = styled(Typography)` export const OfferAuthorName = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
`; `;
export const OfferLocation = styled(Typography)` export const OfferLocation = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
gap: 1rem; gap: 1rem;
`; `;
export const OfferCategory = styled(Box)` export const OfferCategory = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
@media (max-width: 1000px) { @media (max-width: 1000px) {
} }
`; `;
export const OfferPackage = styled(Box)` export const OfferPackage = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
export const OfferViews = styled(Box)` export const OfferViews = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
@media (max-width: 1200px) { @media (max-width: 1200px) {
} }
`; `;
export const OfferDescriptionTitle = styled(Box)` export const OfferDescriptionTitle = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 16px; line-height: 16px;
`; `;
export const OfferDescriptionText = styled(Box)` export const OfferDescriptionText = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 22px; line-height: 22px;
max-width: calc(100% - 230px); max-width: calc(100% - 230px);
max-height: 120px; max-height: 120px;
} }
`; `;
export const DetailText = styled(Typography)` export const DetailText = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
position: relative; position: relative;
bottom: 9px; bottom: 9px;
right: 9px; right: 9px;
&:hover button { &:hover button {
background-color: ${selectedTheme.primaryPurple} !important;
background-color: ${selectedTheme.colors.primaryPurple} !important;
color: white !important; color: white !important;
} }
@media (max-width: 650px) { @media (max-width: 650px) {
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 10px; right: 10px;
background-color: ${selectedTheme.primaryIconBackgroundColor};
background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
border-radius: 100%; border-radius: 100%;
padding-top: 2px; padding-top: 2px;
text-align: center; text-align: center;

+ 1
- 1
src/components/CheckBox/CheckBox.js Visa fil

}; };


CheckBox.defaultProps = { CheckBox.defaultProps = {
color: selectedTheme.primaryPurple,
color: selectedTheme.colors.primaryPurple,
}; };

+ 2
- 2
src/components/CheckBox/CheckBox.styled.js Visa fil

import { Box, Checkbox, FormControlLabel } from "@mui/material"; import { Box, Checkbox, FormControlLabel } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";
import selectedTheme from "../../themes";


export const CheckBoxContainer = styled(Box)` export const CheckBoxContainer = styled(Box)`
${(props) => ${(props) =>
`} `}
margin-right: 0; margin-right: 0;
& label { & label {
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
} }
& span:nth-child(1) svg { & span:nth-child(1) svg {

+ 4
- 5
src/components/CheckBox/Label.styled.js Visa fil

import { Box, FormLabel } from "@mui/material"; import { Box, FormLabel } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const LabelContainer = styled(Box)` export const LabelContainer = styled(Box)`
display: flex; display: flex;
` `


export const LeftLabel = styled(FormLabel)` export const LeftLabel = styled(FormLabel)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
max-width: 200px; max-width: 200px;
flex: 1; flex: 1;
cursor: pointer; cursor: pointer;
color: ${selectedTheme.primaryText};
color: ${selectedTheme.colors.primaryText};
` `
export const RightLabel = styled(FormLabel)` export const RightLabel = styled(FormLabel)`
margin-left: 10px; margin-left: 10px;
white-space: nowrap; white-space: nowrap;
max-width: 100px; max-width: 100px;
cursor: pointer; cursor: pointer;
color: ${selectedTheme.primaryText};
font-family: ${TextFont};
color: ${selectedTheme.colors.primaryText};
font-family: ${selectedTheme.fonts.textFont};


` `

+ 2
- 2
src/components/Dropdown/DropdownItem/DropdownItem.styled.js Visa fil

import { Box } from "@mui/material"; import { Box } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import selectedTheme from "../../../themes";


export const DropdownItemContainer = styled(Box)` export const DropdownItemContainer = styled(Box)`
` `


export const DropdownItemStyled = styled(Box)` export const DropdownItemStyled = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
` `

+ 4
- 5
src/components/Dropdown/DropdownList/DropdownList.styled.js Visa fil

import { Box, Typography } from "@mui/material"; import { Box, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { IconButton } from "../../Buttons/IconButton/IconButton"; import { IconButton } from "../../Buttons/IconButton/IconButton";


export const DropdownListContainer = styled(Box)` export const DropdownListContainer = styled(Box)`
padding-bottom: 10px; padding-bottom: 10px;
padding-top: 5px; padding-top: 5px;
padding-right: 0.9rem; padding-right: 0.9rem;
font-family: ${TextFont};
color: ${props => props.textcolor ? props.textcolor : selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${props => props.textcolor ? props.textcolor : selectedTheme.colors.primaryText};
`; `;


export const ToggleIconOpened = styled(IconButton)` export const ToggleIconOpened = styled(IconButton)`
cursor: pointer; cursor: pointer;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
& span { & span {
${props => props.backgroundColor ? `background-color: ${props.backgroundColor}` : ``} ${props => props.backgroundColor ? `background-color: ${props.backgroundColor}` : ``}
} }


export const ToggleIconClosed = styled(IconButton)` export const ToggleIconClosed = styled(IconButton)`
cursor: pointer; cursor: pointer;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
& span { & span {
${props => props.backgroundColor ? `background-color: ${props.backgroundColor}` : ``} ${props => props.backgroundColor ? `background-color: ${props.backgroundColor}` : ``}
} }

+ 3
- 3
src/components/Icon/IconWithNumber/IconWithNumber.styled.js Visa fil

import { Box } from "@mui/material"; import { Box } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const IconWithNumberContainer = styled(Box)` export const IconWithNumberContainer = styled(Box)`
position: relative; position: relative;
` `
export const Number = styled(Box)` export const Number = styled(Box)`
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
border-radius: 100%; border-radius: 100%;
color: white; color: white;
position: absolute; position: absolute;
font-size: 10px; font-size: 10px;
bottom: 0; bottom: 0;
right: -5px; right: -5px;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
` `

+ 7
- 7
src/components/ImagePicker/ImagePicker.styled.js Visa fil

border-radius: 4px; border-radius: 4px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
background-color: ${selectedTheme.imagePickerBackground};
background-color: ${selectedTheme.colors.imagePickerBackground};
background-image: linear-gradient( background-image: linear-gradient(
to right, to right,
${selectedTheme.primaryPurple} 50%,
${selectedTheme.colors.primaryPurple} 50%,
rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0) 0%
), ),
linear-gradient( linear-gradient(
${selectedTheme.primaryPurple} 50%,
${selectedTheme.colors.primaryPurple} 50%,
rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0) 0%
), ),
linear-gradient( linear-gradient(
to right, to right,
${selectedTheme.primaryPurple} 50%,
${selectedTheme.colors.primaryPurple} 50%,
rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0) 0%
), ),
linear-gradient( linear-gradient(
${selectedTheme.primaryPurple} 50%,
${selectedTheme.colors.primaryPurple} 50%,
rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0) 0%
); );
background-position: bottom, right, top, left; background-position: bottom, right, top, left;
props.hasImage && props.hasImage &&
` `
background-image: none; background-image: none;
border: 1px solid ${selectedTheme.primaryPurple};
border: 1px solid ${selectedTheme.colors.primaryPurple};
`} `}
`; `;
export const AddIcon = styled(Plus)` export const AddIcon = styled(Plus)`
flex-direction: row; flex-direction: row;
display: flex; display: flex;
& div { & div {
background-color: ${selectedTheme.primaryIconBackgroundColor};
background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
border-radius: 100px; border-radius: 100px;
display: flex; display: flex;
flex: 1; flex: 1;

+ 2
- 3
src/components/ItemDetails/Header/Header.styled.js Visa fil

import { Box, Link, Typography} from "@mui/material"; import { Box, Link, Typography} from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const HeaderContainer = styled(Box)` export const HeaderContainer = styled(Box)`
margin-top: 20px; margin-top: 20px;
gap:12px; gap:12px;
` `
export const HeaderText = styled(Typography) ` export const HeaderText = styled(Typography) `
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
text-decoration: underline; text-decoration: underline;
` `

+ 2
- 2
src/components/ItemDetails/ItemDetailsHeaderCard/ItemDetailsHeaderCard.js Visa fil

<OfferDetails> <OfferDetails>
<OfferTitle>{author.title}</OfferTitle> <OfferTitle>{author.title}</OfferTitle>
<DetailContainer> <DetailContainer>
<DetailIcon color={selectedTheme.iconStrokeColor} component="span" size="22px">
<DetailIcon color={selectedTheme.colors.iconStrokeColor} component="span" size="22px">
<PIB width={"22px"} /> <PIB width={"22px"} />
</DetailIcon> </DetailIcon>
<DetailText>PIB - {author.pib}</DetailText> <DetailText>PIB - {author.pib}</DetailText>
</DetailContainer> </DetailContainer>
<DetailContainer> <DetailContainer>
<DetailIcon color={selectedTheme.iconStrokeColor} component="span" size="22px">
<DetailIcon color={selectedTheme.colors.iconStrokeColor} component="span" size="22px">
<Category width={"22px"} /> <Category width={"22px"} />
</DetailIcon> </DetailIcon>
<DetailText>{author.location}</DetailText> <DetailText>{author.location}</DetailText>

+ 29
- 30
src/components/ItemDetails/ItemDetailsHeaderCard/ItemDetailsHeaderCard.styled.js Visa fil

import { Box, Grid, Typography } from "@mui/material"; import { Box, Grid, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { IconButton } from "../../Buttons/IconButton/IconButton"; import { IconButton } from "../../Buttons/IconButton/IconButton";
import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";
box-sizing: border-box; box-sizing: border-box;
margin: 10px 0; margin: 10px 0;
background-color: ${(props) => background-color: ${(props) =>
props.sponsored === 'true' ? selectedTheme.backgroundSponsoredColor : "white"};
props.sponsored === 'true' ? selectedTheme.colors.backgroundSponsoredColor : "white"};
border-radius: 4px; border-radius: 4px;
border: 1px solid ${selectedTheme.borderNormal};
border: 1px solid ${selectedTheme.colors.borderNormal};
max-width: 2000px; max-width: 2000px;
position: relative; position: relative;
`; `;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap:7px; gap:7px;
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
gap:18px; gap:18px;
`; `;
export const HeaderDetails = styled(Box)` export const HeaderDetails = styled(Box)`
background-color: ${selectedTheme.primaryIconBackgroundColor};
background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
`; `;
export const BottomDetails = styled(Box)` export const BottomDetails = styled(Box)`
max-width:fit-content; max-width:fit-content;
`; `;
export const OfferTitle = styled(Typography)` export const OfferTitle = styled(Typography)`
margin-bottom:12px; margin-bottom:12px;
font-family: ${TextFont};
color: ${selectedTheme.primaryPurple};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryPurple};
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
`; `;
flex-direction: column; flex-direction: column;
`; `;
export const OfferAuthorName = styled(Typography)` export const OfferAuthorName = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
`; `;
export const OfferLocation = styled(Box)` export const OfferLocation = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
export const OfferPIB = styled(Box)` export const OfferPIB = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
`; `;
`; `;


export const StatusText = styled(Grid)` export const StatusText = styled(Grid)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
` `
export const OfferCategory = styled(Box)` export const OfferCategory = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 33%; width: 33%;
`; `;
export const OfferPackage = styled(Box)` export const OfferPackage = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 34%; width: 34%;
`; `;
export const OfferViews = styled(Box)` export const OfferViews = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 12px; font-size: 12px;
width: 34%; width: 34%;
`; `;
export const OfferDescriptionTitle = styled(Box)` export const OfferDescriptionTitle = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 16px; line-height: 16px;
`; `;
export const OfferDescriptionText = styled(Box)` export const OfferDescriptionText = styled(Box)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 16px; font-size: 16px;
color: ${selectedTheme.primaryDarkText};
color: ${selectedTheme.colors.primaryDarkText};
line-height: 22px; line-height: 22px;
max-width: calc(100% - 230px); max-width: calc(100% - 230px);
max-height: 120px; max-height: 120px;
} }
`; `;
export const DetailText = styled(Typography)` export const DetailText = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
line-height: 16px; line-height: 16px;
font-size: 16px; font-size: 16px;
position: relative; position: relative;
bottom: 9px; bottom: 9px;
right: 9px; right: 9px;
&:hover button { &:hover button {
background-color: ${selectedTheme.primaryPurple} !important;
background-color: ${selectedTheme.colors.primaryPurple} !important;
color: white !important; color: white !important;
} }
`; `;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 10px; right: 10px;
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
border-radius: 100%; border-radius: 100%;
padding-top: 2px; padding-top: 2px;
text-align: center; text-align: center;

+ 1
- 1
src/components/Link/Link.styled.js Visa fil



export const LinkStyled = styled(Link)` export const LinkStyled = styled(Link)`
cursor: pointer; cursor: pointer;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
font-family: ${(props) => props.font}; font-family: ${(props) => props.font};
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;

+ 4
- 4
src/components/MarketPlace/Header/Header.js Visa fil

<HeaderButton <HeaderButton
iconColor={ iconColor={
props.isGrid props.isGrid
? selectedTheme.iconStrokeColor
: selectedTheme.primaryPurple
? selectedTheme.colors.iconStrokeColor
: selectedTheme.colors.primaryPurple
} }
onClick={() => props.setIsGrid(false)} onClick={() => props.setIsGrid(false)}
> >
<HeaderButton <HeaderButton
iconColor={ iconColor={
props.isGrid props.isGrid
? selectedTheme.primaryPurple
: selectedTheme.iconStrokeColor
? selectedTheme.colors.primaryPurple
: selectedTheme.colors.iconStrokeColor
} }
onClick={() => props.setIsGrid(true)} onClick={() => props.setIsGrid(true)}
> >

+ 5
- 6
src/components/MarketPlace/Header/Header.styled.js Visa fil

import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { IconButton } from "../../Buttons/IconButton/IconButton"; import { IconButton } from "../../Buttons/IconButton/IconButton";
import Select from "../../Select/Select"; import Select from "../../Select/Select";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const HeaderContainer = styled(Box)` export const HeaderContainer = styled(Box)`
margin-top: 20px; margin-top: 20px;
align-items: center; align-items: center;
` `
export const HeaderLocation = styled(Box)` export const HeaderLocation = styled(Box)`
font-family: ${TextFont};
color: ${selectedTheme.primaryPurple};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryPurple};
font-weight: 700; font-weight: 700;
line-height: 22px; line-height: 22px;
font-size: 16px; font-size: 16px;
export const HeaderSelect = styled(Select)` export const HeaderSelect = styled(Select)`
width: 210px; width: 210px;
height: 35px; height: 35px;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 3px; margin-top: 3px;
font-weight: 400; font-weight: 400;
position: relative; position: relative;
} }
` `
export const SelectItem = styled(MenuItem)` export const SelectItem = styled(MenuItem)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
` `
export const IconStyled = styled(Box)` export const IconStyled = styled(Box)`
position: relative; position: relative;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-right: 40px; margin-right: 40px;
`
`

+ 2
- 2
src/components/Radio/Button/RadioButton.styled.js Visa fil

import { Box, FormControlLabel, Radio } from "@mui/material"; import { Box, FormControlLabel, Radio } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import selectedTheme from "../../../themes";


export const RadioButtonContainer = styled(Box)` export const RadioButtonContainer = styled(Box)`
${(props) => ${(props) =>
`} `}
margin-right: 0; margin-right: 0;
& label { & label {
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-size: 12px; font-size: 12px;
} }
& span:nth-child(1) svg { & span:nth-child(1) svg {

+ 5
- 5
src/components/Scroller/HorizontalScroller.styled.js Visa fil

overflow: hidden; overflow: hidden;
` `
export const Arrow = styled(IconButton)` export const Arrow = styled(IconButton)`
border: 1px solid ${selectedTheme.primaryPurple};
border: 1px solid ${selectedTheme.colors.primaryPurple};
border-radius: 100%; border-radius: 100%;
min-width: 40px; min-width: 40px;
width: 40px; width: 40px;
margin-bottom: auto; margin-bottom: auto;
transition: 0.2s all ease; transition: 0.2s all ease;
&:hover { &:hover {
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
& svg path { & svg path {
stroke: white; stroke: white;
} }
} }
${props => props.disabled && ` ${props => props.disabled && `
border 1px solid ${selectedTheme.iconStrokeDisabledColor};
border 1px solid ${selectedTheme.colors.iconStrokeDisabledColor};
& svg path { & svg path {
stroke: ${selectedTheme.iconStrokeDisabledColor};
stroke: ${selectedTheme.colors.iconStrokeDisabledColor};
transition: 0.2s all ease; transition: 0.2s all ease;
} }
height: 18px; height: 18px;
& path { & path {
${props => props.disabled && ` ${props => props.disabled && `
stroke: ${selectedTheme.iconStrokeDisabledColor}
stroke: ${selectedTheme.colors.iconStrokeDisabledColor}
`} `}
} }
` `

+ 3
- 3
src/components/Select/Option/Option.styled.js Visa fil

import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";


export const OptionStyled = styled(MenuItem)` export const OptionStyled = styled(MenuItem)`
background-color: ${props => props.selected ? selectedTheme.primaryPurple : "white"} !important;
color: ${props => props.selected ? "white" : selectedTheme.selectOptionTextColor};
background-color: ${props => props.selected ? selectedTheme.colors.primaryPurple : "white"} !important;
color: ${props => props.selected ? "white" : selectedTheme.colors.selectOptionTextColor};
margin:2px 9px; margin:2px 9px;
border-radius: 4px; border-radius: 4px;
&:hover { &:hover {
background-color: ${selectedTheme.primaryPurple} !important;
background-color: ${selectedTheme.colors.primaryPurple} !important;
color: white; color: white;
} }
` `

+ 2
- 2
src/components/Select/Select.styled.js Visa fil

import { Box, Select } from "@mui/material"; import { Box, Select } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";
import selectedTheme from "../../themes";


export const SelectStyled = styled(Select)` export const SelectStyled = styled(Select)`
width: ${props => props.width}; width: ${props => props.width};
padding: 2px; padding: 2px;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
` `
export const SelectIcon = styled(Box)` export const SelectIcon = styled(Box)`
position: relative; position: relative;

+ 4
- 5
src/components/StepProgress/StepProgress.styled.js Visa fil

import { Box } from "@mui/material"; import { Box } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const StepProgressContainer = styled(Box)` export const StepProgressContainer = styled(Box)`
display: flex; display: flex;
export const StepBar = styled(Box)` export const StepBar = styled(Box)`
flex: 0 0 35px; flex: 0 0 35px;
background-color: ${(props) => background-color: ${(props) =>
props.done ? selectedTheme.primaryPurple : selectedTheme.primaryDarkGrayText};
props.done ? selectedTheme.colors.primaryPurple : selectedTheme.colors.primaryDarkGrayText};
border-radius: 100%; border-radius: 100%;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
text-align: center; text-align: center;
border: 5px solid border: 5px solid
${(props) => (props.current || props.done ? selectedTheme.primaryPurple : "white")};
${(props) => (props.current || props.done ? selectedTheme.colors.primaryPurple : "white")};
padding-top: 2px; padding-top: 2px;
line-height: 19px; line-height: 19px;
margin-left: -2px; margin-left: -2px;
export const Progress = styled(Box)` export const Progress = styled(Box)`
height: 9px; height: 9px;
width: ${(props) => (props.done ? "100%" : "0")}; width: ${(props) => (props.done ? "100%" : "0")};
background-color: ${selectedTheme.primaryPurple};
background-color: ${selectedTheme.colors.primaryPurple};
transition: width 1s; transition: width 1s;
`; `;

+ 1
- 1
src/components/TextFields/TextField/TextField.styled.js Visa fil

`; `;


export const TextFieldStyled = styled(TextField)` export const TextFieldStyled = styled(TextField)`
background-color: ${selectedTheme.primaryBackgroundColor};
background-color: ${selectedTheme.colors.primaryBackgroundColor};
width: ${(props) => props.width}; width: ${(props) => props.width};
font-style: ${(props) => font-style: ${(props) =>
props.italicplaceholder === "true" ? "italic" : "normal"}; props.italicplaceholder === "true" ? "italic" : "normal"};

+ 1
- 1
src/components/UserReviewsCard/UserReviewsCard.js Visa fil

<ListItemAvatar sx={{ mt: 0 }}> <ListItemAvatar sx={{ mt: 0 }}>
<Avatar alt={review.name} src="/static/images/avatar/1.jpg" /> <Avatar alt={review.name} src="/static/images/avatar/1.jpg" />
</ListItemAvatar> </ListItemAvatar>
<Typography sx={{ color: selectedTheme.primaryPurple }}>
<Typography sx={{ color: selectedTheme.colors.primaryPurple }}>
<b>{review.name}</b> <b>{review.name}</b>
</Typography> </Typography>
</ListItem> </ListItem>

+ 6
- 7
src/pages/CreateOffer/CreateOffer.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const CreateOfferContainer = styled(Container)` export const CreateOfferContainer = styled(Container)`
margin-top: 0px; margin-top: 0px;
align-items: center; align-items: center;
`; `;
export const CreateOfferTitle = styled(Typography)` export const CreateOfferTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
margin-bottom: 40px; margin-bottom: 40px;
`; `;
export const CreateOfferDescription = styled(Typography)` export const CreateOfferDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;
export const CreateOfferFormContainer = styled(Box)` export const CreateOfferFormContainer = styled(Box)`
height: 216px; height: 216px;
`; `;
export const RegisterAltText = styled(Typography)` export const RegisterAltText = styled(Typography)`
font-family: "Poppins";
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
font-size: 14px; font-size: 14px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;

+ 7
- 8
src/pages/ForgotPasswordPage/ForgotPassword.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const ForgotPasswordPageContainer = styled(Container)` export const ForgotPasswordPageContainer = styled(Container)`
margin-top: 200px; margin-top: 200px;
} }
`; `;
export const ForgotPasswordTitle = styled(Typography)` export const ForgotPasswordTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
`; `;
export const ForgotPasswordDescription = styled(Typography)` export const ForgotPasswordDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;
export const FormContainer = styled(Box)` export const FormContainer = styled(Box)`
`; `;
export const ErrorMessage = styled(Typography)` export const ErrorMessage = styled(Typography)`
color: red; color: red;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
position: relative; position: relative;
top: -7px; top: -7px;
font-size: 14px; font-size: 14px;
` `
export const LoginAltText = styled(Typography)` export const LoginAltText = styled(Typography)`
font-family: "Poppins";
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
font-size: 14px; font-size: 14px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;

+ 1
- 1
src/pages/ForgotPasswordPage/ForgotPasswordMailSent/MailSent.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
onClick={navigateLogin} onClick={navigateLogin}
> >

+ 7
- 8
src/pages/ForgotPasswordPage/ForgotPasswordMailSent/MailSent.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const MailSentContainer = styled(Container)` export const MailSentContainer = styled(Container)`
margin-top: 300px; margin-top: 300px;
} }
`; `;
export const Title = styled(Typography)` export const Title = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 6px; margin-top: 6px;
`; `;
export const Description = styled(Typography)` export const Description = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 279px; width: 279px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 36px; margin-bottom: 36px;
`; `;
export const FormContainer = styled(Box)` export const FormContainer = styled(Box)`
height: 216px; height: 216px;
`; `;
export const StandardText = styled(Typography)` export const StandardText = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
font-size: 16px; font-size: 16px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;

+ 1
- 1
src/pages/ForgotPasswordPage/ForgotPasswordPage.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={formik.values.email?.length === 0} disabled={formik.values.email?.length === 0}
> >

+ 1
- 1
src/pages/HomePage/HomePage.styled.js Visa fil

flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: ${selectedTheme.offerBackgroundColor};
background-color: ${selectedTheme.colors.offerBackgroundColor};
`; `;
export const GridStyled = styled(Grid)` export const GridStyled = styled(Grid)`

+ 1
- 1
src/pages/ItemDetailsPage/ItemDetailsPage.styled.js Visa fil

flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: ${selectedTheme.offerBackgroundColor};
background-color: ${selectedTheme.colors.offerBackgroundColor};
`; `;
export const GridStyled = styled(Grid)` export const GridStyled = styled(Grid)`

+ 7
- 8
src/pages/LoginPage/Login.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const LoginPageContainer = styled(Container)` export const LoginPageContainer = styled(Container)`
margin-top: 150px; margin-top: 150px;
} }
`; `;
export const LoginTitle = styled(Typography)` export const LoginTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
`; `;
export const LoginDescription = styled(Typography)` export const LoginDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;
export const LoginFormContainer = styled(Box)` export const LoginFormContainer = styled(Box)`
height: 216px; height: 216px;
`; `;
export const RegisterAltText = styled(Typography)` export const RegisterAltText = styled(Typography)`
font-family: "Poppins";
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
font-size: 14px; font-size: 14px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;
`; `;
export const ErrorMessage = styled(Typography)` export const ErrorMessage = styled(Typography)`
color: red; color: red;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
position: relative; position: relative;
top: -12px; top: -12px;
height: 20px; height: 20px;

+ 1
- 1
src/pages/LoginPage/LoginPage.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={ disabled={
formik.values.email.length === 0 || formik.values.email.length === 0 ||

+ 1
- 1
src/pages/RegisterPages/Register/FirstPart/FirstPartOfRegistration.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={ disabled={
formik.values.mail.length === 0 || formik.values.mail.length === 0 ||

+ 3
- 4
src/pages/RegisterPages/Register/FirstPart/FirstPartOfRegistration.styled.js Visa fil

import { Typography } from "@mui/material"; import { Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../../themes"; import selectedTheme from "../../../../themes";
import { TextFont } from "../../../../themes/primaryTheme/primaryThemeFonts";


export const FormContainer = styled.form` export const FormContainer = styled.form`
width: 335px; width: 335px;
`; `;
export const RegisterDescription = styled(Typography)` export const RegisterDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
display: flex; display: flex;
align-items: center; align-items: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
text-align: left; text-align: left;
`; `;
export const ErrorMessage = styled(Typography)` export const ErrorMessage = styled(Typography)`
color: red; color: red;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
position: relative; position: relative;
top: -7px; top: -7px;
font-size: 14px; font-size: 14px;

+ 7
- 8
src/pages/RegisterPages/Register/Register.styled.js Visa fil

import styled from "styled-components"; import styled from "styled-components";
import ImagePicker from "../../../components/ImagePicker/ImagePicker"; import ImagePicker from "../../../components/ImagePicker/ImagePicker";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";
import { ReactComponent as ProfilePictureSVG } from "../../../assets/images/profile-picture.svg"; import { ReactComponent as ProfilePictureSVG } from "../../../assets/images/profile-picture.svg";


export const RegisterPageContainer = styled(Container)` export const RegisterPageContainer = styled(Container)`
} }
`; `;
export const RegisterTitle = styled(Typography)` export const RegisterTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 34px; margin-top: 34px;
@media (max-height: 800px) { @media (max-height: 800px) {
margin-top: 26px; margin-top: 26px;
} }
`; `;
export const RegisterDescription = styled(Typography)` export const RegisterDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 221px; width: 221px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
@media (max-height: 800px) { @media (max-height: 800px) {
margin-bottom: 14px; margin-bottom: 14px;
`; `;
export const LoginAltText = styled(Typography)` export const LoginAltText = styled(Typography)`
font-family: "Poppins"; font-family: "Poppins";
color: ${selectedTheme.primaryText};
color: ${selectedTheme.colors.primaryText};
font-size: 14px; font-size: 14px;
padding-right: 6px; padding-right: 6px;
line-height: 14px; line-height: 14px;
} }
`; `;
export const FooterText = styled(Typography)` export const FooterText = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
color: #505050; color: #505050;
text-align: center; text-align: center;
width: 330px; width: 330px;
export const ProfileImagePicker = styled(ImagePicker)` export const ProfileImagePicker = styled(ImagePicker)`
background: none; background: none;
margin: 36px; margin: 36px;
background: ${selectedTheme.primaryIconBackgroundColor};
background: ${selectedTheme.colors.primaryIconBackgroundColor};
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%235A3984FF' stroke-width='2' stroke-dasharray='7%2c 12' stroke-dashoffset='44' stroke-linecap='square'/%3e%3c/svg%3e"); background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%235A3984FF' stroke-width='2' stroke-dasharray='7%2c 12' stroke-dashoffset='44' stroke-linecap='square'/%3e%3c/svg%3e");
border-radius: 100px; border-radius: 100px;
overflow: hidden; overflow: hidden;

+ 1
- 1
src/pages/RegisterPages/Register/SecondPart/SecondPartOfRegistration.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={ disabled={
formik.values.PIB.length === 0 || formik.values.PIB.length === 0 ||

+ 3
- 4
src/pages/RegisterPages/Register/SecondPart/SecondPartOfRegistration.styled.js Visa fil

import { Typography } from "@mui/material"; import { Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../../themes"; import selectedTheme from "../../../../themes";
import { TextFont } from "../../../../themes/primaryTheme/primaryThemeFonts";




export const FormContainer = styled.form` export const FormContainer = styled.form`
width: 335px; width: 335px;
`; `;
export const RegisterDescription = styled(Typography)` export const RegisterDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
display: flex; display: flex;
align-items: center; align-items: center;
color: ${selectedTheme.primaryText};
color: ${selectedTheme.colors.primaryText};
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
text-align: left; text-align: left;
`; `;
export const ErrorMessage = styled(Typography)` export const ErrorMessage = styled(Typography)`
color: red; color: red;
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
position: relative; position: relative;
top: -7px; top: -7px;
font-size: 14px; font-size: 14px;

+ 1
- 1
src/pages/RegisterPages/Register/ThirdPart/ThirdPartOfRegistration.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={ disabled={
formik.values.location.length === 0 && formik.values.location.length === 0 &&

+ 2
- 3
src/pages/RegisterPages/Register/ThirdPart/ThirdPartOfRegistration.styled.js Visa fil

import { Typography } from "@mui/material"; import { Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../../themes"; import selectedTheme from "../../../../themes";
import { TextFont } from "../../../../themes/primaryTheme/primaryThemeFonts";


export const FormContainer = styled.form` export const FormContainer = styled.form`
width: 335px; width: 335px;
`; `;
export const RegisterDescription = styled(Typography)` export const RegisterDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
display: flex; display: flex;
align-items: center; align-items: center;
color: ${selectedTheme.primaryText};
color: ${selectedTheme.colors.primaryText};
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
text-align: left; text-align: left;

+ 4
- 5
src/pages/RegisterPages/RegisterSuccessful.js/RegisterSuccessful.styled.js Visa fil

import { Container, Typography } from "@mui/material"; import { Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../../themes"; import selectedTheme from "../../../themes";
import { TextFont } from "../../../themes/primaryTheme/primaryThemeFonts";


export const RegisterSuccessfulContainer = styled(Container)` export const RegisterSuccessfulContainer = styled(Container)`
margin-top: 300px; margin-top: 300px;
padding: 0; padding: 0;
`; `;
export const RegisterTitle = styled(Typography)` export const RegisterTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 430px; width: 430px;
text-align: center; text-align: center;
flex: 1; flex: 1;
font-weight: 400; font-weight: 400;
font-size: 39px; font-size: 39px;
line-height: 48px; line-height: 48px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 32px; margin-top: 32px;
`; `;
export const RegisterDescription = styled(Typography)` export const RegisterDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 36px; margin-top: 36px;
width: 430px; width: 430px;
font-style: normal; font-style: normal;
display: block; display: block;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;

+ 1
- 1
src/pages/ResetPasswordPage/ResetPasswordPage.js Visa fil

variant="contained" variant="contained"
height="48px" height="48px"
fullWidth fullWidth
buttoncolor={selectedTheme.primaryPurple}
buttoncolor={selectedTheme.colors.primaryPurple}
textcolor="white" textcolor="white"
disabled={ disabled={
formik.values.password.length < 8 || formik.values.password.length < 8 ||

+ 6
- 7
src/pages/ResetPasswordPage/ResetPasswordPage.styled.js Visa fil

import { Box, Container, Typography } from "@mui/material"; import { Box, Container, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import selectedTheme from "../../themes"; import selectedTheme from "../../themes";
import { TextFont } from "../../themes/primaryTheme/primaryThemeFonts";


export const ResetPasswordPageContainer = styled(Container)` export const ResetPasswordPageContainer = styled(Container)`
margin-top: 200px; margin-top: 200px;
} }
`; `;
export const ResetPasswordTitle = styled(Typography)` export const ResetPasswordTitle = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
width: 328px; width: 328px;
height: 33px; height: 33px;
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
color: ${selectedTheme.primaryPurple};
color: ${selectedTheme.colors.primaryPurple};
margin-top: 36px; margin-top: 36px;
`; `;
export const ResetPasswordDescription = styled(Typography)` export const ResetPasswordDescription = styled(Typography)`
font-family: ${TextFont};
font-family: ${selectedTheme.fonts.textFont};
margin-top: 9px; margin-top: 9px;
width: 270px; width: 270px;
font-style: normal; font-style: normal;
display: flex; display: flex;
align-items: center; align-items: center;
text-align: center; text-align: center;
color: ${selectedTheme.primaryGrayText};
color: ${selectedTheme.colors.primaryGrayText};
margin-bottom: 20px; margin-bottom: 20px;
`; `;
export const FormContainer = styled(Box)` export const FormContainer = styled(Box)`
justify-content: center; justify-content: center;
`; `;
export const FooterText = styled(Typography)` export const FooterText = styled(Typography)`
font-family: ${TextFont};
color: ${selectedTheme.primaryText};
font-family: ${selectedTheme.fonts.textFont};
color: ${selectedTheme.colors.primaryText};
padding-right: 6px; padding-right: 6px;
text-align: center; text-align: center;
width: 340px; width: 340px;

+ 3
- 2
src/themes/index.js Visa fil

import { primaryThemeColors } from "./primaryTheme/primaryThemeColors";
import primary from "./primaryTheme/primaryTheme";



let selectedThemeNumber = 0; let selectedThemeNumber = 0;


const getTheme = () => { const getTheme = () => {
if (selectedThemeNumber === 0) { if (selectedThemeNumber === 0) {
return {...primaryThemeColors}
return {...primary}
} }
} }



+ 2
- 2
src/themes/primaryTheme/base.js Visa fil

import { createGlobalStyle } from "styled-components"; import { createGlobalStyle } from "styled-components";
import { pxToRemMd } from "./helper"; import { pxToRemMd } from "./helper";
import { TextFont } from "./primaryThemeFonts";
import selectedTheme from "..";
import { variables } from './variables'; import { variables } from './variables';




blockquote, blockquote,
th, th,
td { td {
${TextFont}
${selectedTheme.fonts.textFont}
} }


p { p {

+ 28
- 0
src/themes/primaryTheme/primaryTheme.js Visa fil

const primary = {
colors : {
primaryPurple: "#5A3984",
primaryYellow: "#f7b126",
primaryPurpleDisabled: "#4D4D4D",
primaryBackgroundColor: "#F1F1F1",
primaryTextDisabled: "#F1F1F1",
primaryText: "#4D4D4D",
primaryGrayText: "#818181",
primaryDarkGrayText: "#DCDCDC",
primaryIconBackgroundColor: "#E4E4E4",
borderNormal: "#D4D4D4",
borderSponsoredColor: "#E5D0FF",
backgroundSponsoredColor: "#F5EDFF",
offerBackgroundColor: "#F5F5F5",
selectOptionTextColor: "#1D1D1D",
primaryDarkText: "#505050",
iconStrokeColor: "#8C8C8C",
iconStrokeDisabledColor: "#818181"
},
fonts : {
textFont: "Open Sans",
titleFont: "Josefin Sans"
}
}

export default primary;

+ 0
- 19
src/themes/primaryTheme/primaryThemeColors.js Visa fil

export const primaryThemeColors = {
primaryPurple: "#5A3984",
primaryYellow: "#f7b126",
primaryPurpleDisabled: "#4D4D4D",
primaryBackgroundColor: "#F1F1F1",
primaryTextDisabled: "#F1F1F1",
primaryText: "#4D4D4D",
primaryGrayText: "#818181",
primaryDarkGrayText: "#DCDCDC",
primaryIconBackgroundColor: "#E4E4E4",
borderNormal: "#D4D4D4",
borderSponsoredColor: "#E5D0FF",
backgroundSponsoredColor: "#F5EDFF",
offerBackgroundColor: "#F5F5F5",
selectOptionTextColor: "#1D1D1D",
primaryDarkText: "#505050",
iconStrokeColor: "#8C8C8C",
iconStrokeDisabledColor: "#818181"
}

+ 4
- 9
src/themes/primaryTheme/primaryThemeFonts.js Visa fil

import { css } from "styled-components";

export const TextFont = css`
font-family: "Open Sans";
`;

export const AppTitle = css`
font-famili: "Josefin Sans";
`;
export const primaryThemeFonts = {
textFont: "OpenSans",
titleFont: "Josefin Sans"
}

+ 3
- 0
src/themes/primaryTheme/variables.js Visa fil

export const variables = { export const variables = {
font:{
textFont: "Open Sans"
},
typography: { typography: {
p: { p: {
large: { large: {

Laddar…
Avbryt
Spara