diff --git a/src/App.css b/src/App.css index e69de29..bfe8d92 100644 --- a/src/App.css +++ b/src/App.css @@ -0,0 +1,33 @@ +.userDiv { + display: flex; + align-items: center; + border: 1px solid black; + padding: 10px; + margin: 10px; + width: 100% +} + +.greetings { + border: 1px solid black; + padding: 10px; + margin: 10px; + font-family: Arial, sans-serif; +} + +.random { + border: 1px solid black; + padding: 10px; + margin: 10px; + font-family: Arial, sans-serif; +} + +.box-color { + width: 400px; + height: 100px; + border: 1px solid black; + margin: 10px; + display: flex; + align-items: center; + justify-content: center; + font-family: Arial, sans-serif; +} diff --git a/src/App.jsx b/src/App.jsx index 98d0f49..8db3b5d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,11 +1,46 @@ -import "./App.css"; +import "./App.css" +import IdCard from "./components/IdCard"; +import Greetings from "./components/Greetings"; +import Random from "./components/Random"; +import BoxColor from "./components/BoxColor"; function App() { return ( -
+ {greeting} {children} +
+ ); +} + +export default Greetings; \ No newline at end of file diff --git a/src/components/IdCard.jsx b/src/components/IdCard.jsx new file mode 100644 index 0000000..23b36f9 --- /dev/null +++ b/src/components/IdCard.jsx @@ -0,0 +1,21 @@ +import "../App.css" + +function IdCard(props) { + return ( +First name: {props.firstName}
+Last name: {props.lastName}
+Gender: {props.gender}
+Height: {props.height / 100}m
+Birth: {props.birth.toDateString()}
++ Random value between {min} and {max} => {randomNumber} +
+ ); +} + +export default Random; \ No newline at end of file