diff --git a/next.config.mjs b/next.config.mjs index 394ef64..9bf4e22 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,3 @@ -/** @type {import('next').NextConfig} */ - const SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL_SOURCE; const nextConfig = { @@ -12,6 +10,11 @@ const nextConfig = { port: "", pathname: "/storage/v1/object/sign/**", }, + { + protocol: "https", + hostname: "upload.wikimedia.org", + pathname: "/wikipedia/**", + }, ], }, }; diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx new file mode 100644 index 0000000..7e4d166 --- /dev/null +++ b/src/app/business/apply/page.tsx @@ -0,0 +1,300 @@ +"use client"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { createSupabaseClient } from "@/lib/supabase/clientComponentClient"; +import { useEffect, useState } from "react"; + +export default function Apply() { + let supabase = createSupabaseClient(); + const [industry, setIndustry] = useState([]); + const [isInUS, setIsInUS] = useState(""); + const [isForSale, setIsForSale] = useState(""); + const [isGenerating, setIsGenarting] = useState(""); + const [pitch, setPitch] = useState(""); + const communitySize = [ + "N/A", + "0-5K", + "5-10K", + "10-20K", + "20-50K", + "50-100K", + "100K+", + ]; + + const fetchIndustry = async () => { + let { data: BusinessType, error } = await supabase + .from("BusinessType") + .select("value"); + + if (error) { + console.error(error); + } else { + if (BusinessType) { + console.table(); + setIndustry(BusinessType.map((item) => item.value)); + } + } + }; + useEffect(() => { + fetchIndustry(); + }, []); + return ( +
+
+

+ Apply to raise on B2DVentures +

+
+

+ All information submitted in this application is for internal use + only and is treated with the utmost{" "} +

+

+ confidentiality. Companies may apply to raise with B2DVentures more + than once. +

+
+
+
+

About your company

+

+ All requested information in this section is required. +

+ {/* form */} + + {/* company name */} +
+
+ +
+ + + This should be the name your company uses on your
+ website and in the market. +
+
+
+ {/* industry */} +
+ +
+ + + Choose the industry that best aligns with your business. + +
+
+ {/* How much money has your company raised to date? */} +
+ +
+ + + The sum total of past financing, including angel or venture{" "} +
+ capital, loans, grants, or token sales. +
+
+
+ {/* Is your company incorporated in the United States? */} +
+ +
+
+ + +
+ + Only companies that are incorporated or formed in the US are{" "} +
+ eligible to raise via Reg CF. If your company is incorporated{" "} +
+ outside the US, we still encourage you to apply. +
+
+
+ + {/* Is your product available (for sale) in market? */} +
+ +
+
+ + +
+ + Only check this box if customers can access, use, or buy your{" "} +
+ product today. +
+
+
+ + {/* Is your company generating revenue?*/} +
+ +
+
+ + +
+ + Only check this box if your company is making money.
+ Please elaborate on revenue and other traction below. +
+
+
+ + {/* Pitch deck */} +
+ +
+ + +
+
+ + + Your pitch deck and other application info will be used for{" "} +
+ internal purposes only.
+ Please make sure this document is publicly accessible. This can{" "} +
+ be a DocSend, Box, Dropbox, Google Drive or other link. +
+
+
+ + {/* What's the rough size of your community? */} +
+ +
+ + + Include your email list, social media following (i.e. Instagram,{" "} +
Discord, Facebook, Twitter, TikTok). We’d like to + understand the
rough size of your current audience. +
+
+
+
+
+ {/* Submit */} +
+ +
+
+ ); +} diff --git a/src/app/find/page.tsx b/src/app/find/page.tsx index 9e15598..c3e3672 100644 --- a/src/app/find/page.tsx +++ b/src/app/find/page.tsx @@ -38,20 +38,26 @@ export default function Find() { data: projects, isLoading: isLoadingProjects, error: projectError, - } = useQuery(getProjects(supabase, businessIds), { enabled: businessIds.length > 0 }); + } = useQuery(getProjects(supabase, businessIds), { + enabled: businessIds.length > 0, + }); const projectIds = projects?.map((p) => p.id) || []; const { data: tags, isLoading: isLoadingTags, error: tagError, - } = useQuery(getTags(supabase, projectIds), { enabled: projectIds.length > 0 }); + } = useQuery(getTags(supabase, projectIds), { + enabled: projectIds.length > 0, + }); const { data: investmentCounts, isLoading: isLoadingInvestments, error: investmentError, - } = useQuery(getInvestmentCounts(supabase, projectIds), { enabled: projectIds.length > 0 }); + } = useQuery(getInvestmentCounts(supabase, projectIds), { + enabled: projectIds.length > 0, + }); // ----- @@ -103,6 +109,7 @@ export default function Find() { totalInvestor={project.ProjectInvestmentDetail[0]?.totalInvestment} totalRaised={project.ProjectInvestmentDetail[0]?.targetInvestment} tags={[]} + imageUri={null} /> ))} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b257865..5e21f9c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -39,8 +39,8 @@ export default function RootLayout({ children }: RootLayoutProps) {
{children}
+ - diff --git a/src/components/navigationBar/nav.tsx b/src/components/navigationBar/nav.tsx index 9fc31a7..f7679a4 100644 --- a/src/components/navigationBar/nav.tsx +++ b/src/components/navigationBar/nav.tsx @@ -42,9 +42,9 @@ ListItem.displayName = "ListItem"; export function NavigationBar() { const businessComponents = [ { - title: "Businesses", - href: "/landing", - description: "Raise on B2DVentures", + title: "Business", + href: "/business/apply", + description: "Apply to raise on on B2DVentures", }, ]; diff --git a/src/components/siteFooter.tsx b/src/components/siteFooter.tsx index 257d6ff..4e2b6e2 100644 --- a/src/components/siteFooter.tsx +++ b/src/components/siteFooter.tsx @@ -2,8 +2,8 @@ import Link from "next/link"; export function SiteFooter() { return ( -