navigation login and signup

This commit is contained in:
IluaAir
2025-10-09 23:51:00 +03:00
parent 1f351bc32b
commit b4f98fe6cd
6 changed files with 87 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ import {
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { login } from "@/apiv1/auth.service"
import { Link } from "react-router"
export function LoginPage({ className }) {
@@ -49,7 +50,9 @@ export function LoginPage({ className }) {
Enter your username below to login to your account
</CardDescription>
<CardAction>
<Button variant="link">Sign Up</Button>
<Button variant="link">
<Link to="/auth/signup">Sign Up</Link>
</Button>
</CardAction>
</CardHeader>
<CardContent>

View File

@@ -1,7 +1,8 @@
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Link } from "react-router"
const Signup1 = ({
const SignUp = ({
heading = "Signup",
logo = {
url: "https://www.shadcnblocks.com",
@@ -56,7 +57,7 @@ const Signup1 = ({
href={signupUrl}
className="text-primary font-medium hover:underline"
>
Login
<Link to="/auth/login">Login</Link>
</a>
</div>
</div>
@@ -65,4 +66,4 @@ const Signup1 = ({
);
};
export { Signup1 };
export { SignUp };