kaboom
This commit is contained in:
parent
fb55f64cf1
commit
73aa49f7c2
2 changed files with 68 additions and 38 deletions
|
|
@ -384,32 +384,45 @@ justify-content: space-between;
|
||||||
|
|
||||||
#radio {
|
#radio {
|
||||||
|
|
||||||
#recordPlayer {
|
|
||||||
height: 300px;
|
|
||||||
width: 300px;
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center center;
|
|
||||||
border-radius:7px;
|
|
||||||
transition: all linear 1s;
|
|
||||||
}
|
|
||||||
.spinner {
|
|
||||||
border-radius: 300px !important;
|
|
||||||
animation: rotate 10s linear infinite;
|
|
||||||
}
|
|
||||||
.stop {
|
|
||||||
animation-play-state: paused;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radioplayer {
|
.radioplayer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
#recordPlayer {
|
||||||
|
flex: 1 1 300px;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center center;
|
||||||
|
margin-top:40px;
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-radius:7px;
|
||||||
|
transition: all linear 1s;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.legend-container {
|
.legend-container {
|
||||||
align-content: center;
|
align-content: center;
|
||||||
margin-left: 40px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
flex: 1 1 300px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.spinner {
|
||||||
|
border-radius: 2000px !important;
|
||||||
|
animation: rotate 10s linear infinite;
|
||||||
|
border-style: double;
|
||||||
|
border-color: purple;
|
||||||
|
border-width: 10px;
|
||||||
|
}
|
||||||
|
.stop {
|
||||||
|
animation-play-state: paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legend {
|
.legend {
|
||||||
|
|
@ -423,24 +436,16 @@ justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
#myBtn {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
font-size: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes rotate {
|
|
||||||
0% {
|
|
||||||
transform: rotate(0deg)
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: rotate(360deg)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 720px) {
|
@media screen and (max-width: 720px) {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -503,6 +508,23 @@ justify-content: space-between;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#radio {
|
||||||
|
|
||||||
|
|
||||||
|
#myBtn {
|
||||||
|
font-size: 4em;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ANIMATIONS */
|
||||||
|
|
||||||
|
@keyframes rotate {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg)
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,10 @@
|
||||||
<h2>RadioStation</h2>
|
<h2>RadioStation</h2>
|
||||||
<h4>𝕭𝖆𝖘𝖘𝖕𝖎𝖘𝖙𝖔𝖑 𝕽𝖆𝖉𝖎𝖔 𝕾𝖙𝖆𝖙𝖎𝖔𝖓</h4>
|
<h4>𝕭𝖆𝖘𝖘𝖕𝖎𝖘𝖙𝖔𝖑 𝕽𝖆𝖉𝖎𝖔 𝕾𝖙𝖆𝖙𝖎𝖔𝖓</h4>
|
||||||
<p>777% music, without commercials! RobotDJ-sets and live interventions! This is the sound of freedom.</p>
|
<p>777% music, without commercials! RobotDJ-sets and live interventions! This is the sound of freedom.</p>
|
||||||
<a class="button" href="https://radio.basspistol.com/">Request song 📻</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="border radioplayer">
|
<div class="border radioplayer">
|
||||||
<div id="recordPlayer">
|
|
||||||
<img src="" />
|
|
||||||
</div>
|
|
||||||
<div class="legend-container">
|
<div class="legend-container">
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<button id="myBtn">▶️</button>
|
<button id="myBtn">▶️</button>
|
||||||
|
|
@ -28,7 +26,17 @@
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<br />
|
||||||
<a href="" id="supportButtonDelux" class="button player">🫰 Support this Artist</a>
|
<a href="" id="supportButtonDelux" class="button player">🫰 Support this Artist</a>
|
||||||
|
<br />
|
||||||
|
<a class="button" href="https://radio.basspistol.com/">📻 Request song</a>
|
||||||
|
<br />
|
||||||
|
<a class="button" href="https://radio.basspistol.com/public/basspistol/schedule">🗓️ Schedule</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="recordPlayer">
|
||||||
|
<img src="" id="coverArt" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section-footers"></div>
|
<div class="section-footers"></div>
|
||||||
|
|
@ -48,8 +56,8 @@
|
||||||
let supportButtonDelux = document.getElementById('supportButtonDelux');
|
let supportButtonDelux = document.getElementById('supportButtonDelux');
|
||||||
|
|
||||||
// record player
|
// record player
|
||||||
let recordPlayer = document.getElementById('recordPlayer');
|
let coverArt = document.getElementById('coverArt');
|
||||||
recordPlayer.classList.add("btn");
|
coverArt.classList.add("btn");
|
||||||
|
|
||||||
// Title and Artist
|
// Title and Artist
|
||||||
let npArtist = document.getElementById('npArtist');
|
let npArtist = document.getElementById('npArtist');
|
||||||
|
|
@ -67,7 +75,7 @@
|
||||||
supportClicker.map(function(support) {
|
supportClicker.map(function(support) {
|
||||||
|
|
||||||
// set background image in record player
|
// set background image in record player
|
||||||
recordPlayer.style.backgroundImage = "url(" + `${support.now_playing.song.art}` + ")";
|
coverArt.src = `${support.now_playing.song.art}`;
|
||||||
|
|
||||||
// print text
|
// print text
|
||||||
|
|
||||||
|
|
@ -104,12 +112,12 @@
|
||||||
if (audio.paused) {
|
if (audio.paused) {
|
||||||
audio.play();
|
audio.play();
|
||||||
btn.innerHTML = "⏸️";
|
btn.innerHTML = "⏸️";
|
||||||
recordPlayer.classList.add("spinner");
|
coverArt.classList.add("spinner");
|
||||||
recordPlayer.classList.remove("stop");
|
coverArt.classList.remove("stop");
|
||||||
} else {
|
} else {
|
||||||
audio.pause();
|
audio.pause();
|
||||||
btn.innerHTML = "▶️";
|
btn.innerHTML = "▶️";
|
||||||
recordPlayer.classList.add("stop");
|
coverArt.classList.add("stop");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue