@@ -16,7 +16,7 @@ export default function ProjectItem({ repo, index }: ProjectItemProps) {
16
16
return (
17
17
< motion . div
18
18
ref = { ref }
19
- key = { repo . id }
19
+ key = { repo . documentId }
20
20
className = { `flex flex-col items-center justify-between gap-12 text-center sm:flex-row sm:text-left ${
21
21
index % 2 === 0 ? "sm:flex-row-reverse" : ""
22
22
} `}
@@ -32,18 +32,18 @@ export default function ProjectItem({ repo, index }: ProjectItemProps) {
32
32
animate = { { y : 0 , opacity : 1 } }
33
33
transition = { { duration : 0.3 } }
34
34
>
35
- { repo . attributes . name }
35
+ { repo . name }
36
36
</ motion . h1 >
37
37
< motion . p
38
38
className = "mb-6 max-w-2xl font-light text-gray-500 dark:text-gray-400 md:text-lg lg:mb-8 lg:text-xl"
39
39
initial = { { y : - 50 , opacity : 0 } }
40
40
animate = { { y : 0 , opacity : 1 } }
41
41
transition = { { duration : 0.3 } }
42
42
>
43
- { repo . attributes . description }
43
+ { repo . description }
44
44
</ motion . p >
45
45
< div className = "flex justify-center sm:justify-start" >
46
- < a href = { repo . attributes . repository_url } target = "_blank" rel = "noreferrer" >
46
+ < a href = { repo . repository_url } target = "_blank" rel = "noreferrer" >
47
47
< ProjectButton title = "Repository" />
48
48
</ a >
49
49
</ div >
@@ -57,8 +57,8 @@ export default function ProjectItem({ repo, index }: ProjectItemProps) {
57
57
transition = { { duration : 0.3 } }
58
58
>
59
59
< Image
60
- alt = { `${ repo . attributes . name } project image` }
61
- src = { repo . attributes . banner_url }
60
+ alt = { `${ repo . name } project image` }
61
+ src = { repo . banner_url }
62
62
className = "mx-auto hidden rounded-xl object-cover sm:block"
63
63
height = { 500 }
64
64
width = { 1000 }
0 commit comments