File tree Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import React from "react" ;
4
4
import Link from "next/link" ;
5
- import { usePathname } from "next/navigation" ;
6
5
import clsx from "clsx" ;
6
+ import { usePathname } from "next/navigation" ;
7
+
7
8
import { MotionDiv , MotionLi } from "@/lib/framer/client" ;
8
9
9
10
import MobileMenu from "./MobileMenu.component" ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
112
112
{ name }
113
113
</ a >
114
114
) : (
115
- < Link href = { href } data-testid = { `mobil-${ name } ` } >
115
+ < Link href = { href } data-testid = { `mobil-${ name } ` } prefetch = { true } >
116
116
{ name }
117
117
</ Link >
118
118
) }
Original file line number Diff line number Diff line change @@ -23,22 +23,24 @@ const ProsjektCard: React.FC<ProjectProps> = ({
23
23
urlgithub,
24
24
} ) => {
25
25
return (
26
- < div className = "bg-slate-700 shadow-md rounded-lg overflow-hidden" >
26
+ < div className = "bg-slate-700 shadow-md rounded-lg overflow-hidden mx-4 md:m-0 " >
27
27
< div className = "relative w-full h-48 md:h-60" >
28
- < div className = "w-full h-full p-5 pb-[50px] relative overflow-hidden flex justify-center md:w-[750px] md:h-[350px]" >
29
- < Image
30
- className = "flex justify-center text-center"
31
- width = "600"
32
- height = "300"
33
- quality = { 100 }
34
- src = { urlFor ( projectimage ) . url ( ) as string }
35
- alt = { name }
36
- priority
37
- unoptimized
38
- />
28
+ < div className = "w-full h-full p-5 md:pb-[50px] relative overflow-hidden flex justify-center md:w-[750px] md:h-[350px]" >
29
+ { projectimage && (
30
+ < Image
31
+ className = "flex justify-center text-center"
32
+ width = "600"
33
+ height = "350"
34
+ quality = { 100 }
35
+ src = { urlFor ( projectimage ) . url ( ) as string }
36
+ alt = { name }
37
+ priority
38
+ unoptimized
39
+ />
40
+ ) }
39
41
</ div >
40
42
</ div >
41
- < div className = "mt-12 p-2 flex flex-col justify-between min-h-[250px] xl:min-h-[275px]" >
43
+ < div className = "md: mt-12 p-2 flex flex-col justify-between min-h-[250px] xl:min-h-[275px]" >
42
44
< div >
43
45
< h1 className = "xl:mt-4 text-xl text-center font-bold py-2 text-slate-200" >
44
46
{ name }
You can’t perform that action at this time.
0 commit comments