Skip to content

Commit 6c5c495

Browse files
committed
Adding the purgeble edited file
1 parent 81b8f36 commit 6c5c495

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

pages/blog/index.page.tsx

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -301,31 +301,20 @@ export default function StaticMarkdownPage({
301301
>
302302
<div className='flex flex-row pl-2 mr-2'>
303303
{(frontmatter.authors || []).map(
304-
(author: Author, index: number) => {
305-
const sizeClass =
306-
frontmatter.authors.length > 2
307-
? 'h-8 w-8'
308-
: 'h-11 w-11';
309-
310-
return (
311-
<div
312-
key={index}
313-
className={`
314-
bg-slate-50
315-
rounded-full
316-
-ml-3
317-
bg-cover
318-
bg-center
319-
border-2
320-
border-white
321-
${sizeClass}`}
322-
style={{
323-
backgroundImage: `url(${author.photo})`,
324-
zIndex: 10 - index,
325-
}}
326-
/>
327-
);
328-
},
304+
(author: Author, index: number) => (
305+
<div
306+
key={index}
307+
className={`bg-slate-50 rounded-full -ml-3 bg-cover bg-center border-2 border-white ${
308+
frontmatter.authors.length > 2
309+
? 'h-8 w-8'
310+
: 'h-11 w-11'
311+
}`}
312+
style={{
313+
backgroundImage: `url(${author.photo})`,
314+
zIndex: 10 - index,
315+
}}
316+
/>
317+
),
329318
)}
330319
</div>
331320

0 commit comments

Comments
 (0)