Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 91efd826
authored
2024-06-25 11:21:25 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
66080dbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
components/home/LetDiscover.js
components/home/LetDiscover.js
View file @
91efd82
...
...
@@ -54,7 +54,7 @@ const LetDiscover = ({ categories }) => {
<
Swiper
modules
=
{[
Autoplay
,
Navigation
]}
slidesPerView
=
{
3
}
spaceBetween
=
{
10
}
spaceBetween
=
{
10
}
// autoplay={{
// delay: 7000,
// disableOnInteraction: false,
...
...
@@ -95,16 +95,14 @@ const LetDiscover = ({ categories }) => {
return
(
<
SwiperSlide
key
=
{
data
?.
id
}
>
<
motion
.
div
variants
=
{
zoomIn
(
"left"
,
0.3
)}
initial
=
{
"hidden"
}
whileInView
=
{
"show"
}
viewport
=
{{
once
:
false
,
amount
:
0.2
}}
>
<
a
onClick
=
{()
=>
{
router
.
push
(
`/listing?category=
${
data
.
id
}
`
);
}}
>
<
Link
prefetch
href
=
{
`/listing?category=
${
data
.
id
}
`
}
>
<
div
>
<
span
className
=
"image-container"
>
<
img
priority
=
{
false
}
loading
=
"lazy"
layout
=
"fill"
alt
=
""
className
=
"image img-fluid"
src
=
{
cleanImage
(
data
?.
attributes
?.
image
?.
data
?.
attributes
)}
/
>
<
Image
layout
=
"fill"
alt
=
""
className
=
"image img-fluid"
src
=
{
cleanImage
(
data
?.
attributes
?.
image
?.
data
?.
attributes
)}
/
>
<
/span
>
<
div
className
=
"title"
>
{
data
?.
attributes
?.
name
}
<
/div
>
<
/a
>
<
/div
>
<
/Link
>
<
/motion.div
>
<
/SwiperSlide
>
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment