diff --git a/src/app/(auth)/layout.tsx b/src/app/(auth)/layout.tsx new file mode 100644 index 00000000..f3ea9db6 --- /dev/null +++ b/src/app/(auth)/layout.tsx @@ -0,0 +1,7 @@ +import type { ReactNode } from "react"; + +export default function AuthLayout({ children }: { children: ReactNode }) { + return ( +
{children}
+ ); +} diff --git a/src/app/(auth)/signin/page.tsx b/src/app/(auth)/signin/page.tsx new file mode 100644 index 00000000..44169beb --- /dev/null +++ b/src/app/(auth)/signin/page.tsx @@ -0,0 +1,74 @@ +import { Footer } from "@/components/footer"; +import { Header } from "@/components/header"; +import { getCurrentSession } from "@/server/auth"; +import type { Metadata } from "next"; +import Image from "next/image"; +import Link from "next/link"; +import { redirect } from "next/navigation"; + +export const metadata: Metadata = { + title: "EasyInvoice | Simple Invoice Management", + description: "Create, manage and track invoices easily with Request Network", +}; + +export default async function LoginPage() { + const { user } = await getCurrentSession(); + + if (user) { + return redirect("/home"); + } + + const termsUrl = + process.env.NEXT_PUBLIC_API_TERMS_CONDITIONS || + "https://request.network/api-terms"; + + return ( + <> +
+
+
+
+
+ EASY TO USE CRYPTO INVOICING +
+

+ Welcome to EasyInvoice +

+

+ Easily create and send invoices to your customers using crypto. +

+
+ +
+ + Google + Continue with Google + +

+ By continuing, you agree to our{" "} + + Terms and Conditions + + . +

+
+
+
+