A Pen by Destan Sarpkaya on CodePen.
Last active
October 4, 2019 11:55
-
-
Save destan/eeae09507ebeb754dd40174f602a765f to your computer and use it in GitHub Desktop.
Spotivote player UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main> | |
<header> | |
<img src="https://cdn3.iconfinder.com/data/icons/google-material-design-icons/48/ic_equalizer_48px-128.png" width=80 height=80> | |
<h1> | |
<span class="track-name">Anyone Who Knows What Love Is (Will Understand)</span> | |
<span class="artists-album"> | |
<span class="artist">Irma Thomas</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Straight From The Soul</span> | |
</span> | |
</h1> | |
<time> | |
<span>02:38</span> | |
</time> | |
</header> | |
<section> | |
<div id="leftPane"> | |
<h2> | |
Vote for next song | |
</h2> | |
<ul> | |
<li> | |
<div class="next-in-list"> | |
<div class="track-number"> | |
<span></span> | |
</div> | |
<div class="track-container"> | |
<span class="track-name">The French Song</span> | |
<span class="artists-album"> | |
<span class="artist">Lilian & Manon</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Songs From The Heart</span> | |
</span> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="next-in-list"> | |
<div class="track-number"> | |
<span></span> | |
</div> | |
<div class="track-container"> | |
<span class="track-name">The French Song</span> | |
<span class="artists-album"> | |
<span class="artist">Lilian & Manon</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Songs From The Heart</span> | |
</span> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="next-in-list"> | |
<div class="track-number"> | |
<span></span> | |
</div> | |
<div class="track-container"> | |
<span class="track-name">The French Song</span> | |
<span class="artists-album"> | |
<span class="artist">Lilian & Manon</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Songs From The Heart</span> | |
</span> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="next-in-list"> | |
<div class="track-number"> | |
<span></span> | |
</div> | |
<div class="track-container"> | |
<span class="track-name">The French Song</span> | |
<span class="artists-album"> | |
<span class="artist">Lilian & Manon</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Songs From The Heart</span> | |
</span> | |
</div> | |
</div> | |
</li> | |
<li> | |
<div class="next-in-list"> | |
<div class="track-number"> | |
<span></span> | |
</div> | |
<div class="track-container"> | |
<span class="track-name">The French Song</span> | |
<span class="artists-album"> | |
<span class="artist">Lilian & Manon</span> | |
<span class="artists-album-separator">•</span> | |
<span class="album">Songs From The Heart</span> | |
</span> | |
</div> | |
</div> | |
</li> | |
</ul> | |
</div> | |
<div id="rightPane"> | |
<p> | |
Voting closes in <time>0:39</time> | |
</p> | |
<div style="background-image: url(https://trello-attachments.s3.amazonaws.com/567907f6f74b120d13977086/591cc94e43d6b961f0af402d/643bd1b179183cff46caf0f9efc7077c/image.png);"> | |
</div> | |
<!-- https://smallbiztrends.com/wp-content/uploads/2015/05/qr-code-sample.jpg --> | |
<!-- http://placehold.it/500x500 --> | |
</div> | |
</section> | |
</main> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$bright-color: #1ED760; | |
$bg-color: $bright-color; | |
$light-gray-text: #999; | |
$font-size: 3rem; | |
html, | |
body { | |
background-color: $bg-color; | |
font-size: 16px; | |
padding: 10px; | |
} | |
html, | |
body, | |
main { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
box-sizing: border-box; | |
font-family: sans-serif; | |
} | |
main { | |
font-size: $font-size; | |
background-color: white; | |
&>header>img { | |
width: 4.5rem; | |
height: 4.5rem; | |
} | |
} | |
section, | |
header { | |
display: flex; | |
} | |
header { | |
display: flex; | |
h1 { | |
font-size: $font-size + 1; | |
} | |
time { | |
font-size: $font-size; | |
color: $light-gray-text; | |
margin-right: 5px; | |
>span { | |
vertical-align: middle; | |
} | |
} | |
.artists-album { | |
font-size: $font-size; | |
} | |
} | |
h1 { | |
flex: 1; | |
display: inline-block; | |
padding: 0; | |
margin: 0; | |
font-size: 2rem; | |
} | |
#leftPane, | |
#rightPane { | |
flex: 1; | |
display: inline-block; | |
} | |
#rightPane { | |
text-align: center; | |
display: flex; | |
flex-direction: column; | |
&>p { | |
flex: 0; | |
margin: 4rem 0 0 0; | |
font-size: 2rem; | |
} | |
&>div { | |
flex: 1; | |
background-size: contain; | |
background-position: center; | |
background-repeat: no-repeat; | |
} | |
} | |
#leftPane { | |
counter-reset: trackCounter; | |
h2 { | |
text-align: center; | |
color: $bright-color; | |
margin: 4rem 0 2rem 0; | |
} | |
ul { | |
padding: 0 2rem 0 0; | |
} | |
li { | |
list-style-type: none; | |
//padding: 0.5rem; | |
&:nth-child(odd) { | |
background: #f0f0f0; | |
} | |
} | |
} | |
.next-in-list { | |
display: flex; | |
} | |
.track-container { | |
flex: 1; | |
padding: 0.5rem; | |
} | |
.track-name { | |
} | |
.artists-album { | |
display: block; | |
color: $light-gray-text; | |
font-weight: lighter; | |
font-size: $font-size - 1; | |
} | |
.track-number { | |
width: 50px; | |
background: rgba(0,0,0,.2); | |
color: white; | |
text-align: center; | |
margin-right: 10px; | |
&>span { | |
vertical-align: middle; | |
line-height: 6rem; | |
&::before { | |
counter-increment: trackCounter; | |
content: counter(trackCounter); | |
} | |
} | |
} | |
.play.icon::before { | |
content: '▶'; | |
font-size: 4rem; | |
margin: 0 20px; | |
font-style: normal; | |
line-height: 4rem; | |
color: #2EBD59; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment