From b79c081f93465a920e425ecbc14254ff802680ad Mon Sep 17 00:00:00 2001 From: AlexBarmen Date: Sat, 29 Jul 2023 21:29:16 +0300 Subject: [PATCH] added home-page and form hook library --- apps/frontend/src/app/app.tsx | 1 - apps/frontend/src/app/home.tsx | 29 +- libs/site-pages/src/index.ts | 1 + .../src/lib/home-page/home-page.module.scss | 7 + .../src/lib/home-page/home-page.spec.tsx | 10 + .../src/lib/home-page/home-page.tsx | 14 + .../lib/login-page/components/LoginForm.tsx | 31 + .../src/lib/login-page/login-page.tsx | 6 +- .../registration-page/registration-page.tsx | 7 +- package-lock.json | 2238 +++++++++++++---- package.json | 5 +- yarn.lock | 1208 ++++++--- 12 files changed, 2678 insertions(+), 879 deletions(-) create mode 100644 libs/site-pages/src/lib/home-page/home-page.module.scss create mode 100644 libs/site-pages/src/lib/home-page/home-page.spec.tsx create mode 100644 libs/site-pages/src/lib/home-page/home-page.tsx create mode 100644 libs/site-pages/src/lib/login-page/components/LoginForm.tsx diff --git a/apps/frontend/src/app/app.tsx b/apps/frontend/src/app/app.tsx index ec72e27..80363a2 100644 --- a/apps/frontend/src/app/app.tsx +++ b/apps/frontend/src/app/app.tsx @@ -1,7 +1,6 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars import styles from './app.module.scss'; -import NxWelcome from './nx-welcome'; import {Home} from './home'; export function App() { return ( diff --git a/apps/frontend/src/app/home.tsx b/apps/frontend/src/app/home.tsx index 5a3cfd1..1f166d9 100644 --- a/apps/frontend/src/app/home.tsx +++ b/apps/frontend/src/app/home.tsx @@ -2,19 +2,22 @@ import {LoginPage, RegistrationPage} from "@platform/site-pages"; import {Link, Routes, Route} from 'react-router-dom' export function Home() { - return( - <> -