From a441c3e78b8dd4bb3f59b6111a3f67435a3dba9a Mon Sep 17 00:00:00 2001 From: IbrahimKo95 Date: Thu, 7 Dec 2023 20:09:33 +0100 Subject: [PATCH] adding Router and starting the login page --- webapp/src/App.js | 25 ----------- webapp/src/index.js | 13 +++--- webapp/src/pages/login/index.jsx | 67 +++++++++++++++++++++++++++++ webapp/src/pages/register/index.jsx | 11 +++++ webapp/tailwind.config.js | 10 ++++- 5 files changed, 94 insertions(+), 32 deletions(-) delete mode 100644 webapp/src/App.js create mode 100644 webapp/src/pages/login/index.jsx create mode 100644 webapp/src/pages/register/index.jsx diff --git a/webapp/src/App.js b/webapp/src/App.js deleted file mode 100644 index 3784575..0000000 --- a/webapp/src/App.js +++ /dev/null @@ -1,25 +0,0 @@ -import logo from './logo.svg'; -import './App.css'; - -function App() { - return ( -
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
-
- ); -} - -export default App; diff --git a/webapp/src/index.js b/webapp/src/index.js index 8994ac3..f935abc 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -1,15 +1,16 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; +import Login from "./pages/login"; +import {BrowserRouter, Route, Routes} from "react-router-dom"; const root = ReactDOM.createRoot(document.getElementById('root')); root.render( - + + + }/> + + ); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals \ No newline at end of file diff --git a/webapp/src/pages/login/index.jsx b/webapp/src/pages/login/index.jsx new file mode 100644 index 0000000..48e6b87 --- /dev/null +++ b/webapp/src/pages/login/index.jsx @@ -0,0 +1,67 @@ + + +function Login() { + return ( +
+
+ + logo + Debate + +
+
+

+ Sign in to your account +

+
+
+ + +
+
+ + +
+
+
+
+ +
+
+ +
+
+ Forgot + password? +
+ +

+ Don’t have an account yet? Sign + up +

+
+
+
+
+
+ ) +} + +export default Login \ No newline at end of file diff --git a/webapp/src/pages/register/index.jsx b/webapp/src/pages/register/index.jsx new file mode 100644 index 0000000..7de5649 --- /dev/null +++ b/webapp/src/pages/register/index.jsx @@ -0,0 +1,11 @@ + + +function Register() { + return ( +
+ +
+ ) +} + +export default Register \ No newline at end of file diff --git a/webapp/tailwind.config.js b/webapp/tailwind.config.js index a807a58..bef004f 100644 --- a/webapp/tailwind.config.js +++ b/webapp/tailwind.config.js @@ -5,7 +5,15 @@ module.exports = { "./node_modules/flowbite/**/*.js" ], theme: { - extend: {}, + extend: { + colors: { + 'darkGreen': '#4dab7f', + 'mainBlue': '#047385', + 'mainOrange': '#d76d1e', + 'darkBlue': '#043743', + + } + }, }, plugins: [ require('flowbite/plugin')