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..679168116 100644 --- a/src/js/components/Home.jsx +++ b/src/js/components/Home.jsx @@ -1,5 +1,6 @@ import React from "react"; - +import Navbar from "./Navbar"; +import Jumbotron from "./Jumbotron"; //include images into your bundle import rigoImage from "../../img/rigo-baby.jpg"; @@ -7,22 +8,19 @@ 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! -

+ +
+ + + + + + + + +
); }; -export default Home; \ No newline at end of file +export default Home; diff --git a/src/js/components/Jumbotron.jsx b/src/js/components/Jumbotron.jsx new file mode 100644 index 000000000..bc5a63299 --- /dev/null +++ b/src/js/components/Jumbotron.jsx @@ -0,0 +1,19 @@ +import React from 'react' + +function Jumbotron() { + return ( +
+
+

A Warm Welcome!

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, ipsam, eligendi, in quo sunt possimus non incidunt odit vero aliquid similique quaerat nam nobis illo aspernatur vitae fugiat numquam repellat. +

+ +
+
+ ) +} + +export default Jumbotron 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"