From ff25d0c663a790e17d73ed489147f4e44e4816b9 Mon Sep 17 00:00:00 2001 From: Ayush Gupta <75483021+ayush035@users.noreply.github.com> Date: Tue, 28 Feb 2023 02:52:40 +0530 Subject: [PATCH 01/39] main --- web/components/Navbar.js | 30 +++++++++++++++++++++++------- web/pages/fund/index.js | 15 +++++++++------ web/pages/index.js | 13 ++++++++----- web/pages/manage/index.js | 12 ++++++++++-- web/pages/purchase.js | 9 +++++++-- 5 files changed, 57 insertions(+), 22 deletions(-) diff --git a/web/components/Navbar.js b/web/components/Navbar.js index 3292efa..ebc2b8a 100644 --- a/web/components/Navbar.js +++ b/web/components/Navbar.js @@ -9,14 +9,30 @@ export default function Navbar() { const { currentUser, logOut, logIn } = useAuth(); return ( -
- Home - Create Grant - Manage - Fund +
+ + + ); } \ No newline at end of file diff --git a/web/pages/fund/index.js b/web/pages/fund/index.js index 5033c09..6b28472 100644 --- a/web/pages/fund/index.js +++ b/web/pages/fund/index.js @@ -91,7 +91,10 @@ export default function Home() {
+

Your Registered Grants

+
+ {<> @@ -143,7 +146,7 @@ export default function Home() {
+ className="block max-w-sm rounded-lg bg-white shadow-lg dark:bg-neutral-800" key={idx}> {di.name} -

+

By {di.owner}

-

+

{di.bio.slice(0,64)}...

- setAmount(e.target.value)} />
+ +

Your Registered Grants

+
{!isInitialized ? ( <> -

Your account has not been initialized yet

- +
+

Account not logged in!

+
+
+ +
+
) : (
diff --git a/web/pages/purchase.js b/web/pages/purchase.js index 22dded0..281c1ab 100644 --- a/web/pages/purchase.js +++ b/web/pages/purchase.js @@ -139,8 +139,13 @@ export default function Purchase() { {!isInitialized ? ( <> -

Your account has not been initialized yet

- +
+

Account not logged in!

+
+
+ +
+
) : (
From ff1412861db00abfcde8b54b17ec086925846e98 Mon Sep 17 00:00:00 2001 From: Ayush Gupta <75483021+ayush035@users.noreply.github.com> Date: Tue, 28 Feb 2023 15:27:55 +0530 Subject: [PATCH 02/39] main --- web/components/Navbar.js | 27 +++++++++++++++------------ web/styles/Home.module.css | 2 +- web/styles/Manage.module.css | 2 +- web/styles/ManageGrant.module.css | 2 +- web/styles/Navbar.module.css | 2 +- web/styles/Purchase.module.css | 2 +- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/web/components/Navbar.js b/web/components/Navbar.js index ebc2b8a..6c57904 100644 --- a/web/components/Navbar.js +++ b/web/components/Navbar.js @@ -9,30 +9,33 @@ export default function Navbar() { const { currentUser, logOut, logIn } = useAuth(); return ( -