Parcourir la source

feat: footer

shipping
ntasicc il y a 3 ans
Parent
révision
bc76a85072

+ 9
- 3
components/company-info/CompanyInfo.jsx Voir le fichier

@@ -4,7 +4,13 @@ import Image from 'next/image';
const CompanyInfo = () => {
return (
<>
<Box sx={{ display: 'flex', backgroundColor: 'primary.main' }}>
<Box
sx={{
display: 'flex',
backgroundColor: 'primary.main',
height: '100%',
}}
>
<Box
sx={{
width: '50%',
@@ -20,7 +26,7 @@ const CompanyInfo = () => {
textAlign: 'center',
width: '100%',
height: 70,
mt: 20,
mt: 13,
color: 'white',
}}
>
@@ -96,7 +102,7 @@ const CompanyInfo = () => {
</Box>
</Box>
<Box sx={{ width: '50%' }}>
<Box sx={{ pt: 8 }}>
<Box sx={{ pt: 1 }}>
<Image
src="/images/maps 1.svg"
alt="map"

+ 2
- 1
components/features/Features.jsx Voir le fichier

@@ -9,7 +9,8 @@ const Features = () => {
sx={{
display: 'flex',
width: '100%',
height: '100%',

height: '100vh',
flexDirection: 'column',
}}
>

+ 1
- 1
components/hero/Hero.jsx Voir le fichier

@@ -5,7 +5,7 @@ import Image from 'next/image';
const Hero = () => {
return (
<>
<Box sx={{ display: 'flex' }}>
<Box sx={{ display: 'flex', width: '100%', height: '100vh' }}>
<Box
sx={{
width: '50%',

+ 2
- 0
components/layout/base-layout/Layout.jsx Voir le fichier

@@ -1,4 +1,5 @@
import { Box } from '@mui/material';
import Footer from '../footer/Footer';
import Navbar from '../navbar/Navbar';

function Layout(props) {
@@ -7,6 +8,7 @@ function Layout(props) {
<Box sx={{ width: '100%' }}>
<Navbar />
<main>{props.children}</main>
<Footer></Footer>
</Box>
</>
);

+ 81
- 0
components/layout/footer/Footer.jsx Voir le fichier

@@ -0,0 +1,81 @@
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;

+ 2
- 1
components/products/featured-product/FeaturedProduct.jsx Voir le fichier

@@ -8,7 +8,8 @@ const FeaturedProduct = ({ bColor, image, side }) => {
<Box
sx={{
width: '100%',
minHeight: 500,
maxHeight: 500,
height: 500,
backgroundColor: bColor === 'dark' ? 'primary.main' : 'primary.light',
display: 'flex',
}}

+ 9
- 0
public/images/Facebook.svg
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 9
- 0
public/images/Instagram.svg
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 9
- 0
public/images/Twitter.svg
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 4
- 0
styles/globals.css Voir le fichier

@@ -16,6 +16,10 @@ body {
height: 100%;
}

main {
height: auto;
}

h1,
h2,
h3,

Chargement…
Annuler
Enregistrer