Spaces:
Runtime error
Runtime error
~card UI
Browse files- components/card.jsx +7 -4
components/card.jsx
CHANGED
@@ -43,11 +43,11 @@ const Card = ({
|
|
43 |
|
44 |
return (
|
45 |
<div className="flex flex-col">
|
46 |
-
<a href={spaceUrl} target="_blank" rel="noopener noreferrer">
|
47 |
<div className="text-sm truncate px-2 py-1 w-full font-bold text-clip">
|
48 |
{emoji} {title}
|
49 |
</div>
|
50 |
-
</a>
|
51 |
|
52 |
<a href={spaceUrl} target="_blank" rel="noopener noreferrer">
|
53 |
<div
|
@@ -79,8 +79,11 @@ const Card = ({
|
|
79 |
<span className="text-white text-sm">{likes}</span>
|
80 |
</div>
|
81 |
</div>
|
82 |
-
<div className="flex items-center h-full">
|
83 |
-
<
|
|
|
|
|
|
|
84 |
{description}
|
85 |
</p>
|
86 |
</div>
|
|
|
43 |
|
44 |
return (
|
45 |
<div className="flex flex-col">
|
46 |
+
{/* <a href={spaceUrl} target="_blank" rel="noopener noreferrer">
|
47 |
<div className="text-sm truncate px-2 py-1 w-full font-bold text-clip">
|
48 |
{emoji} {title}
|
49 |
</div>
|
50 |
+
</a> */}
|
51 |
|
52 |
<a href={spaceUrl} target="_blank" rel="noopener noreferrer">
|
53 |
<div
|
|
|
79 |
<span className="text-white text-sm">{likes}</span>
|
80 |
</div>
|
81 |
</div>
|
82 |
+
<div className="flex items-center h-full flex-col gap-2 p-4 w-full">
|
83 |
+
<div className="text-white text-center text-xl truncate px-2 py-1 w-full font-bold text-clip overflow-hidden">
|
84 |
+
{emoji} {title}
|
85 |
+
</div>
|
86 |
+
<p className="text-white text-base text-center font-medium text-ellipsis overflow-hidden">
|
87 |
{description}
|
88 |
</p>
|
89 |
</div>
|