mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
Refactor component and page structure for responsiveness, add textarea component for project description and pitch deck
This commit is contained in:
parent
3a94e21349
commit
c93b05ab45
@ -13,6 +13,7 @@ import {
|
|||||||
} from "@/components/ui/select";
|
} from "@/components/ui/select";
|
||||||
import { createSupabaseClient } from "@/lib/supabase/clientComponentClient";
|
import { createSupabaseClient } from "@/lib/supabase/clientComponentClient";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
|
||||||
export default function Apply() {
|
export default function Apply() {
|
||||||
let supabase = createSupabaseClient();
|
let supabase = createSupabaseClient();
|
||||||
@ -20,8 +21,9 @@ export default function Apply() {
|
|||||||
const [isInUS, setIsInUS] = useState("");
|
const [isInUS, setIsInUS] = useState("");
|
||||||
const [isForSale, setIsForSale] = useState("");
|
const [isForSale, setIsForSale] = useState("");
|
||||||
const [isGenerating, setIsGenarting] = useState("");
|
const [isGenerating, setIsGenarting] = useState("");
|
||||||
const [pitch, setPitch] = useState("");
|
const [businessPitch, setBusinessPitch] = useState("");
|
||||||
const [projectType, setProjectType] = useState<string[]>([]);
|
const [projectType, setProjectType] = useState<string[]>([]);
|
||||||
|
const [projectPitch, setProjectPitch] = useState("");
|
||||||
const communitySize = [
|
const communitySize = [
|
||||||
"N/A",
|
"N/A",
|
||||||
"0-5K",
|
"0-5K",
|
||||||
@ -245,15 +247,15 @@ export default function Apply() {
|
|||||||
</Label>
|
</Label>
|
||||||
<div className="flex space-x-2 w-96">
|
<div className="flex space-x-2 w-96">
|
||||||
<Button
|
<Button
|
||||||
variant={pitch === "text" ? "default" : "outline"}
|
variant={businessPitch === "text" ? "default" : "outline"}
|
||||||
onClick={() => setPitch("text")}
|
onClick={() => setBusinessPitch("text")}
|
||||||
className="w-32 h-12 text-base"
|
className="w-32 h-12 text-base"
|
||||||
>
|
>
|
||||||
Paste URL
|
Paste URL
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant={pitch === "file" ? "default" : "outline"}
|
variant={businessPitch === "file" ? "default" : "outline"}
|
||||||
onClick={() => setPitch("file")}
|
onClick={() => setBusinessPitch("file")}
|
||||||
className="w-32 h-12 text-base"
|
className="w-32 h-12 text-base"
|
||||||
>
|
>
|
||||||
Upload a file
|
Upload a file
|
||||||
@ -261,7 +263,7 @@ export default function Apply() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex space-x-5">
|
<div className="flex space-x-5">
|
||||||
<Input
|
<Input
|
||||||
type={pitch}
|
type={businessPitch}
|
||||||
id="companyName"
|
id="companyName"
|
||||||
className="w-96"
|
className="w-96"
|
||||||
placeholder="https:// "
|
placeholder="https:// "
|
||||||
@ -361,7 +363,49 @@ export default function Apply() {
|
|||||||
Short description
|
Short description
|
||||||
</Label>
|
</Label>
|
||||||
<div className="flex space-x-5">
|
<div className="flex space-x-5">
|
||||||
<Input type="text" id="companyName" className="w-96" />
|
<Textarea id="shortDescription" className="w-96" />
|
||||||
|
<span className="text-[12px] text-neutral-500 self-center">
|
||||||
|
Could you provide a brief description of your project <br /> in
|
||||||
|
one or two sentences?
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Pitch deck */}
|
||||||
|
<div className="mt-10 space-y-5">
|
||||||
|
<Label htmlFor="companyName" className="font-bold text-lg">
|
||||||
|
Pitch deck
|
||||||
|
</Label>
|
||||||
|
<div className="flex space-x-2 w-96">
|
||||||
|
<Button
|
||||||
|
variant={projectPitch === "text" ? "default" : "outline"}
|
||||||
|
onClick={() => setProjectPitch("text")}
|
||||||
|
className="w-32 h-12 text-base"
|
||||||
|
>
|
||||||
|
Paste URL
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant={projectPitch === "file" ? "default" : "outline"}
|
||||||
|
onClick={() => setProjectPitch("file")}
|
||||||
|
className="w-32 h-12 text-base"
|
||||||
|
>
|
||||||
|
Upload a file
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div className="flex space-x-5">
|
||||||
|
<Input
|
||||||
|
type={projectPitch}
|
||||||
|
id="companyName"
|
||||||
|
className="w-96"
|
||||||
|
placeholder="https:// "
|
||||||
|
/>
|
||||||
|
<span className="text-[12px] text-neutral-500 self-center">
|
||||||
|
Please upload a file or paste a link to your pitch, which should{" "}
|
||||||
|
<br />
|
||||||
|
cover key aspects of your project: what it will do, what
|
||||||
|
investors <br /> can expect to gain, and any highlights that
|
||||||
|
make it stand out.
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
24
src/components/ui/textarea.tsx
Normal file
24
src/components/ui/textarea.tsx
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import * as React from "react"
|
||||||
|
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
export interface TextareaProps
|
||||||
|
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
|
||||||
|
|
||||||
|
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||||
|
({ className, ...props }, ref) => {
|
||||||
|
return (
|
||||||
|
<textarea
|
||||||
|
className={cn(
|
||||||
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
ref={ref}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
Textarea.displayName = "Textarea"
|
||||||
|
|
||||||
|
export { Textarea }
|
||||||
Loading…
Reference in New Issue
Block a user