-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathApp.js
More file actions
81 lines (79 loc) · 2.17 KB
/
App.js
File metadata and controls
81 lines (79 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import IdCard from './components/IdCard'
import './App.css';
import Greetings from './components/Greetings'
import Random from './components/Random'
import BoxColor from './components/BoxColor'
import CreditCard from './components/CreditCard'
import Rating from './components/Rating'
import DriverCard from './components/DriverCard'
import LikeButton from './components/LikeButton'
import ClickablePicture from './components/ClickablePicture'
import maxImg from './assets/images/maxence.png'
import maxImgClicked from './assets/images/maxence-glasses.png'
import Dice from './components/Dice';
import Carousel from './components/Carousel';
import NumbersTable from './components/NumbersTable';
import RGBColorPicker from './components/RGBColorPicker';
function App() {
return (
<>
<IdCard
lastName='Arce'
firstName='Yerko'
gender='Male'
height={185}
birth={new Date('2000-01-01')}
picture='unaImagen'
/>
<Greetings lang='en'>Yerko</Greetings>
<Random
min={1}
max={10}
/>
<BoxColor
r={255}
g={123}
b={255}
/>
<CreditCard
type="Master card"
number="0123456789018845"
expirationMonth={3}
expirationYear={2021}
bank="BNP"
owner="Maxence Bouret"
bgColor="#11aa99"
color="white"
/>
<Rating>4.4</Rating>
<DriverCard
name="Dara Khosrowshahi"
rating={4.9}
img="https://ubernewsroomapi.10upcdn.com/wp-content/uploads/2017/09/Dara_ELT_Newsroom_1000px.jpg"
car={{
model: "Audi A3",
licensePlate: "BE33ER"
}}
/>
<LikeButton />
<ClickablePicture
img={maxImg}
imgClicked={maxImgClicked}
/>
<Dice />
<Carousel
arrayPhotos={[
'https://randomuser.me/api/portraits/women/1.jpg',
'https://randomuser.me/api/portraits/men/1.jpg',
'https://randomuser.me/api/portraits/women/2.jpg',
'https://randomuser.me/api/portraits/men/2.jpg'
]}
/>
<NumbersTable
limit={10}
/>
<RGBColorPicker />
</>
);
}
export default App;