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.5KB

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