Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
advithconsulting.io-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 f174945f
authored
2025-10-10 16:42:37 +0530
by
sujata
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
change in breadcumb
1 parent
f1e111cf
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
99 additions
and
117 deletions
components/reuseables/PageBanner.js
container/Career/CareerPage.js
pages/blog/[slug]/index.js
pages/blog/index.js
pages/client-servicing/advisory-services/index.js
pages/client-servicing/ba.js
pages/client-servicing/bespoke.js
pages/client-servicing/digital-transformation.js
pages/client-servicing/empowering-finance-consultants.js
pages/client-servicing/global-capability-centres.js
pages/client-servicing/ra.js
pages/client-servicing/ta.js
pages/client-servicing/virtual-finance-office/apc.js
pages/client-servicing/virtual-finance-office/book-closures-audit.js
pages/client-servicing/virtual-finance-office/index.js
pages/client-servicing/virtual-finance-office/virtual-cfo.js
pages/client-servicing/virtual-finance-office/virtual-fc.js
components/reuseables/PageBanner.js
View file @
f174945
...
...
@@ -3,96 +3,81 @@ import Link from "next/link";
import
Image
from
"next/image"
;
import
{
useRouter
}
from
"next/router"
;
import
{
Swiper
,
SwiperSlide
}
from
"swiper/react"
;
import
{
Pagination
,
Autoplay
}
from
"swiper/modules"
;
import
{
Autoplay
}
from
"swiper/modules"
;
import
{
Container
}
from
"react-bootstrap"
;
const
PageBanner
=
({
banners
=
[]
})
=>
{
const
router
=
useRouter
();
console
.
log
(
banners
,
'bannes'
);
// Function to generate breadcrumbs for client servicing pages
const
generateClientServicingBreadcrumbs
=
()
=>
{
// Function to generate breadcrumbs
const
generateBreadcrumbs
=
()
=>
{
const
pathname
=
router
.
asPath
;
// Only apply custom breadcrumbing for client-servicing pages
if
(
!
pathname
.
includes
(
'/client-servicings'
))
{
return
null
;
}
const
pathSegments
=
pathname
.
split
(
'/'
).
filter
(
segment
=>
segment
);
const
pathSegments
=
pathname
.
split
(
"/"
).
filter
((
segment
)
=>
segment
);
const
breadcrumbs
=
[];
// Create breadcrumb mapping for better display names
const
segmentNameMap
=
{
'client-servicing'
:
'Client Servicing'
,
// Virtual Finance Office section
'virtual-finance-office'
:
'Virtual Finance Office'
,
'virtual-cfo'
:
'Virtual CFO Services'
,
'virtual-fc'
:
'Virtual FC Services'
,
'book-closures-audit'
:
'Book Closure and Audit Support'
,
'apc'
:
'Accounting, Payroll & Compliance'
,
// Advisory Services section
'advisory-services'
:
'Advisory Services'
,
'transaction-advisory'
:
'Transaction Advisory'
,
'risk-advisory'
:
'Risk Advisory'
,
'business-advisory'
:
'Business Advisory'
,
// GCC as a Service
'global-capability-centres'
:
'GCC as a Service'
,
// Digital Transformation
'digital-transformation'
:
'Digital Transformation'
,
// Empowering Finance Consultants
'empowering-finance-consultants'
:
'Empowering Finance Consultants'
,
// Bespoke Services
'bespoke-services'
:
'Bespoke Services'
,
// Legacy mappings for existing pages
'cfo'
:
'Virtual CFO Services'
,
'ba'
:
'Business Advisory'
,
'ta'
:
'Transaction Advisory'
,
'ra'
:
'Risk Advisory'
};
// console.log(segmentNameMap, 'segmentNameMap');
// Build breadcrumbs from path segments
let
currentPath
=
''
;
pathSegments
.
forEach
((
segment
,
index
)
=>
{
currentPath
+=
`/
${
segment
}
`
;
const
displayName
=
segmentNameMap
[
segment
]
||
segment
.
replace
(
/-/g
,
' '
).
replace
(
/
\b\w
/g
,
l
=>
l
.
toUpperCase
());
// BLOG DETAILS PAGE
if
(
pathname
.
startsWith
(
"/blog/"
))
{
const
postSlug
=
pathSegments
[
1
]
||
""
;
const
postTitle
=
postSlug
.
replace
(
/-/g
,
" "
)
.
replace
(
/
\b\w
/g
,
(
l
)
=>
l
.
toUpperCase
());
breadcrumbs
.
push
({
name
:
displayName
,
url
:
currentPath
,
isLast
:
index
===
pathSegments
.
length
-
1
});
});
breadcrumbs
.
push
({
name
:
"Knowledge"
,
url
:
"/knowledge"
});
breadcrumbs
.
push
({
name
:
"Blog"
,
url
:
"/blog"
});
breadcrumbs
.
push
({
name
:
postTitle
,
url
:
""
,
isLast
:
true
});
return
breadcrumbs
;
};
return
breadcrumbs
;
}
// CLIENT SERVICING PAGES
if
(
pathname
.
includes
(
"/client-servicings"
))
{
const
segmentNameMap
=
{
"client-servicing"
:
"Client Servicing"
,
"virtual-finance-office"
:
"Virtual Finance Office"
,
"virtual-cfo"
:
"Virtual CFO Services"
,
"virtual-fc"
:
"Virtual FC Services"
,
"book-closures-audit"
:
"Book Closure and Audit Support"
,
"apc"
:
"Accounting, Payroll & Compliance"
,
"advisory-services"
:
"Advisory Services"
,
"transaction-advisory"
:
"Transaction Advisory"
,
"risk-advisory"
:
"Risk Advisory"
,
"business-advisory"
:
"Business Advisory"
,
"global-capability-centres"
:
"GCC as a Service"
,
"digital-transformation"
:
"Digital Transformation"
,
"empowering-finance-consultants"
:
"Empowering Finance Consultants"
,
"bespoke-services"
:
"Bespoke Services"
,
"cfo"
:
"Virtual CFO Services"
,
"ba"
:
"Business Advisory"
,
"ta"
:
"Transaction Advisory"
,
"ra"
:
"Risk Advisory"
,
};
let
currentPath
=
""
;
pathSegments
.
forEach
((
segment
,
index
)
=>
{
currentPath
+=
`/
${
segment
}
`
;
const
displayName
=
segmentNameMap
[
segment
]
||
segment
.
replace
(
/-/g
,
" "
).
replace
(
/
\b\w
/g
,
(
l
)
=>
l
.
toUpperCase
());
breadcrumbs
.
push
({
name
:
displayName
,
url
:
currentPath
,
isLast
:
index
===
pathSegments
.
length
-
1
,
});
});
const
clientServicingBreadcrumbs
=
generateClientServicingBreadcrumbs
();
return
breadcrumbs
;
}
console
.
log
(
clientServicingBreadcrumbs
,
'clientServicingBreadcrumbs'
);
// Default fallback
return
null
;
};
const
breadcrumbs
=
generateBreadcrumbs
();
return
(
<
Swiper
spaceBetween
=
{
30
}
pagination
=
{{
clickable
:
true
,
}}
breakpoints
=
{{
0
:
{
slidesPerView
:
1
,
},
768
:
{
slidesPerView
:
1
,
},
1200
:
{
slidesPerView
:
1
,
},
}}
autoplay
=
{{
delay
:
5000
,
disableOnInteraction
:
true
,
...
...
@@ -102,7 +87,6 @@ const PageBanner = ({ banners = [] }) => {
className
=
"page-banner-swiper"
>
{
banners
.
map
((
banner
,
index
)
=>
(
<
SwiperSlide
key
=
{
index
}
>
<
div
className
=
"page-title-area"
>
<
div
className
=
"image-wrapper"
>
...
...
@@ -110,7 +94,7 @@ const PageBanner = ({ banners = [] }) => {
src
=
{
banner
.
imageSrc
}
alt
=
{
banner
.
pageTitle
}
fill
style
=
{{
objectFit
:
"fill"
}}
// Replace objectFit prop
style
=
{{
objectFit
:
"fill"
}}
priority
className
=
"img-fluid postion-absolute"
/>
...
...
@@ -119,24 +103,22 @@ const PageBanner = ({ banners = [] }) => {
<
div
className
=
"page-title-content"
>
<
h2
>
{
banner
.
pageTitle
}
<
/h2
>
<
ul
>
{
clientServicingBreadcrumbs
?
(
// Custom breadcrumbs for client servicing pages
clientServicingBreadcrumbs
.
map
((
breadcrumb
,
breadcrumbIndex
)
=>
(
<
li
key
=
{
breadcrumbIndex
}
>
{
breadcrumb
.
isLast
?
(
{
breadcrumbs
?
(
breadcrumbs
.
map
((
breadcrumb
,
i
)
=>
(
<
li
key
=
{
i
}
>
{
breadcrumb
.
isLast
||
!
breadcrumb
.
url
?
(
breadcrumb
.
name
)
:
(
<>
<
Link
href
=
{
breadcrumb
.
url
}
>
{
breadcrumb
.
name
}
<
/Link
>
<
/
>
<
Link
href
=
{
breadcrumb
.
url
}
>
{
breadcrumb
.
name
}
<
/Link
>
)}
<
/li
>
))
)
:
(
// Default breadcrumbs for other pages
<>
<
li
>
<
Link
href
=
{
banner
.
homePageUrl
}
>
{
banner
.
homePageText
}
<
/Link
>
<
Link
href
=
{
banner
.
homePageUrl
}
>
{
banner
.
homePageText
}
<
/Link
>
<
/li
>
<
li
>
{
banner
.
activePageText
}
<
/li
>
<
/
>
...
...
container/Career/CareerPage.js
View file @
f174945
...
...
@@ -45,7 +45,7 @@ const Careers = ({ CareerPage }) => {
day
.
Start
your
journey
with
us
by
browsing
available
jobs
.
<
/p
>
<
Link
href
=
"https://advith
consulting
.zohorecruit.in/careers"
href
=
"https://advith.zohorecruit.in/careers"
target
=
"_blank"
>
<
button
className
=
"default-btn mt-4"
>
...
...
pages/blog/[slug]/index.js
View file @
f174945
...
...
@@ -17,8 +17,8 @@ const details = ({ blog ,conversionData }) => {
{
imageSrc
:
"/images/banner/knowledge.webp"
,
pageTitle
:
"Blogs"
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
blog
"
,
homePageText
:
"
Blogs
"
,
activePageText
:
blog
[
0
]?.
Title
||
"Default Title"
,
},
];
...
...
@@ -75,13 +75,13 @@ const details = ({ blog ,conversionData }) => {
<
/div
>
<
div
className
=
"article-footer"
>
{
/*
<div className="article-footer">
<div className="article-tags">
<Link href="/blog">Consulting</Link>
<Link href="/blog">Business</Link>
<Link href="/blog">Market</Link>
</div>
<
/div
>
</div>
*/
}
<
/div
>
<
/div
>
...
...
pages/blog/index.js
View file @
f174945
...
...
@@ -39,8 +39,8 @@ const blogs = ({Blogpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
Blogpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
Blogpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Hom
e"
,
homePageUrl
:
"/
knowledge
"
,
homePageText
:
"
Knowledg
e"
,
activePageText
:
"Blogs"
,
},
];
...
...
pages/client-servicing/advisory-services/index.js
View file @
f174945
...
...
@@ -24,8 +24,8 @@ const ClientServicingPage = ({ AdvisoryPage, conversionData }) => {
{
imageSrc
:
cleanImage
(
AdvisoryPage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
AdvisoryPage
?.
Banner
?.
Heading
,
homePageUrl
:
"/
"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
AdvisoryPage
?.
Banner
?.
Heading
,
Description
:
AdvisoryPage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/ba.js
View file @
f174945
...
...
@@ -16,8 +16,8 @@ const banners = [
{
imageSrc
:
"/images/banner/business_advisory.webp "
,
pageTitle
:
"Business Advisory "
,
homePageUrl
:
"/client-servicing
"
,
homePageText
:
"Client Servicing
"
,
homePageUrl
:
"/client-servicing/advisory-services
"
,
homePageText
:
"Advisory Services
"
,
activePageText
:
"Business Advisory "
,
},
// Add more banners as needed
...
...
pages/client-servicing/bespoke.js
View file @
f174945
...
...
@@ -27,8 +27,8 @@ const Bespoke = ({ Empoweringpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
Empoweringpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
Empoweringpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
Empoweringpage
?.
Banner
?.
Heading
,
Description
:
Empoweringpage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/digital-transformation.js
View file @
f174945
...
...
@@ -27,8 +27,8 @@ const DigitalTransformation = ({ Digitalpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
Digitalpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
Digitalpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
Digitalpage
?.
Banner
?.
Heading
,
Description
:
Digitalpage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/empowering-finance-consultants.js
View file @
f174945
...
...
@@ -29,8 +29,8 @@ const EmpoweringFinanceConsultants = ({ Empoweringpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
Empoweringpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
Empoweringpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/
"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
Empoweringpage
?.
Banner
?.
Heading
,
Description
:
Empoweringpage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/global-capability-centres.js
View file @
f174945
...
...
@@ -24,8 +24,8 @@ const clientservicecfo = ({ gccpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
gccpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
gccpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
"GCC as a Service"
,
Description
:
gccpage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/ra.js
View file @
f174945
...
...
@@ -18,8 +18,8 @@ const banners = [
{
imageSrc
:
"/images/banner/risk_advisory.webp"
,
pageTitle
:
" Risk Advisory"
,
homePageUrl
:
"/client-servicing
"
,
homePageText
:
"Client Servicing
"
,
homePageUrl
:
"/client-servicing/advisory-services
"
,
homePageText
:
"Advisory Services
"
,
activePageText
:
"Risk Advisory"
,
},
// Add more banners as needed
...
...
pages/client-servicing/ta.js
View file @
f174945
...
...
@@ -32,8 +32,8 @@ const TaPage = ({ tapage, conversionData }) => {
{
imageSrc
:
cleanImage
(
tapage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
tapage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
client-servicing/advisory-services
"
,
homePageText
:
"
Advisory Services
"
,
activePageText
:
tapage
?.
Banner
?.
Heading
,
},
// Add more banners as needed
...
...
pages/client-servicing/virtual-finance-office/apc.js
View file @
f174945
...
...
@@ -26,8 +26,8 @@ const clientserviceapc = ({ apcpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
apcpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
apcpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/
"
,
homePageText
:
"
Hom
e"
,
homePageUrl
:
"/client-servicing/virtual-finance-office
"
,
homePageText
:
"
Virtual Finance Offic
e"
,
activePageText
:
apcpage
?.
Banner
?.
Heading
,
},
];
...
...
pages/client-servicing/virtual-finance-office/book-closures-audit.js
View file @
f174945
...
...
@@ -21,8 +21,8 @@ const bookclosures = ({ bookclosurepage, conversionData }) => {
{
imageSrc
:
cleanImage
(
bookclosurepage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
bookclosurepage
?.
Banner
?.
Heading
,
homePageUrl
:
"/
"
,
homePageText
:
"
Hom
e"
,
homePageUrl
:
"/client-servicing/virtual-finance-office
"
,
homePageText
:
"
Virtual Finance Offic
e"
,
activePageText
:
bookclosurepage
?.
Banner
?.
Heading
,
},
];
...
...
pages/client-servicing/virtual-finance-office/index.js
View file @
f174945
...
...
@@ -25,8 +25,8 @@ const VirtualFinanceOfficePage = ({ ClientPage, conversionData, title }) => {
{
imageSrc
:
cleanImage
(
ClientPage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
ClientPage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Home
"
,
homePageUrl
:
"/
client-servicing
"
,
homePageText
:
"
Client Servicing
"
,
activePageText
:
ClientPage
?.
Banner
?.
Heading
,
Description
:
ClientPage
?.
Banner
?.
Description
,
},
...
...
pages/client-servicing/virtual-finance-office/virtual-cfo.js
View file @
f174945
...
...
@@ -23,8 +23,8 @@ const clientservicecfo = ({ cfopage, conversionData }) => {
{
imageSrc
:
cleanImage
(
cfopage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
cfopage
?.
Banner
?.
Heading
,
homePageUrl
:
"/"
,
homePageText
:
"
Hom
e"
,
homePageUrl
:
"/
client-servicing/virtual-finance-office
"
,
homePageText
:
"
Virtual Finance Offic
e"
,
activePageText
:
cfopage
?.
Banner
?.
Heading
,
},
...
...
pages/client-servicing/virtual-finance-office/virtual-fc.js
View file @
f174945
...
...
@@ -25,8 +25,8 @@ const clientservicefc = ({ fcpage, conversionData }) => {
{
imageSrc
:
cleanImage
(
fcpage
?.
Banner
?.
Image
?.
url
),
pageTitle
:
fcpage
?.
Banner
?.
Heading
,
homePageUrl
:
"/
"
,
homePageText
:
"
Hom
e"
,
homePageUrl
:
"/client-servicing/virtual-finance-office
"
,
homePageText
:
"
Virtual Finance Offic
e"
,
activePageText
:
fcpage
?.
Banner
?.
Heading
,
},
];
...
...
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