You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DirectChatContentHeader.styled.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import { Box, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../../themes";
  4. import { ReactComponent as Location } from "../../../../assets/images/svg/location.svg";
  5. import { ReactComponent as Phone } from "../../../../assets/images/svg/phone.svg";
  6. import { IconButton } from "../../../Buttons/IconButton/IconButton";
  7. export const DirectChatContentHeaderContainer = styled(Box)`
  8. height: 90px;
  9. background-color: ${selectedTheme.colors.chatHeaderColor};
  10. width: 100%;
  11. display: flex;
  12. flex-direction: row;
  13. padding: 17px;
  14. padding-left: 35px;
  15. justify-content: space-between;
  16. `;
  17. export const DirectChatContentHeaderFlexContainer = styled(Box)`
  18. display: flex;
  19. flex-direction: row;
  20. `;
  21. export const ProfileImage = styled.img`
  22. width: 54px;
  23. height: 54px;
  24. border-radius: 100%;
  25. overflow: hidden;
  26. cursor: pointer;
  27. `;
  28. export const ProfileDetails = styled(Box)`
  29. display: flex;
  30. flex-direction: column;
  31. margin-left: 18px;
  32. `;
  33. export const ProfileName = styled(Box)`
  34. font-weight: 600;
  35. font-family: ${selectedTheme.fonts.textFont};
  36. font-size: 16px;
  37. color: ${selectedTheme.colors.primaryPurple};
  38. cursor: pointer;
  39. `;
  40. export const ProfileLocation = styled(Box)`
  41. display: flex;
  42. flex-direction: row;
  43. `;
  44. export const ProfileLocationText = styled(Box)`
  45. color: ${selectedTheme.colors.primaryDarkText};
  46. font-size: 12px;
  47. font-family: ${selectedTheme.fonts.textFont};
  48. margin-left: 5.5px;
  49. `;
  50. export const ProfileLocationIcon = styled(Location)`
  51. width: 12px;
  52. height: 12px;
  53. position: relative;
  54. top: 2px;
  55. `;
  56. export const PhoneIcon = styled(Phone)`
  57. position: relative;
  58. top: 2.5px;
  59. left: 1.5px;
  60. @media (max-width: 600px) {
  61. width: 14px;
  62. height: 14px;
  63. top: -2px;
  64. left: -2px;
  65. }
  66. `;
  67. export const PhoneIconContainer = styled(IconButton)`
  68. background-color: ${(props) =>
  69. props.disabled ? selectedTheme.colors.primaryIconBackgroundColor : "white"};
  70. width: 40px;
  71. height: 40px;
  72. border-radius: 100%;
  73. transition: 0.2s all;
  74. ${(props) =>
  75. props.disabled &&
  76. `
  77. & svg path {
  78. stroke: ${selectedTheme.colors.iconStrokeDisabledColor};
  79. }
  80. `}
  81. &:hover button:hover {
  82. background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
  83. }
  84. &:hover {
  85. background-color: ${selectedTheme.colors.primaryIconBackgroundColor};
  86. cursor: pointer;
  87. }
  88. @media (max-width: 600px) {
  89. width: 32px;
  90. height: 32px;
  91. }
  92. `;
  93. export const DirectChatHeaderStatusContainer = styled(Box)`
  94. background-color: ${selectedTheme.colors.primaryPurple};
  95. /* height: 39px; */
  96. width: 100%;
  97. padding: 9px 36px;
  98. `;
  99. export const DirectChatHeaderStatusText = styled(Typography)`
  100. font-family: ${selectedTheme.fonts.textFont};
  101. font-style: italic;
  102. font-size: 16px;
  103. line-height: 21px;
  104. color: white;
  105. `;