File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,13 @@ module FeatureCard = {
132
132
~firstParagraph : string = "" ,
133
133
~slug : string ,
134
134
) => {
135
- let authorImg = <img className = "h-full w-full rounded-full" src = author .imgUrl />
136
-
135
+ let authorImg = switch author .imgUrl {
136
+ | "" => React .null
137
+ | imgUrl =>
138
+ <div className = "inline-block w-4 h-4 mr-2" >
139
+ <img className = "h-full w-full rounded-full" src = imgUrl />
140
+ </div >
141
+ }
137
142
<section
138
143
className = "flex sm:px-4 md:px-8 lg:px-0 flex-col justify-end lg:flex-row sm:items-center h-full" >
139
144
<div
@@ -166,7 +171,7 @@ module FeatureCard = {
166
171
<h2 className = "hl-1" > {React .string (title )} </h2 >
167
172
<div className = "mb-6" >
168
173
<div className = "flex items-center body-sm text-gray-40 mt-2 mb-5" >
169
- < div className = "inline-block w-4 h-4 mr-2" > authorImg </ div >
174
+ authorImg
170
175
<div >
171
176
<a
172
177
className = "hover:text-gray-60"
Original file line number Diff line number Diff line change @@ -13,21 +13,21 @@ let authors = [
13
13
username : "hongbo" ,
14
14
fullname : "Hongbo Zhang" ,
15
15
role : "Compiler & Build System" ,
16
- imgUrl : "https://pbs.twimg.com/profile_images/1369548222314598400/E2y46vrB_400x400.jpg " ,
16
+ imgUrl : "" ,
17
17
social : X ("bobzhang1988" ),
18
18
},
19
19
{
20
20
username : "chenglou" ,
21
21
fullname : "Cheng Lou" ,
22
22
role : "Syntax & Tools" ,
23
- imgUrl : "https://pbs.twimg.com/profile_images/554199709909131265/Y5qUDaCB_400x400.jpeg " ,
23
+ imgUrl : "" ,
24
24
social : X ("_chenglou" ),
25
25
},
26
26
{
27
27
username : "maxim" ,
28
28
fullname : "Maxim Valcke" ,
29
29
role : "Syntax Lead" ,
30
- imgUrl : "https://pbs.twimg.com/profile_images/970271048812974080/Xrr8Ob6J_400x400.jpg " ,
30
+ imgUrl : "" ,
31
31
social : X ("_binary_search" ),
32
32
},
33
33
{
You can’t perform that action at this time.
0 commit comments