| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- import styled 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 Pocket } from "../../assets/images/svg/pocket.svg";
- import { ReactComponent as Globe } from "../../assets/images/svg/globe.svg";
- import { ReactComponent as Mail } from "../../assets/images/svg/mail.svg";
- import { ReactComponent as Location } from "../../assets/images/svg/location.svg";
- // import { PRIMARY_PURPLE_COLOR, PRIMARY_YELLOW_COLOR } from '../../constants/stylesConstants';
-
- export const ProfileCardContainer = styled(Box)`
- width: 100%;
- box-sizing: border-box;
- padding: 0 50px;
- margin-top: 34px;
- @media (max-width: 600px) {
- padding: 0;
- }
- `;
- export const EditIcon = styled(Edit)`
- width: 18px;
- height: 18px;
- & path {
- stroke: ${selectedTheme.primaryPurple};
- }
- `;
- export const EditButton = styled(Box)`
- position: absolute;
- right: 1rem;
- top: 1rem;
- color: ${selectedTheme.primaryPurple};
- font-weight: 900;
- background: #f4f4f4;
- border-radius: 360px;
- padding: 0.45rem 0.45rem 0.27rem 0.57rem;
- cursor: pointer;
- `;
-
- export const MessageButton = styled(EditButton)`
- background: ${selectedTheme.primaryPurple};
- `;
-
- export const ProfileCardWrapper = styled(Card)`
- border: 1px solid ${selectedTheme.primaryPurple};
- background: ${(props) =>
- props.isMyProfile ? selectedTheme.primaryPurple : "white"};
- width: 100%;
- min-width: fit-content;
- padding: 1rem;
- position: relative;
- `;
-
- export const ProfileName = styled(Typography)`
- color: ${(props) =>
- props.isMyProfile
- ? selectedTheme.primaryYellow
- : selectedTheme.primaryPurple};
- font-weight: 700;
- font-size: 24px;
- font-family: "Open Sans";
- margin-bottom: 5px;
- @media (max-width: 600px) {
- font-size: 18px;
- }
- `;
-
- export const ProfilePIB = styled(Typography)`
- color: ${(props) =>
- props.isMyProfile ? "white" : selectedTheme.primaryDarkText};
- margin-top: 0.18rem;
- font-family: "Open Sans";
- font-size: 16px;
- padding-top: 1px;
- @media (max-width: 600px) {
- font-size: 14px;
- }
- `;
- export const ProfilePIBContainer = styled(Grid)`
- position: relative;
- left: 5px;
- `;
-
- export const ProfileMainInfo = styled(Grid)``;
-
- 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.primaryDarkText};
- display: unset;
- font-family: "Open Sans";
- 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: "Open Sans";
- font-size: 16px;
- margin-bottom: 2px;
- @media (max-width: 600px) {
- font-size: 12px;
- }
- `;
-
- export const ProfileStats = styled(Grid)`
- background: ${selectedTheme.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 HeaderTitle = styled(Typography)`
- font-size: 16px;
- font-family: "Open Sans";
- color: ${selectedTheme.primaryDarkTextThird};
- position: relative;
- @media (max-width: 600px) {
- font-size: 12px;
- }
- `;
- export const PocketIcon = styled(Pocket)`
- width: 22px;
- height: 22px;
- position: relative;
- left: -5px;
- top: 2px;
- & path {
- stroke: #b4b4b4;
- }
- @media (max-width: 600px) {
- width: 14px;
- height: 14px;
- }
- `;
- export const MailIcon = styled(Mail)`
- height: 24px;
- width: 24px;
- & path {
- stroke: ${(props) =>
- props.isMyProfile
- ? selectedTheme.iconMineProfileColor
- : selectedTheme.iconProfileColor};
- }
- @media (max-width: 600px) {
- width: 14px;
- height: 14px;
- }
- `;
- export const GlobeIcon = styled(Globe)`
- height: 22px;
- width: 22px;
- & path {
- stroke: ${(props) =>
- props.isMyProfile
- ? selectedTheme.iconMineProfileColor
- : selectedTheme.iconProfileColor};
- }
- @media (max-width: 600px) {
- width: 14px;
- height: 14px;
- }
- `;
- export const LocationIcon = styled(Location)`
- height: 22px;
- width: 22px;
- & path {
- stroke: ${(props) =>
- props.isMyProfile
- ? selectedTheme.iconMineProfileColor
- : selectedTheme.iconProfileColor};
- }
- @media (max-width: 600px) {
- width: 14px;
- height: 14px;
- }
- `;
- export const MessageIcon = styled(Mail)`
- width: 19.5px;
- height: 19.5px;
- position: relative;
- right: 0.7px;
- & path {
- stroke: ${selectedTheme.primaryYellow};
- }
- @media (max-width: 600px) {
- width: 14px;
- height: 14px;
- right: 0.5px;
- }
- `;
|