Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Hero.jsx 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import { Button, Typography } from '@mui/material';
  2. import { Box } from '@mui/system';
  3. import Image from 'next/image';
  4. import { useRouter } from 'next/router';
  5. import { PRODUCTS_PAGE } from '../../constants/pages';
  6. const Hero = () => {
  7. const router = useRouter();
  8. return (
  9. <>
  10. <Box sx={{ display: 'flex', width: '100%', height: '100vh' }}>
  11. <Box
  12. sx={{
  13. width: '50%',
  14. height: '100%',
  15. display: 'flex',
  16. flexDirection: 'column',
  17. backgroundColor: 'primary.light',
  18. }}
  19. >
  20. <Typography
  21. variant="h1"
  22. sx={{
  23. ml: 10,
  24. mt: '30%',
  25. color: 'white',
  26. height: 100,
  27. }}
  28. >
  29. Its a
  30. </Typography>
  31. <Typography variant="h1" sx={{ ml: 10, color: 'white', height: 100 }}>
  32. {' '}
  33. Coffee Break
  34. </Typography>
  35. <Typography
  36. sx={{ mt: 6, p: 'auto', px: '10%', color: 'white', pr: '20%' }}
  37. >
  38. If you drink coffee regulary you will know the difference between
  39. fresh coffee and old coffee. Our goal is to provide the freshest
  40. coffee beans in each day.
  41. </Typography>
  42. <Box
  43. sx={{
  44. width: '100%',
  45. display: 'flex',
  46. mt: 5,
  47. }}
  48. >
  49. <Button
  50. sx={{
  51. backgroundColor: '#CBA213',
  52. height: 50,
  53. width: 150,
  54. textTransform: 'none',
  55. ml: 10,
  56. color: 'white',
  57. }}
  58. onClick={() => router.push(PRODUCTS_PAGE)}
  59. >
  60. Explore the Shop
  61. </Button>
  62. <Button
  63. sx={{
  64. height: 72,
  65. width: 250,
  66. textTransform: 'none',
  67. mt: -2,
  68. ml: 2,
  69. color: 'white',
  70. }}
  71. startIcon={
  72. <Image
  73. src="/images/Play.svg"
  74. alt="profile"
  75. width={72}
  76. height={72}
  77. />
  78. }
  79. >
  80. How to make
  81. </Button>
  82. </Box>
  83. </Box>
  84. <Box sx={{ width: '50%', backgroundColor: 'white' }}>
  85. <Box sx={{ mt: 10, ml: -12 }}>
  86. <Image
  87. src="/images/Hero-Image.png"
  88. alt="profile"
  89. width={700}
  90. height={600}
  91. />
  92. </Box>
  93. </Box>
  94. </Box>
  95. </>
  96. );
  97. };
  98. export default Hero;