forked from CrioDo/L-square-QTify
-
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
7942a9b
commit a563b69
Showing
6 changed files
with
120 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
} | ||
|
||
.container { | ||
height: 250px; | ||
height: 205px; | ||
width: 100%; | ||
border-radius: 10px; | ||
overflow: hidden; | ||
|
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,79 @@ | ||
// import React from "react"; | ||
// import Grid from '@mui/material/Grid'; | ||
// import Card from '../Card/Card'; | ||
// import { Typography } from '@mui/material'; | ||
// import styles from "./Section.module.css"; | ||
|
||
// export default function Carousel({ title, data }) { | ||
// return ( | ||
// <div> | ||
|
||
// <Grid container spacing={4} sx={{ padding: 3 }}> | ||
// {data && data.map((group, index) => ( | ||
// <Grid item xs={12} key={index}> | ||
// <Card image={group.image} follows={group.follows} /> | ||
// <Typography sx={{ color: 'white', textAlign: 'left' }}> {group.title}</Typography> | ||
// </Grid> | ||
// ))} | ||
// </Grid> | ||
// </div> | ||
// ) | ||
// } | ||
|
||
import React, { useRef, useState } from 'react'; | ||
import { Swiper, SwiperSlide } from 'swiper/react'; | ||
import 'swiper/css'; | ||
import 'swiper/css/pagination'; | ||
import 'swiper/css/navigation'; | ||
// import './styles.css'; | ||
import { Navigation } from 'swiper/modules'; | ||
|
||
import Grid from '@mui/material/Grid'; | ||
import Card from '../Card/Card'; | ||
import { Typography } from '@mui/material'; | ||
|
||
export default function Carousel({ data }) { | ||
return ( | ||
<Grid item xs={12}> | ||
<Swiper | ||
slidesPerView={1} | ||
breakpoints={{ | ||
280: { | ||
slidesPerView: 2, | ||
spaceBetween: 30, | ||
}, | ||
400: { | ||
slidesPerView: 3, | ||
spaceBetween: 30, | ||
}, | ||
668: { | ||
slidesPerView: 5, | ||
spaceBetween: 30, | ||
}, | ||
1024: { | ||
slidesPerView: 7, | ||
spaceBetween: 30, | ||
}, | ||
}} | ||
spaceBetween={10} | ||
loop={true} | ||
navigation={true} | ||
modules={[Navigation]} | ||
className="mySwiper" | ||
> | ||
{/* <Grid container > | ||
<Grid item xs={12}> */} | ||
{data && data.map((group, index) => ( | ||
<SwiperSlide> | ||
{/* <Grid item xs={12} key={index}> */} | ||
<Card image={group.image} follows={group.follows} /> | ||
<Typography sx={{ color: 'white', textAlign: 'left' }}> {group.title}</Typography> | ||
{/* </Grid> */} | ||
</SwiperSlide> | ||
))} | ||
{/* </Grid> | ||
</Grid> */} | ||
</Swiper> | ||
</Grid> | ||
); | ||
} |
Empty file.
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