category , subcategory, product url changes
This commit is contained in:
19
app/category/[name]/page.jsx
Normal file
19
app/category/[name]/page.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import FaqCard from '@/components/common-components/FaqCard'
|
||||
import SubcategoryList from '@/components/category/SubcategoryList'
|
||||
import CategoryHero from '@/components/siddha-mala/categoryHero'
|
||||
|
||||
export const metadata = {
|
||||
title: 'Buy Gupta Siddha mala(1 to 14 mukhi) 100% X-Ray Certified Authentic',
|
||||
description: "Generated by create next app",
|
||||
}
|
||||
|
||||
const Page = ({params}) => {
|
||||
return (
|
||||
<div>
|
||||
<CategoryHero params={params}/>
|
||||
<SubcategoryList params={params}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Page
|
||||
21
app/category/[name]/subcategory/[subcategory]/page.jsx
Normal file
21
app/category/[name]/subcategory/[subcategory]/page.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import FaqCard from '@/components/common-components/FaqCard'
|
||||
import CollectionList from '@/components/subcategory/CollectionList'
|
||||
import SubcategoryHero from '@/components/subcategory/SubcategoryHero'
|
||||
|
||||
export const metadata = {
|
||||
title: 'Subcategory Collections - Gupta Rudraksha',
|
||||
description: "Browse collections in this subcategory",
|
||||
}
|
||||
|
||||
const SubcategoryPage = ({params}) => {
|
||||
console.log("Sub category is ", params)
|
||||
return (
|
||||
<div>
|
||||
<SubcategoryHero params={params}/>
|
||||
<CollectionList params={params}/>
|
||||
<FaqCard params={params}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default SubcategoryPage
|
||||
Reference in New Issue
Block a user