| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366 |
- import styled, { css } from "styled-components";
- import { Card, Typography, Grid, Box } from "@mui/material";
- import selectedTheme from "../../../themes";
- import { ReactComponent as Edit } from "../../../assets/images/svg/edit.svg";
- import { ReactComponent as Block } from "../../../assets/images/svg/block.svg";
- import { ReactComponent as Unblock } from "../../../assets/images/svg/unblock.svg";
- import { ReactComponent as Remove } from "../../../assets/images/svg/trash.svg";
- import { ReactComponent as Mail } from "../../../assets/images/svg/mail.svg";
-
- export const ProfileCardContainer = styled(Box)`
- width: 100%;
- box-sizing: border-box;
- padding: 0 50px;
- margin-top: 34px;
- overflow: hidden;
-
- @media (max-width: 1200px) {
- padding: 0 36px 0 0;
- }
- @media (max-width: 600px) {
- padding: 0 ${(props) => (props.isAdmin ? "18px" : "0")};
- }
- `;
- export const EditIcon = styled(Edit)`
- position: relative;
- top: 3px;
- left: 2px;
- width: 18px;
- height: 18px;
- @media (max-width: 600px) {
- top: 0;
- left: -2px;
- }
- & path {
- stroke: ${selectedTheme.colors.primaryPurple};
- }
- `;
- export const EditButton = styled(Box)`
- width: 40px;
- height: 40px;
- font-weight: 900;
- background: ${(props) =>
- props.disabled ? "white" : selectedTheme.colors.primaryIconBackgroundColor};
- border-radius: 360px;
- padding: 0.45rem 0.45rem 0.27rem 0.57rem;
- cursor: ${(props) => !props.disabled && `pointer`};
- ${(props) =>
- props.disabled &&
- css`
- & path {
- stroke: ${selectedTheme.colors.iconStrokePurpleDisabledColor};
- }
- `}
- @media (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
- export const RemoveIcon = styled(Remove)`
- position: relative;
- top: 3px;
- left: 2px;
- width: 18px;
- height: 18px;
- @media (max-width: 600px) {
- top: 0;
- left: -2px;
- }
- & path {
- stroke: ${selectedTheme.colors.primaryPurple};
- }
- `;
- export const RemoveButton = styled(Box)`
- width: 40px;
- height: 40px;
- font-weight: 900;
- background: ${selectedTheme.colors.primaryIconBackgroundColor};
- border-radius: 360px;
- padding: 0.45rem 0.45rem 0.27rem 0.57rem;
- cursor: pointer;
- @media (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
-
- export const BlockLabelIcon = styled(Block)`
- width: 18px;
- height: 18px;
- position: relative;
- top: 10px;
- left: 11px;
- & path {
- stroke: ${selectedTheme.colors.iconYellowColor};
- }
- `;
-
- export const BlockButton = styled(Box)`
- width: 40px;
- height: 40px;
- font-weight: 900;
- background: ${selectedTheme.colors.primaryIconBackgroundColor};
- border-radius: 360px;
- padding: 0.45rem 0.45rem 0.27rem 0.57rem;
- cursor: pointer;
- @media (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
- export const BlockIcon = styled(Block)`
- position: relative;
- top: 3px;
- left: 2px;
- width: 18px;
- height: 18px;
- @media (max-width: 600px) {
- top: 0;
- left: -2px;
- }
- & path {
- stroke: ${selectedTheme.colors.primaryPurple};
- }
- `;
- export const UnblockButton = styled(Box)`
- width: 40px;
- height: 40px;
- font-weight: 900;
- background: ${selectedTheme.colors.primaryIconBackgroundColor};
- border-radius: 360px;
- padding: 0.45rem 0.45rem 0.27rem 0.57rem;
- cursor: pointer;
- @media (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
- export const UnblockIcon = styled(Unblock)`
- position: relative;
- top: 3px;
- left: 2px;
- width: 18px;
- height: 18px;
- @media (max-width: 600px) {
- top: 0;
- left: -2px;
- }
- `;
- export const MessageButton = styled(EditButton)`
- background: ${selectedTheme.colors.primaryPurple};
- width: 40px;
- height: 40px;
- @media (max-width: 600px) {
- width: 32px;
- height: 32px;
- }
- `;
- export const ButtonsContainer = styled(Box)`
- position: absolute;
- top: 18px;
- right: 18px;
- gap: 16px;
- display: flex;
- justify-content: flex-end;
- flex-direction: row;
- @media (max-width: 600px) {
- gap: 12px;
- }
- `;
-
- export const ProfileCardWrapper = styled(Card)`
- border: 1px solid ${selectedTheme.colors.borderNormal};
- background: ${(props) =>
- props.blocked
- ? selectedTheme.colors.blockedColor
- : props.isMyProfile
- ? selectedTheme.colors.primaryPurple
- : "white"};
- width: 100%;
- min-width: fit-content;
- padding: 1rem;
- position: relative;
- border-radius: 0 0 4px 4px;
- `;
-
- // export const ProfileName = styled(Typography)`
- // color: ${(props) =>
- // props.isMyProfile
- // ? selectedTheme.colors.primaryYellow
- // : selectedTheme.colors.primaryPurple};
- // font-weight: 700;
- // font-size: 24px;
- // font-family: ${selectedTheme.fonts.textFont};
- // margin-bottom: 5px;
- // @media (max-width: 600px) {
- // font-size: 18px;
- // }
- // `;
-
- // export const ProfilePIB = styled(Typography)`
- // color: ${(props) =>
- // props.isMyProfile ? "white" : selectedTheme.colors.primaryDarkText};
- // margin-top: 0.18rem;
- // font-family: ${selectedTheme.fonts.textFont};
- // font-size: 16px;
- // padding-top: 1px;
- // @media (max-width: 600px) {
- // font-size: 14px;
- // }
- // `;
- // export const ProfilePIBContainer = styled(Grid)`
- // display: flex;
- // justify-content: center;
- // align-items: center;
- // position: relative;
- // left: 5px;
- // `;
-
- // export const ProfileMainInfo = styled(Grid)`
- // display: flex;
- // justify-content: start;
- // align-items: start;
- // `;
-
- // export const AvatarImageContainer = styled(Grid)`
- // display: flex;
- // justify-content: start;
- // align-items: center;
- // `;
-
- // export const ProfileMainInfoGrid = styled(Grid)`
- // display: flex;
- // flex-direction: column;
- // align-items: start;
- // margin-left: 16px;
- // `;
-
- // export const ProfileContact = styled(Grid)`
- // padding-top: 2rem;
- // padding-bottom: 2rem;
- // @media (max-width: 600px) {
- // padding-bottom: 1rem;
- // }
- // `;
-
- // export const ContactItem = styled(Typography)`
- // margin-right: 2rem;
- // margin-left: 0.4rem;
- // color: ${(props) =>
- // props.isMyProfile ? "white" : selectedTheme.colors.primaryDarkText};
- // display: unset;
- // font-family: ${selectedTheme.fonts.textFont};
- // letter-spacing: 0.02em;
- // font-size: 16px;
- // position: relative;
- // bottom: 1px;
- // @media (max-width: 600px) {
- // font-size: 14px;
- // bottom: 4px;
- // }
- // `;
-
- // export const StatsItem = styled(Typography)`
- // margin-right: 2rem;
- // display: unset;
- // margin-left: 1rem;
- // font-family: ${selectedTheme.fonts.textFont};
- // font-size: 16px;
- // margin-bottom: 2px;
- // @media (max-width: 600px) {
- // font-size: 12px;
- // }
- // `;
-
- // export const ProfileStats = styled(Grid)`
- // display: flex;
- // justify-content: start;
- // align-items: center;
- // background: ${selectedTheme.colors.primaryDarkTextSecond};
- // width: calc(100% + 2rem);
- // padding-top: 1.3rem;
- // padding-bottom: 1.3rem;
- // margin-bottom: -1rem;
- // margin-left: -1rem;
- // border-radius: 0 0 4px 4px;
- // `;
- // export const AvatarImage = styled.img`
- // min-height: 144px;
- // min-width: 144px;
- // width: 144px;
- // height: 144px;
- // border-radius: 100%;
- // @media (max-width: 600px) {
- // min-height: 90px;
- // min-width: 90px;
- // width: 90px;
- // height: 90px;
- // }
- // `;
-
- export const ProfileCardHeader = styled(Grid)`
- display: flex;
- justify-content: start;
- align-items: center;
- margin-bottom: 11px;
- `;
-
- export const HeaderTitle = styled(Typography)`
- font-size: 16px;
- font-family: ${selectedTheme.fonts.textFont};
- color: ${selectedTheme.colors.primaryText};
- position: relative;
- @media (max-width: 600px) {
- font-size: 12px;
- }
- `;
- export const MessageIcon = styled(Mail)`
- width: 19.5px;
- height: 19.5px;
- position: relative;
- left: 1px;
- top: 3px;
- & path {
- stroke: ${selectedTheme.colors.primaryYellow};
- }
- @media (max-width: 600px) {
- width: 16px;
- height: 16px;
- left: -1px;
- top: 1px;
- }
- `;
-
- export const ProfileInfoContainer = styled(Grid)`
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: start;
- @media (max-width: 600px) {
- }
- `;
- export const ProfileInfoAndContactContainer = styled(Box)`
- display: flex;
- flex-direction: column;
- margin-bottom: ${(props) => props.isAdmin && "36px"};
- @media (max-width: 600px) {
- padding-bottom: ${(props) => (props.isAdmin ? "0" : "18px")};
- margin-bottom: ${(props) => props.isAdmin && "0"};
- ${(props) => props.bigProfileCard && "gap: 18px;"}
- flex-direction: ${(props) => (props.bigProfileCard ? "row" : "column")};
- }
- `;
-
- // export const ProfileStatsGrid = styled(Grid)`
- // display: flex;
- // flex-direction: column;
- // justify-content: center;
- // align-items: start;
- // `;
- export const BlockedProfileContainer = styled(Box)`
- @media (max-width: 600px) {
- position: absolute;
- top: 16px;
- left: 16px;
- }
- `;
|