File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
src/components/global/automations/post Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ const nextConfig = {
14
14
protocol : 'https' ,
15
15
hostname : 'img.icons8.com' ,
16
16
} ,
17
+ {
18
+ protocol : 'https' ,
19
+ hostname : 'scontent-iad3-2.cdninstagram.com' ,
20
+ } ,
17
21
] ,
18
22
} ,
19
23
} ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const PostNode = ({ id }: Props) => {
15
15
return (
16
16
data ?. data &&
17
17
data . data . posts . length > 0 && (
18
- < div className = "w-10/12 lg:w-8/12 relative xl:w-4/12 p-5 rounded-xl flex flex-col bg-[#1D1D1D ] gap-y-3" >
18
+ < div className = "w-10/12 lg:w-8/12 relative xl:w-4/12 p-5 rounded-xl flex flex-col bg-[#F6F7F9 ] gap-y-3" >
19
19
< div className = "absolute h-20 left-1/2 bottom-full flex flex-col items-center z-50" >
20
20
< span className = "h-[9px] w-[9px] bg-black rounded-full" />
21
21
< Separator
@@ -28,7 +28,7 @@ const PostNode = ({ id }: Props) => {
28
28
< Warning />
29
29
If they comment on...
30
30
</ div >
31
- < div className = "bg-background-80 p-3 rounded-xl flex flex-col gap-y-2" >
31
+ < div className = "bg-[#ededef] p-3 rounded-xl flex flex-col gap-y-2" >
32
32
< div className = "flex gap-x-2 items-center" >
33
33
< InstagramBlue />
34
34
< p className = "font-bold text-lg" > These posts</ p >
@@ -39,7 +39,17 @@ const PostNode = ({ id }: Props) => {
39
39
key = { post . id }
40
40
className = "relative w-4/12 aspect-square rounded-lg cursor-pointer overflow-hidden"
41
41
>
42
- < Image fill sizes = "100vw" src = { post . media } alt = "post image" />
42
+ { post . mediaType === "VIDEO" ? (
43
+ < video
44
+ className = "w-full h-full object-cover"
45
+ src = { post . media }
46
+ muted
47
+ loop
48
+ playsInline
49
+ />
50
+ ) : (
51
+ < Image fill sizes = "100vw" src = { post . media } alt = "post media" />
52
+ ) }
43
53
</ div >
44
54
) ) }
45
55
</ div >
You can’t perform that action at this time.
0 commit comments