| const CompanyInfo = () => { | const CompanyInfo = () => { | ||||
| return ( | return ( | ||||
| <> | <> | ||||
| <Box sx={{ display: 'flex', backgroundColor: 'primary.main' }}> | |||||
| <Box | |||||
| sx={{ | |||||
| display: 'flex', | |||||
| backgroundColor: 'primary.main', | |||||
| height: '100%', | |||||
| }} | |||||
| > | |||||
| <Box | <Box | ||||
| sx={{ | sx={{ | ||||
| width: '50%', | width: '50%', | ||||
| textAlign: 'center', | textAlign: 'center', | ||||
| width: '100%', | width: '100%', | ||||
| height: 70, | height: 70, | ||||
| mt: 20, | |||||
| mt: 13, | |||||
| color: 'white', | color: 'white', | ||||
| }} | }} | ||||
| > | > | ||||
| </Box> | </Box> | ||||
| </Box> | </Box> | ||||
| <Box sx={{ width: '50%' }}> | <Box sx={{ width: '50%' }}> | ||||
| <Box sx={{ pt: 8 }}> | |||||
| <Box sx={{ pt: 1 }}> | |||||
| <Image | <Image | ||||
| src="/images/maps 1.svg" | src="/images/maps 1.svg" | ||||
| alt="map" | alt="map" |
| sx={{ | sx={{ | ||||
| display: 'flex', | display: 'flex', | ||||
| width: '100%', | width: '100%', | ||||
| height: '100%', | |||||
| height: '100vh', | |||||
| flexDirection: 'column', | flexDirection: 'column', | ||||
| }} | }} | ||||
| > | > |
| const Hero = () => { | const Hero = () => { | ||||
| return ( | return ( | ||||
| <> | <> | ||||
| <Box sx={{ display: 'flex' }}> | |||||
| <Box sx={{ display: 'flex', width: '100%', height: '100vh' }}> | |||||
| <Box | <Box | ||||
| sx={{ | sx={{ | ||||
| width: '50%', | width: '50%', |
| import { Box } from '@mui/material'; | import { Box } from '@mui/material'; | ||||
| import Footer from '../footer/Footer'; | |||||
| import Navbar from '../navbar/Navbar'; | import Navbar from '../navbar/Navbar'; | ||||
| function Layout(props) { | function Layout(props) { | ||||
| <Box sx={{ width: '100%' }}> | <Box sx={{ width: '100%' }}> | ||||
| <Navbar /> | <Navbar /> | ||||
| <main>{props.children}</main> | <main>{props.children}</main> | ||||
| <Footer></Footer> | |||||
| </Box> | </Box> | ||||
| </> | </> | ||||
| ); | ); |
| import Box from '@mui/material/Box'; | |||||
| import Typography from '@mui/material/Typography'; | |||||
| import Image from 'next/image'; | |||||
| const pages = ['Home', 'Menu', 'About', 'Store', 'Contact']; | |||||
| const Footer = () => { | |||||
| return ( | |||||
| <Box | |||||
| sx={{ | |||||
| display: 'flex', | |||||
| width: '100%', | |||||
| height: 220, | |||||
| flexDirection: 'column', | |||||
| bottom: 0, | |||||
| position: 'relative', | |||||
| }} | |||||
| > | |||||
| <Typography | |||||
| variant="h3" | |||||
| sx={{ | |||||
| width: '100%', | |||||
| textAlign: 'center', | |||||
| color: 'primary.main', | |||||
| height: 60, | |||||
| mt: 4, | |||||
| }} | |||||
| > | |||||
| Coffee Shop | |||||
| </Typography> | |||||
| <Box | |||||
| sx={{ | |||||
| maxWidth: '100%', | |||||
| height: 30, | |||||
| mt: 1.5, | |||||
| display: 'flex', | |||||
| justifyContent: 'center', | |||||
| }} | |||||
| > | |||||
| {pages.map((page) => ( | |||||
| <Typography | |||||
| key={page} | |||||
| sx={{ | |||||
| fontSize: 20, | |||||
| fontWeight: 500, | |||||
| px: 1.5, | |||||
| color: 'primary.main', | |||||
| }} | |||||
| > | |||||
| {page} | |||||
| </Typography> | |||||
| ))} | |||||
| </Box> | |||||
| <Box | |||||
| sx={{ | |||||
| display: 'flex', | |||||
| width: '100%', | |||||
| height: 40, | |||||
| mt: 4, | |||||
| justifyContent: 'center', | |||||
| }} | |||||
| > | |||||
| <Box sx={{ px: 2 }}> | |||||
| <Image | |||||
| src="/images/Instagram.svg" | |||||
| alt="cart" | |||||
| width={35} | |||||
| height={35} | |||||
| /> | |||||
| </Box> | |||||
| <Box sx={{ px: 2 }}> | |||||
| <Image src="/images/Facebook.svg" alt="cart" width={35} height={35} /> | |||||
| </Box> | |||||
| <Box sx={{ px: 2 }}> | |||||
| <Image src="/images/Twitter.svg" alt="cart" width={35} height={35} /> | |||||
| </Box> | |||||
| </Box> | |||||
| </Box> | |||||
| ); | |||||
| }; | |||||
| export default Footer; |
| <Box | <Box | ||||
| sx={{ | sx={{ | ||||
| width: '100%', | width: '100%', | ||||
| minHeight: 500, | |||||
| maxHeight: 500, | |||||
| height: 500, | |||||
| backgroundColor: bColor === 'dark' ? 'primary.main' : 'primary.light', | backgroundColor: bColor === 'dark' ? 'primary.main' : 'primary.light', | ||||
| display: 'flex', | display: 'flex', | ||||
| }} | }} |
| height: 100%; | height: 100%; | ||||
| } | } | ||||
| main { | |||||
| height: auto; | |||||
| } | |||||
| h1, | h1, | ||||
| h2, | h2, | ||||
| h3, | h3, |