From 1c4551e15dc741bca813b43fe9f7e854b901b3e7 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Fri, 30 Aug 2024 11:23:05 +0700 Subject: [PATCH 1/5] feat: Add second carousel --- src/app/invest/page.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/invest/page.tsx b/src/app/invest/page.tsx index af9232e..c880fca 100644 --- a/src/app/invest/page.tsx +++ b/src/app/invest/page.tsx @@ -23,7 +23,7 @@ export default function Invest() { return () => clearTimeout(timer); }, []); return ( -
+
logo @@ -82,6 +82,17 @@ export default function Invest() {
+ + + {Array.from({ length: 5 }).map((_, index) => ( + + + + ))} + + + +
); } From 612d99a23609b8c7fe77c44ce4c8b8ffad56d072 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 31 Aug 2024 15:53:22 +0700 Subject: [PATCH 2/5] chore: Fix the carousel's type error bug --- src/app/invest/page.tsx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/app/invest/page.tsx b/src/app/invest/page.tsx index c880fca..d214b01 100644 --- a/src/app/invest/page.tsx +++ b/src/app/invest/page.tsx @@ -45,7 +45,7 @@ export default function Invest() { {Array.from({ length: 5 }).map((_, index) => ( - + ))} @@ -82,15 +82,24 @@ export default function Invest() { - - - {Array.from({ length: 5 }).map((_, index) => ( - - - - ))} - - + + + {/* boiler plate for an actual pictures */} + + + + + + + + + + + + + + + From dfe72a55f0a60e06cb23dbdcb90178d7091eac0f Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 31 Aug 2024 16:10:19 +0700 Subject: [PATCH 3/5] chore: Update Invest page with additional carousel and tab functionality --- src/app/invest/page.tsx | 184 ++++++++++++++++++++++++---------------- 1 file changed, 111 insertions(+), 73 deletions(-) diff --git a/src/app/invest/page.tsx b/src/app/invest/page.tsx index d214b01..4386a4b 100644 --- a/src/app/invest/page.tsx +++ b/src/app/invest/page.tsx @@ -17,91 +17,129 @@ import { Button } from "@/components/ui/button"; export default function Invest() { const [progress, setProgress] = useState(0); + const [tab, setTab] = useState(""); + const handleClick = (item: string) => { + setTab(item); + }; useEffect(() => { // percent success const timer = setTimeout(() => setProgress(66), 500); return () => clearTimeout(timer); }, []); return ( -
-
-
- logo -

NVIDIA

-
-

World's first non-metal sustainable battery

-
- {["Technology", "Gaming"].map((tag) => ( - - {tag} - - ))} -
-
- {/* image carousel */} - - - {Array.from({ length: 5 }).map((_, index) => ( - - - - ))} - {" "} - - - -
-
-

- -

-

5% raised of $5M max goal

- -

+
+
+
+
+ logo +

NVIDIA

+
+

World's first non-metal sustainable battery

+
+ {["Technology", "Gaming"].map((tag) => ( + + {tag} + + ))} +
+
+ {/* image carousel */} + + + {Array.from({ length: 5 }).map((_, index) => ( + + + + ))} + {" "} + + + +
+
+

+ +

+

5% raised of $5M max goal

+ +

+ {" "} + +

+

Investors

+
+ +

{" "} - + hours

-

Investors

+

Left to invest

+
- -

- {" "} - hours -

-

Left to invest

-
+ + + {/* boiler plate for an actual pictures */} + + + + + + + + + + + + + + + + + +
+ - - - {/* boiler plate for an actual pictures */} - - - - - - - - - - - - - - - - -
); } From be62c7e8a91d778cc8e1fd5f183d6d7e8f1e4974 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 31 Aug 2024 16:27:54 +0700 Subject: [PATCH 4/5] chore: Update Invest page with additional carousel and tab functionality --- src/app/invest/page.tsx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/app/invest/page.tsx b/src/app/invest/page.tsx index 4386a4b..029468b 100644 --- a/src/app/invest/page.tsx +++ b/src/app/invest/page.tsx @@ -17,7 +17,7 @@ import { Button } from "@/components/ui/button"; export default function Invest() { const [progress, setProgress] = useState(0); - const [tab, setTab] = useState(""); + const [tab, setTab] = useState("Pitch"); const handleClick = (item: string) => { setTab(item); }; @@ -28,7 +28,7 @@ export default function Invest() { }, []); return (
-
+
logo @@ -108,8 +108,9 @@ export default function Invest() {
- ); } From aaa531107fb0d95ceed2ef7d1a16e57ea075d894 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sat, 31 Aug 2024 16:57:53 +0700 Subject: [PATCH 5/5] chore: Update navigation bar styling to include z-index for better stacking order --- src/components/navigationBar/Unsigned.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/navigationBar/Unsigned.tsx b/src/components/navigationBar/Unsigned.tsx index 0ea7c24..a641179 100644 --- a/src/components/navigationBar/Unsigned.tsx +++ b/src/components/navigationBar/Unsigned.tsx @@ -83,7 +83,7 @@ export function UnsignedNav() { }, ]; return ( -
+