From d574a29bf97e670296fd0f8f301a0710474f75ca Mon Sep 17 00:00:00 2001 From: Pablo Alayeto <55535804+Pabl0cks@users.noreply.github.com> Date: Sat, 2 Mar 2024 20:07:26 +0100 Subject: [PATCH] Completed grants cards new design and section bg color (#57) --- .../app/_components/CompletedGrants.tsx | 51 ++++++++++-------- .../public/assets/eth-completed-grant.png | Bin 0 -> 682 bytes packages/nextjs/tailwind.config.js | 3 ++ 3 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 packages/nextjs/public/assets/eth-completed-grant.png diff --git a/packages/nextjs/app/_components/CompletedGrants.tsx b/packages/nextjs/app/_components/CompletedGrants.tsx index 751976b..56fced9 100644 --- a/packages/nextjs/app/_components/CompletedGrants.tsx +++ b/packages/nextjs/app/_components/CompletedGrants.tsx @@ -5,29 +5,34 @@ import { GrantData } from "~~/services/database/schema"; const CompletedGrantCard = ({ title, description, askAmount, builder, link, completedAt }: GrantData) => { return ( -
-
- - Learn more - - {completedAt && ( -

- {new Date(completedAt).toLocaleDateString()} -

- )} -

{title}

+
+
+
+ ETH Icon + {askAmount} ETH +
+ {completedAt ? new Date(completedAt).toLocaleDateString() : ""} +
+
+

{title}

-
-
-

- {askAmount} ETH -

-

{description}

+
+
+
+
+
+

{description}

+
+
); @@ -37,7 +42,7 @@ export const CompletedGrants = async ({ limit }: { limit?: number }) => { const completedGrants = await getAllCompletedGrants(limit); return ( -
+

Completed grants

diff --git a/packages/nextjs/public/assets/eth-completed-grant.png b/packages/nextjs/public/assets/eth-completed-grant.png new file mode 100644 index 0000000000000000000000000000000000000000..1be90dd90375796ffd480a8c2e16362cc0a33f4b GIT binary patch literal 682 zcmV;b0#*HqP)H_+Kb*^`iWyuTt%^M5{~wUo!bL&3phHVZoQ&+>8wQASgbegfFcvXSlF4B)2ZS zVo#S4-f&ulm1+sQJ2bAb%7 literal 0 HcmV?d00001 diff --git a/packages/nextjs/tailwind.config.js b/packages/nextjs/tailwind.config.js index e62eb35..ebe53d0 100644 --- a/packages/nextjs/tailwind.config.js +++ b/packages/nextjs/tailwind.config.js @@ -71,6 +71,9 @@ module.exports = { }, theme: { extend: { + colors: { + customBlue: '#D5DAFF', + }, boxShadow: { center: "0 0 12px -2px rgb(0 0 0 / 0.05)", },