Skip to content

Commit 8b1b3ed

Browse files
phoouzeourai
authored andcommitted
feat: Bounty 列表页优化(#2)
1 parent 78b4f29 commit 8b1b3ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/bounties/Card.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ export function BountiesCard({ data }) {
2828
return (
2929
<Link
3030
href={`/bounties/${data.id}`}
31-
className="group flex flex-col relative cursor-pointer overflow-hidden rounded-2xl bg-white py-4 transition-shadow hover:shadow-lg [&>div]:px-4"
31+
className={`
32+
group flex flex-col relative cursor-pointer overflow-hidden rounded-2xl
33+
bg-gradient-to-b ${
34+
data.status === 3 ? "from-[#E5E5FE] to-[#FFFFFF]" : "bg-white"
35+
}
36+
py-4 transition-all duration-300 ease-in-out hover:shadow-lg hover:-translate-y-2 [&>div]:px-4
37+
`}
3238
>
3339
<div>
3440
<h5 className="mb-2 text-lg line-clamp-2">

0 commit comments

Comments
 (0)