File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
RiFacebookFill ,
14
14
RiLinkedinFill ,
15
15
RiDiscordFill ,
16
+ RiLink ,
16
17
} from "react-icons/ri" ;
17
18
18
19
type AuthorData = {
@@ -115,6 +116,7 @@ const SOCIAL_ICONS: { [key: string]: any } = {
115
116
facebook : RiFacebookFill ,
116
117
linkedin : RiLinkedinFill ,
117
118
discord : RiDiscordFill ,
119
+ link : RiLink ,
118
120
} ;
119
121
120
122
// **Async page component**
@@ -191,23 +193,23 @@ function AuthorArticles({ articles }: { articles: ArticleData[] }) {
191
193
return (
192
194
< div className = "grid md:grid-cols-2" >
193
195
{ articles . map ( ( article ) => (
194
- < article className = "flex items-center gap-2 md:gap-12 p-8 border border-white" key = { article . uid } >
196
+ < article className = "flex flex-col sm:flex-row items-start sm:items- center gap-4 md:gap-12 p-8 border border-white" key = { article . uid } >
195
197
< Link href = { `/posts/${ article . slug } ` } className = "flex-shrink-0" >
196
198
< img
197
- className = "h-[150px] w-[150px] object-cover hover:scale-105 transition-transform"
199
+ className = "h-[100px] w-[100px] sm:h-[ 150px] sm: w-[150px] object-cover hover:scale-105 transition-transform "
198
200
src = { article . img }
199
201
alt = { article . title }
200
202
/>
201
203
</ Link >
202
204
203
205
< div >
204
- < p className = "heading3-title pb-4" >
206
+ < p className = "heading3-title pb-2 sm:pb- 4" >
205
207
< Link href = { `/posts/${ article . slug } ` } className = "hover:text-white transition-colors" >
206
208
{ article . title }
207
209
</ Link >
208
210
</ p >
209
211
210
- < div className = "flex flex-wrap gap-4" >
212
+ < div className = "flex flex-wrap gap-2 sm:gap- 4" >
211
213
< div className = "flex items-center" >
212
214
< p className = "font-semibold pr-2" > Date:</ p >
213
215
< time dateTime = { article . date . toISOString ( ) } className = "text-white" >
You can’t perform that action at this time.
0 commit comments