diff --git a/frontend/src/components/InfoBox.js b/frontend/src/components/InfoBox.js new file mode 100644 index 0000000..2e72cb0 --- /dev/null +++ b/frontend/src/components/InfoBox.js @@ -0,0 +1,14 @@ +import React from 'react'; + +const InfoBox = ({ backColor, heading, paragraphDescription, children, leftChange }) => +( +
+
+

{heading}

+

{paragraphDescription}

+ {children} +
+
+); + +export { InfoBox }; diff --git a/frontend/src/pages/LandingPage.js b/frontend/src/pages/LandingPage.js index e83df05..0d7f66d 100644 --- a/frontend/src/pages/LandingPage.js +++ b/frontend/src/pages/LandingPage.js @@ -1,16 +1,14 @@ -import React, { useEffect, useState } from "react"; -import { Link } from "react-router-dom"; +import React from "react"; +import { InfoBox } from "../components/InfoBox"; import "../styles/LandingPage.css"; export default function LandingPage() { return (
- {/* This is the homepage of your app. You should have a jumbotron, a button - leading to GalleryPage and another button leading to CreateObjectPage. */} -
-

Hello world!

-
+ + +
); }