mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-20 06:24:06 +01:00
Update component and pages to responsive
This commit is contained in:
parent
dec781498e
commit
faab0b0fd5
@ -75,24 +75,24 @@ export default function Invest() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-40 my-10">
|
<div className="mx-10 md:mx-40 my-10">
|
||||||
<h1 className="text-4xl font-bold">Invest on NVIDIA</h1>
|
<h1 className="text-2xl md:text-4xl font-bold">Invest on NVIDIA</h1>
|
||||||
<Separator className="my-4" />
|
<Separator className="my-4" />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div className="w-1/2 space-y-2">
|
<div className="w-1/2 space-y-2">
|
||||||
<h2 className="text-2xl">Investment Amount</h2>
|
<h2 className="text:base md:text-2xl">Investment Amount</h2>
|
||||||
<Input type="number" placeholder="min $500" />
|
<Input type="number" placeholder="min $500" />
|
||||||
</div>
|
</div>
|
||||||
<Separator className="my-4" />
|
<Separator className="my-4" />
|
||||||
|
|
||||||
<div className="w-1/2 space-y-2">
|
<div className="w-full space-y-2">
|
||||||
<h2 className="text-2xl">Payment Information</h2>
|
<h2 className="text:base md:text-2xl">Payment Information</h2>
|
||||||
<CardsPaymentMethod />
|
<CardsPaymentMethod />
|
||||||
</div>
|
</div>
|
||||||
<Separator className="my-4" />
|
<Separator className="my-4" />
|
||||||
|
|
||||||
<div className="w-2/3 space-y-2">
|
<div className=" md:w-2/3 space-y-2">
|
||||||
<h2 className="text-2xl">Terms and Services</h2>
|
<h2 className="text-2xl">Terms and Services</h2>
|
||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
|
|||||||
@ -148,7 +148,7 @@ export default function Invest() {
|
|||||||
</h1>
|
</h1>
|
||||||
<p className="ml-5"> Left to invest</p>
|
<p className="ml-5"> Left to invest</p>
|
||||||
<Button className="mt-5 md:mt-10 ml-0 md:ml-[25%] scale-75 md:scale-100">
|
<Button className="mt-5 md:mt-10 ml-0 md:ml-[25%] scale-75 md:scale-100">
|
||||||
<Link href="/invest/1">Invest in NVIDIA</Link>
|
<Link href="/invest">Invest in NVIDIA</Link>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -2,26 +2,47 @@
|
|||||||
|
|
||||||
import { Icons } from "./ui/icons";
|
import { Icons } from "./ui/icons";
|
||||||
import { Button } from "./ui/button";
|
import { Button } from "./ui/button";
|
||||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./ui/card";
|
import {
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
CardDescription,
|
||||||
|
CardFooter,
|
||||||
|
CardHeader,
|
||||||
|
CardTitle,
|
||||||
|
} from "./ui/card";
|
||||||
import { Input } from "./ui/input";
|
import { Input } from "./ui/input";
|
||||||
import { Label } from "./ui/label";
|
import { Label } from "./ui/label";
|
||||||
import { RadioGroup, RadioGroupItem } from "./ui/radio-group";
|
import { RadioGroup, RadioGroupItem } from "./ui/radio-group";
|
||||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./ui/select";
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from "./ui/select";
|
||||||
|
|
||||||
export function CardsPaymentMethod() {
|
export function CardsPaymentMethod() {
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className="w-full">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Payment Method</CardTitle>
|
<CardTitle className="text-xl md:text-2xl">Payment Method</CardTitle>
|
||||||
<CardDescription>Add a new payment method to your account.</CardDescription>
|
<CardDescription className="font-normal md:font-semibold">
|
||||||
|
Add a new payment method to your account.
|
||||||
|
</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="grid gap-6">
|
<CardContent className="grid gap-6">
|
||||||
<RadioGroup defaultValue="card" className="grid grid-cols-3 gap-4">
|
<RadioGroup defaultValue="card" className="flex w-full justify-center gap-1 md:gap-3">
|
||||||
<div>
|
<div className="w-[100px] md:w-[150px]">
|
||||||
<RadioGroupItem value="card" id="card" className="peer sr-only" aria-label="Card" />
|
<RadioGroupItem
|
||||||
|
value="card"
|
||||||
|
id="card"
|
||||||
|
className="peer sr-only"
|
||||||
|
aria-label="Card"
|
||||||
|
/>
|
||||||
<Label
|
<Label
|
||||||
htmlFor="card"
|
htmlFor="card"
|
||||||
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary">
|
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
|
||||||
|
>
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@ -30,7 +51,8 @@ export function CardsPaymentMethod() {
|
|||||||
strokeLinecap="round"
|
strokeLinecap="round"
|
||||||
strokeLinejoin="round"
|
strokeLinejoin="round"
|
||||||
strokeWidth="2"
|
strokeWidth="2"
|
||||||
className="mb-3 h-6 w-6">
|
className="mb-3 h-6 w-6"
|
||||||
|
>
|
||||||
<rect width="20" height="14" x="2" y="5" rx="2" />
|
<rect width="20" height="14" x="2" y="5" rx="2" />
|
||||||
<path d="M2 10h20" />
|
<path d="M2 10h20" />
|
||||||
</svg>
|
</svg>
|
||||||
@ -38,29 +60,48 @@ export function CardsPaymentMethod() {
|
|||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div className="w-[100px] md:w-[150px]">
|
||||||
<RadioGroupItem value="paypal" id="paypal" className="peer sr-only" aria-label="Paypal" />
|
<RadioGroupItem
|
||||||
|
value="paypal"
|
||||||
|
id="paypal"
|
||||||
|
className="peer sr-only"
|
||||||
|
aria-label="Paypal"
|
||||||
|
/>
|
||||||
<Label
|
<Label
|
||||||
htmlFor="paypal"
|
htmlFor="paypal"
|
||||||
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary">
|
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
|
||||||
|
>
|
||||||
<Icons.paypal className="mb-3 h-6 w-6" />
|
<Icons.paypal className="mb-3 h-6 w-6" />
|
||||||
Paypal
|
Paypal
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div className="w-[100px] md:w-[150px]">
|
||||||
<RadioGroupItem value="apple" id="apple" className="peer sr-only" aria-label="Apple" />
|
<RadioGroupItem
|
||||||
|
value="apple"
|
||||||
|
id="apple"
|
||||||
|
className="peer sr-only"
|
||||||
|
aria-label="Apple"
|
||||||
|
/>
|
||||||
<Label
|
<Label
|
||||||
htmlFor="apple"
|
htmlFor="apple"
|
||||||
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary">
|
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
|
||||||
|
>
|
||||||
<Icons.apple className="mb-3 h-6 w-6" />
|
<Icons.apple className="mb-3 h-6 w-6" />
|
||||||
Apple
|
Apple
|
||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-2">
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label htmlFor="name">Name</Label>
|
<Label htmlFor="firstname">First Name</Label>
|
||||||
<Input id="name" placeholder="First Last" />
|
<Input id="firstname" placeholder="Your firstname..." />
|
||||||
|
</div>
|
||||||
|
<div className="grid gap-2">
|
||||||
|
<Label htmlFor="lastname">Last Name</Label>
|
||||||
|
<Input id="lastname" placeholder="Your lastname..." />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label htmlFor="city">City</Label>
|
<Label htmlFor="city">City</Label>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user