StationBody.Vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <div class="station">
  3. <div class="row">
  4. <div class="col-md-8 push-md-2 col-sm-10 push-sm-1 col-xs-12">
  5. <div id="player"></div>
  6. </div>
  7. <div class="col-md-8 push-md-2 col-sm-10 push-sm-1 col-xs-12">
  8. <div class="row">
  9. <div class="col-md-8 col-sm-12 col-sm-12">
  10. <h4 id="time-display"><span id="time-elapsed">2:58</span> / <span id="time-total">3:19</span></h4>
  11. <h3>Stitches</h3>
  12. <h4 class="thin" style="margin-left: 0">Shawn Mendes</h4>
  13. <div class="row">
  14. <form style="margin-top: 12px; margin-bottom: 0;" action="#" class="col-md-4 col-lg-4 col-xs-4 col-sm-4">
  15. <p style="margin-top: 0; position: relative;">
  16. <input type="range" id="volume_slider" min="0" max="100" class="active">
  17. </p>
  18. </form>
  19. <div class="col-xs-8 col-sm-5 col-md-5" style="float: right;">
  20. <ul id="ratings">
  21. <li id="like" class="right"><span class="flow-text">2 </span> <i id="thumbs_up" class="material-icons grey-text">thumb_up</i></li>
  22. <li style="margin-right: 10px;" id="dislike" class="right"><span class="flow-text">1 </span><i id="thumbs_down" class="material-icons grey-text">thumb_down</i></li>
  23. </ul>
  24. </div>
  25. </div>
  26. <div class="seeker-bar-container white" id="preview-progress">
  27. <div class="seeker-bar light-blue" style="width: 60.9869%;"></div>
  28. </div>
  29. </div>
  30. <img alt="Not loading" class="img-responsive col-md-4 col-xs-12 col-sm-12" onerror="this.src='/notes.png'" id="song-image" style="margin-top: 10px !important" src="https://i.scdn.co/image/32031982517529900c02654c460dc9ac6c47c598" />
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </template>
  36. <style lang="sass">
  37. .station {
  38. flex: 1 0 auto;
  39. padding-top: 4.5vw;
  40. transition: all 0.1s;
  41. margin: 0 auto;
  42. max-width: 1280px;
  43. width: 90%;
  44. color: black;
  45. @media only screen and (min-width: 993px) {
  46. width: 70%;
  47. }
  48. @media only screen and (min-width: 601px) {
  49. width: 85%;
  50. }
  51. input[type=range] {
  52. -webkit-appearance: none;
  53. width: 100%;
  54. margin: 7.3px 0;
  55. }
  56. input[type=range]:focus {
  57. outline: none;
  58. }
  59. input[type=range]::-webkit-slider-runnable-track {
  60. width: 100%;
  61. height: 5.2px;
  62. cursor: pointer;
  63. box-shadow: 0;
  64. background: #c2c0c2;
  65. border-radius: 0;
  66. border: 0;
  67. }
  68. input[type=range]::-webkit-slider-thumb {
  69. box-shadow: 0;
  70. border: 0;
  71. height: 19px;
  72. width: 19px;
  73. border-radius: 15px;
  74. background: #03a9f4;
  75. cursor: pointer;
  76. -webkit-appearance: none;
  77. margin-top: -6.5px;
  78. }
  79. input[type=range]::-moz-range-track {
  80. width: 100%;
  81. height: 5.2px;
  82. cursor: pointer;
  83. box-shadow: 0;
  84. background: #c2c0c2;
  85. border-radius: 0;
  86. border: 0;
  87. }
  88. input[type=range]::-moz-range-thumb {
  89. box-shadow: 0;
  90. border: 0;
  91. height: 19px;
  92. width: 19px;
  93. border-radius: 15px;
  94. background: #03a9f4;
  95. cursor: pointer;
  96. -webkit-appearance: none;
  97. margin-top: -6.5px;
  98. }
  99. input[type=range]::-ms-track {
  100. width: 100%;
  101. height: 5.2px;
  102. cursor: pointer;
  103. box-shadow: 0;
  104. background: #c2c0c2;
  105. border-radius: 1.3px;
  106. }
  107. input[type=range]::-ms-fill-lower {
  108. background: #c2c0c2;
  109. border: 0;
  110. border-radius: 0;
  111. box-shadow: 0;
  112. }
  113. input[type=range]::-ms-fill-upper {
  114. background: #c2c0c2;
  115. border: 0;
  116. border-radius: 0;
  117. box-shadow: 0;
  118. }
  119. input[type=range]::-ms-thumb {
  120. box-shadow: 0;
  121. border: 0;
  122. height: 15px;
  123. width: 15px;
  124. border-radius: 15px;
  125. background: #03a9f4;
  126. cursor: pointer;
  127. -webkit-appearance: none;
  128. margin-top: 1.5px;
  129. }
  130. }
  131. .room-title {
  132. left: 50%;
  133. -webkit-transform: translateX(-50%);
  134. transform: translateX(-50%);
  135. font-size: 2.1em;
  136. }
  137. #ratings {
  138. span {
  139. font-size: 1.68rem;
  140. }
  141. i {
  142. color: #9e9e9e !important;
  143. cursor: pointer;
  144. transition: 0.1s color;
  145. }
  146. }
  147. #time-display {
  148. margin-top: 30px;
  149. float: right;
  150. }
  151. #thumbs_up:hover {
  152. color: #87D37C !important;
  153. }
  154. #thumbs_down:hover {
  155. color: #EC644B !important;
  156. }
  157. .seeker-bar-container {
  158. position: relative;
  159. height: 5px;
  160. display: block;
  161. width: 100%;
  162. overflow: hidden;
  163. }
  164. .seeker-bar {
  165. top: 0;
  166. left: 0;
  167. bottom: 0;
  168. position: absolute;
  169. }
  170. ul {
  171. list-style: none;
  172. margin: 0;
  173. display: block;
  174. }
  175. h1, h2, h3, h4, h5, h6 {
  176. font-weight: 400;
  177. line-height: 1.1;
  178. }
  179. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  180. font-weight: inherit;
  181. }
  182. h1 {
  183. font-size: 4.2rem;
  184. line-height: 110%;
  185. margin: 2.1rem 0 1.68rem 0;
  186. }
  187. h2 {
  188. font-size: 3.56rem;
  189. line-height: 110%;
  190. margin: 1.78rem 0 1.424rem 0;
  191. }
  192. h3 {
  193. font-size: 2.92rem;
  194. line-height: 110%;
  195. margin: 1.46rem 0 1.168rem 0;
  196. }
  197. h4 {
  198. font-size: 2.28rem;
  199. line-height: 110%;
  200. margin: 1.14rem 0 0.912rem 0;
  201. }
  202. h5 {
  203. font-size: 1.64rem;
  204. line-height: 110%;
  205. margin: 0.82rem 0 0.656rem 0;
  206. }
  207. h6 {
  208. font-size: 1rem;
  209. line-height: 110%;
  210. margin: 0.5rem 0 0.4rem 0;
  211. }
  212. .thin {
  213. font-weight: 200;
  214. }
  215. .left {
  216. float: left !important;
  217. }
  218. .right {
  219. float: right !important;
  220. }
  221. .light-blue {
  222. background-color: #03a9f4 !important;
  223. }
  224. .white {
  225. background-color: #FFFFFF !important;
  226. }
  227. </style>