Update /login path to /auth path

This commit is contained in:
sirin 2024-09-02 00:46:38 +07:00
parent 12e87c5339
commit c7fda69436
2 changed files with 65 additions and 61 deletions

View File

@ -18,7 +18,7 @@ export default function Home() {
<p>Together, we turn ideas into impact.</p> <p>Together, we turn ideas into impact.</p>
</span> </span>
<Button className="font-bold mt-4"> <Button className="font-bold mt-4">
<Link href="/login">Start Investing</Link> <Link href="/">Start Investing</Link>
</Button> </Button>
</span> </span>
</div> </div>
@ -78,10 +78,40 @@ export default function Home() {
<p className="text-lg">The deals attracting the most interest right now</p> <p className="text-lg">The deals attracting the most interest right now</p>
</span> </span>
<div className="grid grid-cols-4 gap-4"> <div className="grid grid-cols-4 gap-4">
<BusinessCard name={"NVDA"} description={"Founded in 1993, NVIDIA is a key innovator of computer graphics and AI technology"} joinDate={"December 2021"} location={"Bangkok, Thailand"} tags={null} /> <BusinessCard
<BusinessCard name={"Apple Inc."} description={"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} /> name={"NVDA"}
<BusinessCard name={"Google LLC"} description={"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} /> description={"Founded in 1993, NVIDIA is a key innovator of computer graphics and AI technology"}
<BusinessCard name={"Microsoft Corporation"} description={"Founded in 1975, Microsoft Corporation is a multinational technology company that develops, manufactures, and licenses software, hardware, and services, including Windows, Office, and Azure."} joinDate={"January 2018"} location={""} tags={null} /> joinDate={"December 2021"}
location={"Bangkok, Thailand"}
tags={null}
/>
<BusinessCard
name={"Apple Inc."}
description={
"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}
/>
<BusinessCard
name={"Google LLC"}
description={
"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}
/>
<BusinessCard
name={"Microsoft Corporation"}
description={
"Founded in 1975, Microsoft Corporation is a multinational technology company that develops, manufactures, and licenses software, hardware, and services, including Windows, Office, and Azure."
}
joinDate={"January 2018"}
location={""}
tags={null}
/>
</div> </div>
<div className="self-center py-5"> <div className="self-center py-5">
<Button> <Button>

View File

@ -31,31 +31,27 @@ const landings = [
route: "/crm-landing", route: "/crm-landing",
}, },
]; ];
const ListItem = React.forwardRef< const ListItem = React.forwardRef<React.ElementRef<"a">, React.ComponentPropsWithoutRef<"a">>(
React.ElementRef<"a">, ({ className, title, children, ...props }, ref) => {
React.ComponentPropsWithoutRef<"a"> return (
>(({ className, title, children, ...props }, ref) => { <li>
return ( <NavigationMenuLink asChild>
<li> <a
<NavigationMenuLink asChild> ref={ref}
<a className={cn(
ref={ref} "block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
className={cn( className
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", )}
className {...props}>
)} <div className="text-sm font-medium leading-none">{title}</div>
{...props} <hr />
> <p className="line-clamp-2 text-sm leading-snug text-muted-foreground">{children}</p>
<div className="text-sm font-medium leading-none">{title}</div> </a>
<hr /> </NavigationMenuLink>
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground"> </li>
{children} );
</p> }
</a> );
</NavigationMenuLink>
</li>
);
});
ListItem.displayName = "ListItem"; ListItem.displayName = "ListItem";
export function UnsignedNav() { export function UnsignedNav() {
@ -90,8 +86,7 @@ export function UnsignedNav() {
<Link <Link
className="flex-none text-xl font-semibold dark:text-white focus:outline-none focus:opacity-80" className="flex-none text-xl font-semibold dark:text-white focus:outline-none focus:opacity-80"
href="/" href="/"
aria-label="Brand" aria-label="Brand">
>
<span className="inline-flex items-center gap-x-2 text-xl font-semibold dark:text-white"> <span className="inline-flex items-center gap-x-2 text-xl font-semibold dark:text-white">
<Image src="./logo.svg" alt="logo" width={50} height={50} /> <Image src="./logo.svg" alt="logo" width={50} height={50} />
B2DVentures B2DVentures
@ -103,17 +98,11 @@ export function UnsignedNav() {
<NavigationMenu> <NavigationMenu>
<NavigationMenuList> <NavigationMenuList>
<NavigationMenuItem> <NavigationMenuItem>
<NavigationMenuTrigger className="text-base"> <NavigationMenuTrigger className="text-base">Businesses</NavigationMenuTrigger>
Businesses
</NavigationMenuTrigger>
<NavigationMenuContent> <NavigationMenuContent>
<ul className="grid w-[400px] "> <ul className="grid w-[400px] ">
{businessComponents.map((component) => ( {businessComponents.map((component) => (
<ListItem <ListItem key={component.title} title={component.title} href={component.href}>
key={component.title}
title={component.title}
href={component.href}
>
{component.description} {component.description}
</ListItem> </ListItem>
))} ))}
@ -122,17 +111,11 @@ export function UnsignedNav() {
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem> <NavigationMenuItem>
<NavigationMenuTrigger className="text-base font-medium "> <NavigationMenuTrigger className="text-base font-medium ">Projects</NavigationMenuTrigger>
Projects
</NavigationMenuTrigger>
<NavigationMenuContent> <NavigationMenuContent>
<ul className="grid w-[400px] "> <ul className="grid w-[400px] ">
{projectComponents.map((component) => ( {projectComponents.map((component) => (
<ListItem <ListItem key={component.title} title={component.title} href={component.href}>
key={component.title}
title={component.title}
href={component.href}
>
{component.description} {component.description}
</ListItem> </ListItem>
))} ))}
@ -141,17 +124,11 @@ export function UnsignedNav() {
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem> <NavigationMenuItem>
<NavigationMenuTrigger className="text-base"> <NavigationMenuTrigger className="text-base">Blogs</NavigationMenuTrigger>
Blogs
</NavigationMenuTrigger>
<NavigationMenuContent> <NavigationMenuContent>
<ul className="grid w-[400px] "> <ul className="grid w-[400px] ">
{blogComponents.map((component) => ( {blogComponents.map((component) => (
<ListItem <ListItem key={component.title} title={component.title} href={component.href}>
key={component.title}
title={component.title}
href={component.href}
>
{component.description} {component.description}
</ListItem> </ListItem>
))} ))}
@ -160,10 +137,7 @@ export function UnsignedNav() {
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem> <NavigationMenuItem>
<NavigationMenuLink <NavigationMenuLink className="text-base font-medium" href="docs">
className="text-base font-medium"
href="docs"
>
Docs Docs
</NavigationMenuLink> </NavigationMenuLink>
</NavigationMenuItem> </NavigationMenuItem>
@ -177,7 +151,7 @@ export function UnsignedNav() {
<div className="flex gap-2 pl-2"> <div className="flex gap-2 pl-2">
<ThemeToggle /> <ThemeToggle />
<Separator orientation="vertical" className="mx-3" /> <Separator orientation="vertical" className="mx-3" />
<Link href="/login"> <Link href="/auth">
<Button variant="secondary" className="border-2 border-border"> <Button variant="secondary" className="border-2 border-border">
Login Login
</Button> </Button>