Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
Akruti-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 9fe1299e
authored
2026-03-17 12:20:05 +0530
by
Ravindra Kanojiya
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated miltiple banner in inner pages
1 parent
1707ea57
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
27 deletions
components/Collection/InnerBannerproduct.js
components/Collection/InnerDetails.js
components/Collection/InnerDetailsSubCategory.js
container/Home/HomeBanner.js
styles/globals.css
components/Collection/InnerBannerproduct.js
View file @
9fe1299
import
React
from
'react'
import
{
Col
,
Row
}
from
'react-bootstrap'
import
{
cleanImage
}
from
'../services/imageHandling'
import
{
Col
,
Row
}
from
"react-bootstrap"
;
import
{
cleanImage
}
from
"../services/imageHandling"
;
import
Heading
from
"@/components/Heading"
;
import
Image
from
'next/image'
;
const
InnerBannerproduct
=
({
productData
})
=>
{
return
(
<>
<
section
className
=
'innerbanner-section'
>
<
div
className
=
'innerbanner product-details'
>
<
Row
>
<
Col
>
<
div
className
=
'product-banner'
>
<
Image
width
=
{
1856
}
height
=
{
1086
}
src
=
{
cleanImage
(
productData
?.
image
?.
url
)}
alt
=
""
/>
import
Image
from
"next/image"
;
import
React
,
{
useState
,
useEffect
}
from
"react"
;
import
{
Swiper
,
SwiperSlide
}
from
"swiper/react"
;
import
"swiper/css"
;
import
"swiper/css/navigation"
;
import
"swiper/css/pagination"
;
import
{
Navigation
,
Pagination
,
Autoplay
}
from
"swiper/modules"
;
import
SwiperBtn
from
"@/components/Layout/SwiperBtn"
;
import
Link
from
"next/link"
;
const
InnerBannerproduct
=
({
productData
})
=>
{
console
.
log
(
"productData"
,
productData
);
return
(
<>
<
section
className
=
"innerbanner-section"
>
<
div
className
=
"innerbanner product-details"
>
<
Row
>
<
Col
>
{
/* <div className='product-banner'>
<Image width={1856} height={1086} src={cleanImage(productData?.image[0]?.url)} alt="" />
<div className='info'>
<Heading el="h2" heading={productData?.title} />
<div dangerouslySetInnerHTML={{__html: productData?.description}}></div>
</div>
<
/div
>
<
/Col
>
<
/Row
>
<
/div
>
<
/section
>
<
/
>
)
}
</div> */
}
<
div
className
=
"product-banner"
>
<
Swiper
navigation
=
{{
nextEl
:
".cust-swiper-button-next"
,
prevEl
:
".cust-swiper-button-prev"
,
}}
pagination
=
{{
clickable
:
true
}}
// autoplay={false}
autoplay
=
{{
delay
:
5000
,
disableOnInteraction
:
false
}}
loop
=
{
false
}
modules
=
{[
Navigation
,
Pagination
,
Autoplay
]}
className
=
"homeBannerSwiper"
>
<
div
className
=
"position-absolute swiperbtn1 d-lg-flex d-none justify-content-md-between wrapper-full align-items-center w-100"
>
<
SwiperBtn
/>
<
/div
>
{
productData
?.
image
?.
map
((
item
,
index
)
=>
(
<
SwiperSlide
key
=
{
index
}
>
<
Image
width
=
{
1856
}
height
=
{
1086
}
src
=
{
cleanImage
(
item
?.
url
)}
alt
=
""
/
>
<
/SwiperSlide
>
))}
<
/Swiper
>
<
div
className
=
"info"
>
<
Heading
el
=
"h2"
heading
=
{
productData
?.
title
}
/
>
<
div
dangerouslySetInnerHTML
=
{{
__html
:
productData
?.
description
,
}}
><
/div
>
<
/div
>
<
/div
>
<
/Col
>
<
/Row
>
<
/div
>
<
/section
>
<
/
>
);
};
export
default
InnerBannerproduct
export
default
InnerBannerproduct
;
components/Collection/InnerDetails.js
View file @
9fe1299
...
...
@@ -6,7 +6,7 @@ import { useRouter } from "next/router";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
InnerDetails
=
({
subCategories
})
=>
{
console
.
log
(
"subCategories"
,
subCategories
)
const
router
=
useRouter
();
const
{
category
}
=
router
.
query
;
...
...
components/Collection/InnerDetailsSubCategory.js
View file @
9fe1299
...
...
@@ -7,6 +7,7 @@ import FilterButton from "../Common/FilterButton";
import
{
cleanImage
}
from
"../services/imageHandling"
;
const
InnerDetailsSubCategory
=
({
products
})
=>
{
console
.
log
(
"products 123"
,
products
)
const
router
=
useRouter
();
const
{
category
,
subCategory
}
=
router
.
query
;
const
[
showFilter
,
setShowFilter
]
=
useState
(
false
);
...
...
@@ -85,7 +86,8 @@ const [showFilter, setShowFilter] = useState(false);
<
Image
width
=
{
868
}
height
=
{
560
}
src
=
{
cleanImage
(
product
?.
image
?.
url
)}
src
=
{
cleanImage
(
product
?.
image
?.[
0
]?.
url
)}
alt
=
{
product
.
title
}
/
>
<
div
className
=
"title"
>
{
product
.
title
}
<
/div
>
...
...
container/Home/HomeBanner.js
View file @
9fe1299
...
...
@@ -58,7 +58,7 @@ const HomeBanner = ({banner}) => {
loop
modules
=
{[
Navigation
,
Pagination
,
Autoplay
]}
className
=
"homeBannerSwiper"
>
>
<
div
className
=
"position-absolute swiperbtn1 d-lg-flex d-none justify-content-md-between wrapper-full align-items-center w-100"
>
<
SwiperBtn
/>
<
/div
>
...
...
styles/globals.css
View file @
9fe1299
...
...
@@ -514,7 +514,7 @@ input:focus-visible {
.collections-item
img
{
width
:
100%
;
height
:
auto
;
m
in
-height
:
29vw
;
m
ax
-height
:
29vw
;
object-fit
:
cover
;
}
.collections-item
.title
{
...
...
@@ -535,6 +535,11 @@ input:focus-visible {
left
:
6.6rem
;
color
:
#fff
;
width
:
40%
;
z-index
:
1
;
}
.innerbanner-section
.homeBannerSwiper
{
margin-top
:
0
;
height
:
calc
(
100vh
-
115px
);
}
.product-banner
.info
.heading
{
color
:
#fff
;
...
...
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