diff --git a/src/App.js b/src/App.js
index e7ca67f20..6b6c1f74a 100755
--- a/src/App.js
+++ b/src/App.js
@@ -1,14 +1,93 @@
import React, { Component } from 'react';
+import IdCard from './Components/IdCard';
+import Greetings from './Components/Greetings'
+import Random from './Components/Random.js';
+import BoxColor from './Components/BoxColor';
+import CreditCard from './Components/CreditCard';
+import Rating from './Components/Rating';
class App extends Component {
render() {
+
return (
-
IdCard
- {/* TODO: Use the IdCard component */}
+
IdCard
+
+
+
Greetings
- {/* TODO: Use the Greetings component */}
+
+
Ludwig
+
François
+
+
+
Random
+
+
+
+
+
+
Boxcolor
+
+
+
+
+
CreditCard
+
+
+
+
+
+
+
+
Rating
+ 0
+ 1.49
+ 1.5
+ 3
+ 4
+ 5
+
+
);
}
diff --git a/src/Components/BoxColor.js b/src/Components/BoxColor.js
new file mode 100644
index 000000000..63ae2366b
--- /dev/null
+++ b/src/Components/BoxColor.js
@@ -0,0 +1,13 @@
+import React from 'react';
+
+
+ function BoxColor( props ) {
+ var a = `rgb( ${props.r}, ${props.g}, ${props.b} )`
+ var divstyle = {backgroundColor: a}
+ return (
+
+ )
+}
+export default BoxColor;
diff --git a/src/Components/CreditCard.js b/src/Components/CreditCard.js
new file mode 100644
index 000000000..5eae1f70e
--- /dev/null
+++ b/src/Components/CreditCard.js
@@ -0,0 +1,38 @@
+import React from 'react'
+
+function CreditCard(props) {
+
+ function esconderNum (){
+ let maskString = '';
+ for (var i = 0; i < props.number.length; i++){
+ if(i < props.number.length - 4){
+ maskString = maskString + '*';
+ }
+ else {
+ maskString = maskString + props.number.charAt(i)
+ }
+ }
+ return maskString
+ }
+
+
+
+
+ return (
+
+
type: {props.type}
+
+
number: {esconderNum()}
+
expiration: {props.expirationMonth}/{props.expirationYear}
+
+
+
bank: {props.bank}
+
owner: {props.owner}
+
+
bgColors: {props.bgColors}
+
color: {props.color}
+
+ )
+}
+
+export default CreditCard
diff --git a/src/Components/Greetings.js b/src/Components/Greetings.js
new file mode 100644
index 000000000..0fc35e147
--- /dev/null
+++ b/src/Components/Greetings.js
@@ -0,0 +1,22 @@
+import React from 'react'
+
+function Greetings(props) {
+ const languaje =() =>{
+ if(props.lang === "de") {
+ return 'Hallo'
+ }
+ else{
+ return 'Bonjour'
+ }
+}
+ return (
+
+
+
{languaje()} {props.children}
+
+
+ )
+}
+
+
+export default Greetings
diff --git a/src/Components/IdCard.js b/src/Components/IdCard.js
new file mode 100644
index 000000000..8b78afedf
--- /dev/null
+++ b/src/Components/IdCard.js
@@ -0,0 +1,16 @@
+
+import React from 'react'
+
+export default function IdCard(props) {
+ return (
+
+
firstName: {props.firstName}
+
lastName: {props.lastName}
+
gender: {props.gender}
+
height: {props.height}
+
birth: {props.firstbirth}
+
picture: {props.picture}
+
+
+ )
+}
diff --git a/src/Components/Random.js b/src/Components/Random.js
new file mode 100644
index 000000000..47a40c14b
--- /dev/null
+++ b/src/Components/Random.js
@@ -0,0 +1,16 @@
+import React from 'react'
+
+function Random(props) {
+ const random = () => {
+ return Math.round(Math.random()*(props.max - props.min) + props.min);
+
+ }
+ return (
+
+
+
Random value between {props.min} and{props.max} -> {random()}
+
+ )
+}
+
+export default Random;
diff --git a/src/Components/Rating.js b/src/Components/Rating.js
new file mode 100644
index 000000000..733471a1e
--- /dev/null
+++ b/src/Components/Rating.js
@@ -0,0 +1,41 @@
+import React from 'react'
+
+function Rating(props) {
+ const star = Math.floor(props.child);
+
+ // let rating = '';
+
+ // switch (star) {
+
+ // case 0:
+ // rating = '☆☆☆☆☆';
+ // break;
+ // case 1:
+ // rating = '★☆☆☆☆';
+ // break;
+ // case 2:
+ // rating = '★★☆☆☆';
+ // break;
+ // case 3:
+ // rating = '★★★☆☆';
+ // break;
+ // case 4:
+ // rating = '★★★★☆';
+ // break;
+ // case 5:
+ // rating = '★★★★★';
+ // break;
+ // default:
+ // break;
+ // }
+if(star === 1){
+ return '☆☆☆☆☆'
+}
+
+ return (
+
+ )
+}
+export default Rating;
\ No newline at end of file
diff --git a/src/index.css b/src/index.css
index cee5f348f..85ce772c0 100755
--- a/src/index.css
+++ b/src/index.css
@@ -11,4 +11,5 @@ body {
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
+
}