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.

ShippingContent.jsx 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. import {
  2. Breadcrumbs,
  3. Button,
  4. Checkbox,
  5. Divider,
  6. FormControlLabel,
  7. Grid,
  8. Typography,
  9. } from '@mui/material';
  10. import { Box } from '@mui/system';
  11. import DataCard from '../cards/data-card/DataCard';
  12. const ShippingContent = () => {
  13. return (
  14. <Grid container spacing={2} sx={{ py: 10, height: '100%', width: '100%' }}>
  15. <Grid item xs={12}>
  16. <Typography
  17. variant="h3"
  18. sx={{ pl: 12, mt: 12, height: '100%', color: 'primary.main' }}
  19. >
  20. Shipping
  21. </Typography>
  22. </Grid>
  23. <Grid item xs={12}>
  24. <Divider sx={{ backgroundColor: 'primary.main', mx: 12 }} />
  25. </Grid>
  26. <Grid item xs={12} sx={{ mt: 4 }}>
  27. <Breadcrumbs
  28. aria-label="breadcrumb"
  29. separator="›"
  30. sx={{ pl: 12, fontSize: 20 }}
  31. >
  32. <Typography>Cart</Typography>
  33. <Typography>Checkout</Typography>
  34. <Typography color="red">Shipping</Typography>
  35. </Breadcrumbs>
  36. </Grid>
  37. <Grid item xs={12} sx={{ mt: 1 }}>
  38. <Typography sx={{ pl: 12, fontSize: 20 }}>
  39. The following fields will be used as the shipping details for your
  40. order
  41. </Typography>
  42. </Grid>
  43. <Grid item xs={8}>
  44. <Box
  45. sx={{
  46. display: 'flex',
  47. justifyContent: 'space-between',
  48. backgroundColor: '#f2f2f2',
  49. alignItems: 'center',
  50. mt: 2,
  51. ml: 12,
  52. mb: 2,
  53. width: '90%',
  54. borderRadius: 2,
  55. p: 1,
  56. }}
  57. >
  58. <Typography sx={{ fontSize: 18, fontWeight: 600 }}>
  59. Contact
  60. </Typography>
  61. <Typography>johndoe@test.com | 0601234567</Typography>
  62. <Button
  63. sx={{
  64. height: 35,
  65. width: 125,
  66. fontSize: 15,
  67. textTransform: 'none',
  68. backgroundColor: '#CBA213',
  69. color: 'white',
  70. }}
  71. >
  72. Change
  73. </Button>
  74. </Box>
  75. <Box
  76. sx={{
  77. display: 'flex',
  78. justifyContent: 'space-between',
  79. backgroundColor: '#f2f2f2',
  80. alignItems: 'center',
  81. ml: 12,
  82. mb: 2,
  83. width: '90%',
  84. borderRadius: 2,
  85. p: 1,
  86. }}
  87. >
  88. <Typography sx={{ fontSize: 18, fontWeight: 600 }}>
  89. Shipping to
  90. </Typography>
  91. <Typography>1684 Upton Avenue | Locke Mills</Typography>
  92. <Button
  93. sx={{
  94. height: 35,
  95. width: 125,
  96. fontSize: 15,
  97. textTransform: 'none',
  98. backgroundColor: '#CBA213',
  99. color: 'white',
  100. }}
  101. >
  102. Change
  103. </Button>
  104. </Box>
  105. <Box
  106. sx={{
  107. display: 'flex',
  108. justifyContent: 'space-between',
  109. backgroundColor: '#f2f2f2',
  110. alignItems: 'center',
  111. ml: 12,
  112. mb: 2,
  113. width: '30%',
  114. borderRadius: 2,
  115. p: 1,
  116. }}
  117. >
  118. <FormControlLabel
  119. control={<Checkbox checked disabled />}
  120. label="Free Shipping"
  121. sx={{ color: 'black', ml: 2 }}
  122. />
  123. </Box>
  124. <Box
  125. sx={{
  126. display: 'flex',
  127. ml: 12,
  128. mb: 2,
  129. borderRadius: 2,
  130. p: 1,
  131. }}
  132. >
  133. <Button
  134. variant="contained"
  135. sx={{
  136. mt: 3,
  137. mb: 2,
  138. height: 50,
  139. width: 150,
  140. textTransform: 'none',
  141. backgroundColor: 'primary.main',
  142. color: 'white',
  143. mr: 2,
  144. }}
  145. >
  146. Back to cart
  147. </Button>
  148. <Button
  149. type="submit"
  150. variant="contained"
  151. sx={{
  152. mt: 3,
  153. mb: 2,
  154. backgroundColor: '#CBA213',
  155. height: 50,
  156. width: 200,
  157. textTransform: 'none',
  158. color: 'white',
  159. }}
  160. >
  161. Continue to payment
  162. </Button>
  163. </Box>
  164. </Grid>
  165. <Grid item xs={4}>
  166. <Box sx={{ width: '80%', mt: 2 }}>
  167. <DataCard></DataCard>
  168. <DataCard></DataCard>
  169. <DataCard></DataCard>
  170. </Box>
  171. </Grid>
  172. </Grid>
  173. );
  174. };
  175. export default ShippingContent;