-
Notifications
You must be signed in to change notification settings - Fork 17
/
Home.js
102 lines (99 loc) · 3.73 KB
/
Home.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import React from "react";
import { Link } from "react-router-dom";
import "./Home.css";
import { Tabs } from "antd";
import { library } from "../helpers/albumList";
const { TabPane } = Tabs;
const Home = () => {
return (
<>
<Tabs defaultActiveKey="1" centered>
<TabPane tab="FEATURED" key="1">
<h1 className="featuredTitle">Today Is The Day</h1>
<div className="albums">
{library.map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
</TabPane>
<TabPane tab="GENRES & MOODS" key="2">
<h1 className="featuredTitle">Pop Music</h1>
<div className="albums">
{library.slice(7, 13).map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
<h1 className="featuredTitle">Top Hits</h1>
<div className="albums">
{library.slice(5, 11).map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
<h1 className="featuredTitle">Country</h1>
<div className="albums">
{library.slice(0, 6).map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
<h1 className="featuredTitle">Classics</h1>
<div className="albums">
{library.slice(5, 11).map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
</TabPane>
<TabPane tab="NEW RELEASES" key="3">
<h1 className="featuredTitle">Hot Off The Press</h1>
<div className="albums">
{library.map((e) => (
<Link to="/album" state={e} className="albumSelection">
<img
src={e.image}
alt="bull"
style={{ width: "150px", marginBottom: "10px" }}
></img>
<p>{e.title}</p>
</Link>
))}
</div>
</TabPane>
</Tabs>
</>
);
};
export default Home;