File tree Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Expand file tree Collapse file tree 2 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
1
import PageNavbar from "@/components/PageNavbar" ;
2
- import Image from "next/image" ;
3
2
import { twMerge } from "tailwind-merge" ;
4
3
import Consultation from "../../../components/Consultation" ;
5
4
import Pointers from "../../../components/Pointers" ;
@@ -42,22 +41,6 @@ export default async function Page({
42
41
mobile = { pageData . heroSection . images . mobile }
43
42
alt = 'Digital ventures image'
44
43
/>
45
- < div className = "mt-10 mb-12 lg:mt-12 pl-[7vw]" >
46
- < Image
47
- className = "hidden max-w-full rounded-l-full lg:block"
48
- width = { 1920 }
49
- height = { 599 }
50
- src = { pageData . heroSection . images . desktop }
51
- alt = "Digital ventures image"
52
- />
53
- < Image
54
- className = "block max-w-full rounded-l-full lg:hidden"
55
- width = { 800 }
56
- height = { 517 }
57
- src = { pageData . heroSection . images . mobile }
58
- alt = "Digital ventures image"
59
- />
60
- </ div >
61
44
< h4 className = "block max-w-[50rem] -mb-16 font-light text-xl container-padding lg:hidden" >
62
45
{ pageData . heroSection . description }
63
46
</ h4 >
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ import { blogsPageData, caseStudiesData } from "@/data";
3
3
import Link from "next/link" ;
4
4
import { notFound } from "next/navigation" ;
5
5
6
+ export async function generateStaticParams ( ) {
7
+ const allTags = [
8
+ ...Object . values ( blogsPageData ) . flatMap ( ( blog ) => blog . tags ) ,
9
+ ...Object . values ( caseStudiesData ) . flatMap ( ( caseStudy ) => caseStudy . services ) ,
10
+ ] ;
11
+
12
+ const uniqueTags = Array . from (
13
+ new Set ( allTags . map ( ( tag ) => tag . id ) )
14
+ ) ;
15
+
16
+ return uniqueTags . map ( ( id ) => ( { slug : id } ) ) ;
17
+ }
18
+
6
19
export default async function Page ( {
7
20
params,
8
21
} : {
You can’t perform that action at this time.
0 commit comments