From 4592fe9b89035170ffb70fb08836fbfc7f2fddf0 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 19 Dec 2024 09:23:16 +0300 Subject: [PATCH] Added login and register pages in frontend --- frontend/src/app/login/page.tsx | 50 ++++++++++++++++ frontend/src/app/page.tsx | 95 +++++------------------------- frontend/src/app/register/page.tsx | 62 +++++++++++++++++++ 3 files changed, 128 insertions(+), 79 deletions(-) create mode 100644 frontend/src/app/login/page.tsx create mode 100644 frontend/src/app/register/page.tsx diff --git a/frontend/src/app/login/page.tsx b/frontend/src/app/login/page.tsx new file mode 100644 index 0000000..1dc9d6f --- /dev/null +++ b/frontend/src/app/login/page.tsx @@ -0,0 +1,50 @@ +import React from 'react'; +import Link from 'next/link'; + +export default function Login() { + return ( +
+
+

Login

+
+
+ + +
+
+ + +
+ +
+

+ Don't have an account?{' '} + + Register + +

+
+
+ ); +} diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index d0fa9e2..31e64ba 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,86 +1,23 @@ -import Image from 'next/image'; +import Link from 'next/link'; export default function Home() { return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{' '} - - src/app/page.tsx - - . -
  2. -
  3. Save and see your changes instantly.
  4. -
- -
- - Read our docs +
+

+ Welcome to My Social Network +

+
-
- + + + + Register + + +
); } diff --git a/frontend/src/app/register/page.tsx b/frontend/src/app/register/page.tsx new file mode 100644 index 0000000..59210d7 --- /dev/null +++ b/frontend/src/app/register/page.tsx @@ -0,0 +1,62 @@ +import React from 'react'; +import Link from 'next/link'; + +export default function Register() { + return ( +
+
+

Register

+
+
+ + +
+
+ + +
+
+ + +
+ +
+

+ Already have an account?{' '} + + Login + +

+
+
+ ); +}