Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Drawer.styled.js 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import { Box, Typography } from "@mui/material";
  2. import styled from "styled-components";
  3. import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
  4. import IconButton from "../../IconButton/IconButton";
  5. import {ReactComponent as Close} from "../../../assets/images/svg/close-modal.svg"
  6. import selectedTheme from "../../../themes";
  7. import {ReactComponent as User} from "../../../assets/images/svg/user.svg"
  8. import {ReactComponent as Mail} from "../../../assets/images/svg/mail.svg"
  9. import {ReactComponent as Package} from "../../../assets/images/svg/package.svg"
  10. import {ReactComponent as Logout} from "../../../assets/images/svg/log-out.svg"
  11. export const DrawerContainer = styled(Box)`
  12. width: 100vw;
  13. position: relative;
  14. height: 100%;
  15. `
  16. export const ToolsContainer = styled(Box)`
  17. display: flex;
  18. flex-direction: column;
  19. justify-content: ${(props) => (props.mobile ? "center" : "space-between")};
  20. align-items: ${(props) => (props.mobile ? "start" : "center")};
  21. ${(props) => !props.mobile && `width: 100%;`}
  22. & div button {
  23. ${(props) => props.mobile && `width: auto;`}
  24. }
  25. position: absolute;
  26. top: 0px;
  27. bottom: 70px;
  28. left: 36px;
  29. gap: 36px;
  30. `;
  31. export const AuthButtonsDrawerContainer = styled(Box)`
  32. height: 100%;
  33. width: 100%;
  34. `;
  35. export const LoginButton = styled(PrimaryButton)`
  36. height: 49px;
  37. width: 218px;
  38. font-weight: 600;
  39. position: absolute;
  40. bottom: 85px;
  41. right: 0;
  42. left: 0;
  43. margin-left: auto;
  44. margin-right: auto;
  45. `;
  46. export const RegisterButton = styled(PrimaryButton)`
  47. height: 49px;
  48. width: 218px;
  49. font-weight: 600;
  50. position: absolute;
  51. bottom: 40px;
  52. right: 0;
  53. left: 0;
  54. margin-left: auto;
  55. margin-right: auto;
  56. `;
  57. export const CloseButton = styled(IconButton)`
  58. position: absolute;
  59. top: 40px;
  60. right: 36px;
  61. `
  62. export const CloseIcon = styled(Close)`
  63. color: ${selectedTheme.primaryYellow};
  64. width: 16px;
  65. height: 16px;
  66. `
  67. export const DrawerOption = styled(Typography)`
  68. font-weight: 600;
  69. font-family: "Open Sans";
  70. color: ${selectedTheme.primaryPurple};
  71. font-size: 18px;
  72. position: relative;
  73. top: 4px;
  74. `
  75. export const DrawerButton = styled(Box)`
  76. display: flex;
  77. flex-direction: row;
  78. `
  79. export const UserIcon = styled(User)`
  80. width: 24px;
  81. height: 24px;
  82. margin-right: 9px;
  83. & path {
  84. stroke: ${selectedTheme.primaryYellow};
  85. }
  86. `
  87. export const MailIcon = styled(Mail)`
  88. width: 24px;
  89. height: 24px;
  90. margin-right: 9px;
  91. & path {
  92. stroke: ${selectedTheme.primaryYellow};
  93. }
  94. `
  95. export const PackageIcon = styled(Package)`
  96. width: 24px;
  97. height: 24px;
  98. margin-right: 9px;
  99. & path {
  100. stroke: ${selectedTheme.primaryYellow};
  101. }
  102. `
  103. export const AddOfferButton = styled(PrimaryButton)`
  104. width: 165px;
  105. height: 44px;
  106. position: relative;
  107. bottom: -5px;
  108. `
  109. export const FooterButtons = styled(Box)`
  110. position: absolute;
  111. bottom: 36px;
  112. display: flex;
  113. flex-direction: row;
  114. width: 100vw;
  115. justify-content: space-around;
  116. `
  117. export const LogoutButton = styled(Box)`
  118. `
  119. export const LogoutIcon = styled(Logout)`
  120. width: 20px;
  121. height: 20px;
  122. & path {
  123. stroke: ${selectedTheme.primaryPurple};
  124. }
  125. `
  126. export const LogoutText = styled(Typography)`
  127. font-weight: 600;
  128. font-size: 14px;
  129. color: ${selectedTheme.primaryPurple};
  130. font-family: "Open Sans";
  131. position: relative;
  132. left: -14px;
  133. top: -3px;
  134. `
  135. export const HeaderTitle = styled(Typography)`
  136. font-weight: 700;
  137. font-family: "Open Sans";
  138. font-size: 18px;
  139. color: ${selectedTheme.primaryDarkTextThird};
  140. position: absolute;
  141. top: 36px;
  142. left: 36px;
  143. `
  144. export const MyUsername = styled(Typography)`
  145. font-size: 12px;
  146. font-family: "Open Sans";
  147. color: ${selectedTheme.primaryPurple};
  148. position: relative;
  149. top: 12px;
  150. left: 4px;
  151. letter-spacing: 2%;
  152. `