forked from arpan-mondal/De-Fi-Sportify-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
60 lines (55 loc) · 1.73 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import React from 'react';
import { useState } from 'react';
import { Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import Album from './pages/Album';
import './App.css';
import { Link } from "react-router-dom";
import Player from "./components/AudioPlayer";
import { Layout } from "antd";
import Spotify from "./images/Spotify.png";
import { SearchOutlined, DownCircleOutlined } from "@ant-design/icons";
const { Content, Sider, Footer } = Layout;
const App = () => {
const [nftAlbum, setNftAlbum] = useState();
return (
<>
<Layout>
<Layout>
<Sider width={300} className="sideBar">
<img src={Spotify} alt="Logo" className="logo"></img>
<div className="searchBar">
<span> Search </span>
<SearchOutlined style={{ fontSize: "30px" }} />
</div>
<Link to="/">
<p style={{ color: "#1DB954" }}> Home </p>
</Link>
<p> Your Music </p>
<div className="recentPlayed">
<p className="recentTitle">RECENTLY PLAYED</p>
<div className="install">
<span> Install App </span>
<DownCircleOutlined style={{ fontSize: "30px" }} />
</div>
</div>
</Sider>
<Content className="contentWindow">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/album" element={<Album setNftAlbum={setNftAlbum}/>} />
</Routes>
</Content>
</Layout>
<Footer className="footer">
{nftAlbum &&
<Player
url={nftAlbum}
/>
}
</Footer>
</Layout>
</>
);
}
export default App;