-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f44e4
commit a822ab0
Showing
11 changed files
with
51 additions
and
37 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
import { Box, Typography } from '@mui/material'; | ||
import Slider from 'react-slick'; | ||
import Image from 'next/image'; | ||
import styles from '../styles/HomePage.module.css'; | ||
|
||
const images = [ | ||
{ | ||
src: '/images/snow1.jpg', | ||
alt: 'snow1' | ||
}, | ||
{ | ||
src: '/images/snow2.jpg', | ||
alt: 'snow2' | ||
}, | ||
{ | ||
src: '/images/snow3.jpg', | ||
alt: 'snow3' | ||
}, | ||
{ | ||
src: '/images/snow4.jpg', | ||
alt: 'snow4' | ||
} | ||
]; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<> | ||
<div className={styles.HomePage}> | ||
<Slider | ||
arrows={false} | ||
dots | ||
infinite | ||
speed={500} | ||
speed={1500} | ||
slidesToShow={1} | ||
slidesToScroll={1} | ||
className={styles.Slider} | ||
autoplay | ||
autoplaySpeed={2500} | ||
> | ||
<> | ||
<Box display="flex" justifyContent="center"> | ||
<Image | ||
src="/images/hero1.jpg" | ||
alt="hero" | ||
width={800} | ||
height={400} | ||
/> | ||
</Box> | ||
</> | ||
|
||
<> | ||
<Box display="flex" justifyContent="center"> | ||
<Image | ||
src="/images/hero2.jpg" | ||
alt="hero" | ||
width={800} | ||
height={400} | ||
/> | ||
</Box> | ||
</> | ||
|
||
<> | ||
<Box display="flex" justifyContent="center"> | ||
<Image | ||
src="/images/hero3.jpg" | ||
alt="hero" | ||
width={800} | ||
height={400} | ||
/> | ||
</Box> | ||
</> | ||
{images.map(img => ( | ||
<div key={img.alt} className={styles.ImageContainer}> | ||
<Image className={styles.Image} src={img.src} alt={img.alt} fill /> | ||
</div> | ||
))} | ||
</Slider> | ||
|
||
<Box display="flex" justifyContent="center" sx={{ p: 4, mt: 2 }}> | ||
<Typography variant="h1">Welcome to the shop!</Typography> | ||
<Typography variant="h1" fontSize={60}> | ||
Welcome to the shop! | ||
</Typography> | ||
</Box> | ||
</> | ||
</div> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.HomePage { | ||
position: absolute; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.Slider .ImageContainer { | ||
height: 465px; | ||
position: relative; | ||
} | ||
|
||
.Slider .ImageContainer img { | ||
max-width: 2000px; | ||
margin: 0 auto; | ||
object-fit: cover; | ||
} |