Skip to content

Commit 9ed1e8b

Browse files
committed
made some tweeks to card
1 parent dc9a718 commit 9ed1e8b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

frontend/src/components/postCard.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,25 @@ export const PostCard: React.FC<PostPreview> = ({
2727
}) => {
2828
return (
2929
<div>
30-
<div className="bg-gradient-to-br from-gray-100 via-gray-100 to-white shadow rounded-2xl h-auto w-96 p-4 flex flex-col justify-around">
31-
<img className="rounded-md" src={backgroundlink} alt={title} />
32-
<p className="w-wuto h-auto text-lg font-extrabold text-center text-gray-800">
30+
<div className="bg-gradient-to-br from-gray-100 via-gray-100 to-white shadow rounded-3xl
31+
h-auto max-w-sm p-4 flex flex-col justify-around"
32+
>
33+
<img className="rounded-3xl" src={backgroundlink} alt={title} />
34+
<p className="w-full h-auto py-2 text-lg font-extrabold text-center text-gray-800">
3335
{title}
3436
</p>
3537
<div className="h-16 flex flex-row w-full justify-between">
3638
<div className="flex flex-row items-stretch justify-center w-auto py-2.5 px-0 pr-1 bg-gray-200 rounded-full">
3739
<img
38-
className="mx-4 w-12 h-12 rounded-full self-center"
40+
className="mx-2 w-12 h-12 rounded-full self-center"
3941
src={author.picture}
4042
alt={"Image of " + author.name}
4143
/>
42-
<p className="flex-1 py-2 h-full text-lg font-semibold text-gray-800 whitespace-nowrap self-center">
44+
<p className="flex-1 py-2 pr-2 h-full text-lg font-semibold text-gray-800 whitespace-nowrap self-center">
4345
{author.name}
4446
</p>
4547
</div>
46-
<div className="w-16 h-16 bg-gray-800 rounded-full flex justify-center items-center shadow-md self-end">
48+
<div className="w-16 h-16 bg-gray-800 rounded-full flex justify-center items-center shadow-md self-end mr-4">
4749

4850
<LaterSvg/>
4951
</div>

0 commit comments

Comments
 (0)