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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. import { Box, Button, ButtonGroup, Paper, Typography } from '@mui/material';
  2. import Image from 'next/image';
  3. const CartCard = () => {
  4. return (
  5. <Paper
  6. sx={{
  7. p: 1,
  8. width: '88%',
  9. mb: 2,
  10. ml: 12,
  11. backgroundColor: '#f2f2f2',
  12. display: 'flex',
  13. }}
  14. elevation={3}
  15. >
  16. <Box sx={{ width: '30%' }}>
  17. <Image
  18. src="/images/coffee-mug.svg"
  19. alt="profile"
  20. width={500}
  21. height={300}
  22. />
  23. </Box>
  24. <Box
  25. sx={{
  26. ml: -4,
  27. mr: 2,
  28. display: 'flex',
  29. alignItems: 'center',
  30. width: '30%',
  31. }}
  32. >
  33. <Typography
  34. sx={{
  35. width: '100%',
  36. textAlign: 'center',
  37. height: 25,
  38. fontWeight: 600,
  39. fontSize: 20,
  40. }}
  41. >
  42. Begin Mug in White
  43. </Typography>
  44. </Box>
  45. <Box
  46. sx={{
  47. display: 'flex',
  48. flexDirection: 'column',
  49. width: '20%',
  50. alignItems: 'center',
  51. }}
  52. >
  53. <Typography
  54. sx={{
  55. width: '100%',
  56. textAlign: 'center',
  57. height: 16,
  58. fontSize: 14,
  59. }}
  60. >
  61. Quantity
  62. </Typography>
  63. <ButtonGroup
  64. size="small"
  65. aria-label="small outlined button group"
  66. sx={{
  67. height: 35,
  68. width: 125,
  69. mt: 1,
  70. backgroundColor: 'primary.main',
  71. color: 'white',
  72. border: 0,
  73. }}
  74. >
  75. <Button
  76. sx={{
  77. color: 'white',
  78. fontSize: 17,
  79. width: 25,
  80. }}
  81. onClick={() => {}}
  82. >
  83. -
  84. </Button>
  85. <Button
  86. sx={{
  87. color: 'white',
  88. fontSize: 15,
  89. width: 25,
  90. }}
  91. >
  92. 1
  93. </Button>
  94. <Button
  95. sx={{
  96. color: 'white',
  97. fontSize: 17,
  98. width: 25,
  99. }}
  100. onClick={() => {}}
  101. >
  102. +
  103. </Button>
  104. </ButtonGroup>
  105. <Button
  106. sx={{
  107. height: 35,
  108. mt: 1,
  109. width: 125,
  110. fontSize: 15,
  111. textTransform: 'none',
  112. backgroundColor: '#C6453E',
  113. color: 'white',
  114. }}
  115. startIcon={
  116. <Image src="/images/x.svg" alt="remove" width={15} height={15} />
  117. }
  118. >
  119. Remove
  120. </Button>
  121. </Box>
  122. <Box
  123. sx={{ ml: 3, display: 'flex', flexDirection: 'column', width: '20%' }}
  124. >
  125. <Typography
  126. sx={{
  127. width: '100%',
  128. textAlign: 'center',
  129. height: 25,
  130. fontSize: 20,
  131. }}
  132. >
  133. Total: $20
  134. </Typography>
  135. </Box>
  136. </Paper>
  137. );
  138. };
  139. export default CartCard;