From 8989b263ce11d9a4c6fa6d5e8b08be8071495241 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 15 Nov 2023 23:05:08 +0100 Subject: [PATCH] init login --- package.json | 1 + src/accounts/login/Login.css | 19 +++++++++++++++++++ src/accounts/login/Login.js | 19 +++++++++++++++++++ src/index.js | 29 ++++++++++++++--------------- 4 files changed, 53 insertions(+), 15 deletions(-) create mode 100644 src/accounts/login/Login.css create mode 100644 src/accounts/login/Login.js diff --git a/package.json b/package.json index f4d11fe..af48df7 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "@testing-library/user-event": "^13.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-router-dom": "^6.18.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, diff --git a/src/accounts/login/Login.css b/src/accounts/login/Login.css new file mode 100644 index 0000000..e5df874 --- /dev/null +++ b/src/accounts/login/Login.css @@ -0,0 +1,19 @@ + +:root { + background-color: green; +} + +form { + margin-left: auto; + margin-right: auto; + padding: 15px; + width: 360px; + border: 1px black solid; + display: grid; + background-color: red; +} + +form>* { + margin-bottom: 2%; + flex: 1 2; + } \ No newline at end of file diff --git a/src/accounts/login/Login.js b/src/accounts/login/Login.js new file mode 100644 index 0000000..c59a8c4 --- /dev/null +++ b/src/accounts/login/Login.js @@ -0,0 +1,19 @@ +import './Login.css'; + +const Login = () => { + return ( +
+ + + + + + + + + signup +
+ ); + }; + + export default Login; \ No newline at end of file diff --git a/src/index.js b/src/index.js index d563c0f..cc923f2 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,16 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import ReactDOM from "react-dom/client"; +import { BrowserRouter, Routes, Route } from "react-router-dom"; +import Login from "./accounts/login/Login.js"; + +export default function App() { + return ( + + + } /> + + + ); +} 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 -reportWebVitals(); +root.render(); \ No newline at end of file