Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ChatCard.styled.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { Box, Container, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. export const ChatCardContainer = styled(Container)`
  5. display: flex;
  6. flex-direction: row;
  7. height: 180px;
  8. width: ${(props) => (!props.halfwidth ? "100%" : "49%")};
  9. box-sizing: border-box;
  10. margin: 10px 0;
  11. background-color: ${(props) =>
  12. props.sponsored === "true"
  13. ? selectedTheme.colors.backgroundSponsoredColor
  14. : "white"};
  15. border-radius: 4px;
  16. ${(props) =>
  17. props.sponsored === "true" &&
  18. `border: 1px solid ${selectedTheme.colors.borderSponsoredColor};`}
  19. padding: 16px;
  20. max-width: 2000px;
  21. height: 180px;
  22. position: relative;
  23. gap: 18px;
  24. @media (max-width: 550px) {
  25. max-height: 108px;
  26. margin: 0;
  27. ${(props) =>
  28. props.vertical &&
  29. `height: 330px;
  30. width: 180px;
  31. margin: 0 18px;`}
  32. }
  33. `;
  34. export const UserImage = styled.img`
  35. border-radius: 50%;
  36. width: 144px;
  37. height: 144px;
  38. @media (max-width: 600px) {
  39. width: 72px;
  40. height: 72px;
  41. }
  42. `;
  43. export const UserImgWrapper = styled(Box)`
  44. overflow: hidden;
  45. border-radius: 50%;
  46. width: 144px;
  47. height: 144px;
  48. @media (max-width: 600px) {
  49. width: 72px;
  50. height: 72px;
  51. min-width: 80px;
  52. }
  53. `;
  54. export const ChatInfo = styled(Box)`
  55. height: 100%;
  56. display: flex;
  57. flex-direction: column;
  58. justify-content: space-between;
  59. position: relative;
  60. top: ${props => props.isBlocked && `-12px`};
  61. `;
  62. export const UserName = styled(Typography)`
  63. margin-bottom: 12px;
  64. font-family: ${selectedTheme.fonts.textFont};
  65. color: ${selectedTheme.colors.primaryPurple};
  66. font-weight: 700;
  67. font-size: 24px;
  68. cursor: pointer;
  69. @media (max-width: 600px) {
  70. font-size: 18px;
  71. }
  72. `;