diff --git a/package.json b/package.json
index ab23312..27f62a8 100644
--- a/package.json
+++ b/package.json
@@ -2,12 +2,12 @@
"name": "react-login-page",
"version": "0.1.0",
"private": true,
- "homepage": "LACONIC_HOSTED_CONFIG_web_path",
+ "homepage": ".",
"dependencies": {
- "react": "^16.8.6",
- "react-dom": "^16.8.6",
- "react-router-dom": "^5.0.1",
- "react-scripts": "3.0.1"
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0",
+ "react-router-dom": "^6.15.0",
+ "react-scripts": "5.0.1"
},
"scripts": {
"start": "react-scripts start",
@@ -30,5 +30,8 @@
"last 1 firefox version",
"last 1 safari version"
]
+ },
+ "devDependencies": {
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11"
}
}
diff --git a/src/App.css b/src/App.css
index bcef71c..73454c8 100644
--- a/src/App.css
+++ b/src/App.css
@@ -80,7 +80,7 @@ form {
background: #f3f3f3;
border: 1px solid #ddd;
border-radius: 2px;
- padding: 2rem;
+ padding: 1rem;
margin: 2rem 0 1rem 0
}
@@ -88,7 +88,7 @@ form label {
float: left;
font-size: .9rem;
margin: 0;
- padding: 0
+ padding: 0.5rem;
}
.right-label {
@@ -126,7 +126,8 @@ footer p {
/*** Register Page ***/
#checkbox {
- width: 1rem
+ width: 1rem;
+ padding: .5rem;
}
form span {
@@ -140,4 +141,24 @@ form span {
/*** Home Page ***/
.home-page-title {
color: #222
+}
+
+.error {
+ color: red;
+}
+
+.message {
+ display: inline-block;
+ background: #f3f3f3;
+ border: 1px solid #ddd;
+ border-radius: 2px;
+ padding: 2rem;
+ margin: 1rem 0 1rem 0;
+}
+
+.note {
+ color: #888;
+ font-size: .8rem;
+ margin: 1rem 0 0.5rem 0;
+ font-style: italic;
}
\ No newline at end of file
diff --git a/src/App.js b/src/App.js
index 2a5fa7f..5b9131d 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,5 +1,5 @@
import React from 'react'
-import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'
+import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import LandingPage from './components/pages/LandingPage'
import LoginPage from './components/pages/LoginPage'
@@ -14,10 +14,10 @@ export default function App() {
return (
{message}
: null}{error}
: null}