/
MusicView.js
130 lines (125 loc) · 5.35 KB
/
MusicView.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import React from 'react';
import styled from 'styled-components';
const MusicViewContainer = styled.section``;
const MusicDescription = styled.p``;
const ResponsiveYoutubeContainer = styled.div`
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
& iframe,
& object,
& embed {
border: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
`;
const YoutubeList = styled.ul`
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
`;
const YoutubeListItem = styled.li`
flex: 0 0 100%;
@media (min-width: 769px) {
flex: 0 0 50%;
}
`;
const BandcampList = styled.ul`
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
`;
const BandcampListItem = styled.li`
flex: 0 0 100%;
@media (min-width: 769px) {
flex: 0 0 50%;
}
// @media (min-width: 920px) {
// flex: 0 0 33.333%;
// }
`;
const ResponsiveBandcampContainer = styled.div`
position: relative;
overflow: hidden;
font-size: 0;
& iframe,
& object,
& embed {
border: none;
width: 100%;
height: 120px;
}
`;
export default function MusicView() {
return (
<MusicViewContainer>
{/* <section>
<MusicDescription>An eclectic variety of styles and immersive soundscapes.</MusicDescription>
</section> */}
<section>
<YoutubeList>
<YoutubeListItem>
<ResponsiveYoutubeContainer>
<iframe width="560"
height="315"
src="https://www.youtube.com/embed/Ae3a2k8xAEs"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
</ResponsiveYoutubeContainer>
</YoutubeListItem>
<YoutubeListItem>
<ResponsiveYoutubeContainer>
<iframe width="560"
height="315"
src="https://www.youtube.com/embed/kJyRSvX__0M"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
</ResponsiveYoutubeContainer>
</YoutubeListItem>
</YoutubeList>
</section>
<section>
<BandcampList>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album=2906715428/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/album/role-playing-pizza-game">Role Playing Pizza Game by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/track=2247218558/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/track/thomas-the-rocket-engine">Thomas the Rocket Engine by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album=1438955147/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/album/oddities">Oddities by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album=3353210599/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/album/sol-survivor">Sol Survivor by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album=3032009350/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/album/unleeched">UnLeeched by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
<BandcampListItem>
<ResponsiveBandcampContainer>
<iframe src="https://bandcamp.com/EmbeddedPlayer/album=3706494023/size=large/bgcol=333333/linkcol=fe7eaf/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://orsi.bandcamp.com/album/battle-bits">Battle Bits by Jonathon Orsi</a></iframe>
</ResponsiveBandcampContainer>
</BandcampListItem>
</BandcampList>
</section>
</MusicViewContainer>
);
}