forked from InVi-teamates/amazon-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
41 lines (35 loc) · 1.22 KB
/
App.js
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
import './App.css';
import "bootstrap/dist/css/bootstrap.min.css";
import React from "react";
import Footer from './components/footer/Footer';
import Carousel from './components/Carousel';
import CardContainer from './components/CardContainer';
import RowContainer from './components/RowContainer';
import NavBar from './components/NavBar';
import SearchBar from './components/SearchBar';
function App() {
const booksImgUrls = [];
for (let i = 1; i <= 10; i++) {
booksImgUrls.push(process.env.PUBLIC_URL + `/images/books/book${i}.jpg`);
}
const mobilesImgUrls = [];
for (let i = 1; i <= 10; i++) {
mobilesImgUrls.push(process.env.PUBLIC_URL + `/images/mobiles/m${i}.jpg`);
}
for (let i = 1; i <= 10; i++) {
mobilesImgUrls.push(process.env.PUBLIC_URL + `/images/mobiles/m${i}.jpg`);
}
return (
<div>
<SearchBar/>
<NavBar/>
<Carousel />
<CardContainer />
<RowContainer heading="Top Sellers in Books for you" imgUrls={booksImgUrls} />
<RowContainer heading="Popular products in Wireless internationally" imgUrls={mobilesImgUrls} />
<RowContainer heading="Top Sellers in Books for you" imgUrls={booksImgUrls} />
<Footer />
</div>
);
}
export default App;