diff --git a/package-lock.json b/package-lock.json index d6b5fd56a..a87d148a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,9 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.6", "vite": "^5.2.0" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@eslint-community/eslint-utils": { diff --git a/src/js/components/Home.jsx b/src/js/components/Home.jsx index 74bc8d768..f7971e980 100644 --- a/src/js/components/Home.jsx +++ b/src/js/components/Home.jsx @@ -1,5 +1,5 @@ import React from "react"; - +import Navbar from "./Navbar"; //include images into your bundle import rigoImage from "../../img/rigo-baby.jpg"; @@ -7,20 +7,7 @@ import rigoImage from "../../img/rigo-baby.jpg"; const Home = () => { return (
- - -

Hello Rigo!

-

- -

- - If you see this green button... bootstrap is working... - -

- Made by{" "} - 4Geeks Academy, with - love! -

+
); }; diff --git a/src/js/components/Navbar.jsx b/src/js/components/Navbar.jsx new file mode 100644 index 000000000..bf9ee6874 --- /dev/null +++ b/src/js/components/Navbar.jsx @@ -0,0 +1,64 @@ +import React from 'react' + +function Navbar() { + return ( +
+ + + + + + + + +
+ ) +} + +export default Navbar diff --git a/src/js/main.jsx b/src/js/main.jsx index 14662105b..95982d9b8 100644 --- a/src/js/main.jsx +++ b/src/js/main.jsx @@ -1,6 +1,7 @@ import React from 'react' import ReactDOM from 'react-dom/client' + //Bootstrap import "bootstrap/dist/css/bootstrap.min.css"; import "bootstrap"