mirror of https://github.com/kortix-ai/suna.git
Merge pull request #1661 from KrishavRajSingh/fix/unused_link
rm unused links on auth
This commit is contained in:
commit
334c7db9cc
|
@ -268,24 +268,13 @@ function LoginContent() {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-background relative">
|
<div className="min-h-screen bg-background relative">
|
||||||
<div className="absolute top-6 left-6 z-10">
|
<div className="absolute top-6 left-6 z-10">
|
||||||
<Link href="/" className="flex items-center">
|
|
||||||
<KortixLogo size={28} />
|
<KortixLogo size={28} />
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="flex min-h-screen">
|
<div className="flex min-h-screen">
|
||||||
<div className="relative flex-1 flex items-center justify-center p-4 lg:p-8">
|
<div className="relative flex-1 flex items-center justify-center p-4 lg:p-8">
|
||||||
<div className="absolute top-6 right-10 z-10">
|
|
||||||
<Link
|
|
||||||
href="/"
|
|
||||||
className="inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-4"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" />
|
|
||||||
Back to home
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
<div className="w-full max-w-sm">
|
<div className="w-full max-w-sm">
|
||||||
<div className="mb-4 flex items-center flex-col gap-3 sm:gap-4 justify-center">
|
<div className="mb-4 flex items-center flex-col gap-3 sm:gap-4 justify-center">
|
||||||
<ReleaseBadge className='mb-2 sm:mb-4' text="Custom Agents, Playbooks, and more!" link="/changelog" />
|
<ReleaseBadge className='mb-2 sm:mb-4' text="Custom Agents, Playbooks, and more!" />
|
||||||
<h1 className="text-xl sm:text-2xl font-semibold text-foreground text-center leading-tight">
|
<h1 className="text-xl sm:text-2xl font-semibold text-foreground text-center leading-tight">
|
||||||
{isSignUp ? 'Create your account' : 'Log into your account'}
|
{isSignUp ? 'Create your account' : 'Log into your account'}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
interface ReleaseBadgeProps {
|
interface ReleaseBadgeProps {
|
||||||
text: string;
|
text: string;
|
||||||
link: string;
|
link?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
export const ReleaseBadge = ({ text, link, className }: ReleaseBadgeProps) => {
|
export const ReleaseBadge = ({ text, link, className }: ReleaseBadgeProps) => {
|
||||||
|
@ -15,9 +15,9 @@ export const ReleaseBadge = ({ text, link, className }: ReleaseBadgeProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="z-10 flex items-center justify-center px-2 sm:px-0">
|
<div className="z-10 flex items-center justify-center px-2 sm:px-0">
|
||||||
<div
|
<div
|
||||||
onClick={() => router.push(link)}
|
onClick={() => link && router.push(link)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"group rounded-full border border-black/5 bg-neutral-100 text-base text-white transition-all ease-in hover:cursor-pointer hover:bg-neutral-200 dark:border-white/5 dark:bg-neutral-900 dark:hover:bg-neutral-800 active:scale-95 touch-manipulation max-w-[calc(100vw-2rem)] sm:max-w-none",
|
"group rounded-full border border-black/5 bg-neutral-100 text-base text-white transition-all ease-in hover:bg-neutral-200 dark:border-white/5 dark:bg-neutral-900 dark:hover:bg-neutral-800 active:scale-95 touch-manipulation max-w-[calc(100vw-2rem)] sm:max-w-none",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
@ -345,7 +345,7 @@ export function DashboardContent() {
|
||||||
<div className="min-h-full flex flex-col">
|
<div className="min-h-full flex flex-col">
|
||||||
{(
|
{(
|
||||||
<div className="flex justify-center px-4 pt-4 md:pt-8">
|
<div className="flex justify-center px-4 pt-4 md:pt-8">
|
||||||
<ReleaseBadge text="Custom Agents, Playbooks, and more!" link="/agents?tab=my-agents" />
|
<ReleaseBadge className='hover:cursor-pointer' text="Custom Agents, Playbooks, and more!" link="/agents?tab=my-agents" />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex-1 flex items-center justify-center px-4 py-8">
|
<div className="flex-1 flex items-center justify-center px-4 py-8">
|
||||||
|
|
Loading…
Reference in New Issue