diff --git a/src/app/deals/page.tsx b/src/app/deals/page.tsx index 21678af..85a375b 100644 --- a/src/app/deals/page.tsx +++ b/src/app/deals/page.tsx @@ -1,18 +1,7 @@ "use client"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { useState } from "react"; -import { - Clock3Icon, - MessageSquareIcon, - UserIcon, - UsersIcon, -} from "lucide-react"; +import { Clock3Icon, MessageSquareIcon, UserIcon, UsersIcon } from "lucide-react"; import { Separator } from "@/components/ui/separator"; import { ExtendableCard } from "@/components/extendableCard"; @@ -21,14 +10,14 @@ export default function Deals() { const [contentTypeFilter, setContentTypeFilter] = useState(""); const [authorFilter, setAuthorFilter] = useState(""); const [groupsFilter, setGroupFilter] = useState(""); + const [selectedTag, setSelectedTag] = useState(""); const data = [ { name: "NVDA", - description: - "Founded in 1993, NVIDIA is a key innovator of computer graphics and AI technology", + description: "Founded in 1993, NVIDIA is a key innovator of computer graphics and AI technology", joinDate: "December 2021", location: "Bangkok, Thailand", - tags: null, + tags: ["AI", "Technology"], minInvestment: 10000, totalInvestor: 58400, totalRaised: 9000000, @@ -39,7 +28,7 @@ export default function Deals() { "Founded in 1976, Apple Inc. is a leading innovator in consumer electronics, software, and online services, known for products like the iPhone, MacBook, and the App Store.", joinDate: "February 2020", location: "Cupertino, California, USA", - tags: null, + tags: ["Consumer Electronics", "Software"], minInvestment: 10000, totalInvestor: 58400, totalRaised: 9000000, @@ -50,30 +39,31 @@ export default function Deals() { "Founded in 1998, Google LLC specializes in internet-related services and products, including search engines, online advertising, cloud computing, and the Android operating system.", joinDate: "April 2019", location: "Mountain View, California, USA", - tags: null, + tags: ["Internet", "Search Engine"], minInvestment: 10000, totalInvestor: 5000, totalRaised: 1500000000, }, { name: "Microsoft Corporation", - description: - "Microsoft Corporation is a multinational technology company.", + description: "Microsoft Corporation is a multinational technology company.", joinDate: "January 2018", location: "California, USA", - tags: null, + tags: ["Technology", "Software"], minInvestment: 250, totalInvestor: 5000, totalRaised: 1500000, }, ]; + const filteredData = selectedTag ? data.filter((item) => item.tags.includes(selectedTag)) : data; + return (
Browse current investment opportunities on Republic.
+Browse current investment opportunities on B2DVenture.
All companies are vetted & pass due diligence.
@@ -89,40 +79,22 @@ export default function Deals() {- Explore the world of ventures -
+Explore the world of ventures
-- Unlock opportunities and connect with a community of passionate -
+Unlock opportunities and connect with a community of passionate
investors and innovators.
Together, we turn ideas into impact.
@@ -69,23 +59,11 @@ export default function Home() {Hottest Deals
-- The deals attracting the most interest right now -
+The deals attracting the most interest right now
- {props.description} -
+{props.description}
- ${props.totalRaised.toLocaleString()}{" "} - committed and reserved + ${props.totalRaised.toLocaleString()} committed and reserved
- {props.totalInvestor.toLocaleString()}{" "} - investors + {props.totalInvestor.toLocaleString()} investors
- ${props.minInvestment.toLocaleString()} min. - investment + ${props.minInvestment.toLocaleString()} min. investment