Station.Vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <div class="app">
  3. <header>
  4. <div class="header-inner">
  5. <div class="link left"><i class="material-icons">home</i></div>
  6. <div class="link left"><i class="material-icons">playlist_add</i></div>
  7. <div class="link left"><i class="material-icons">flag</i></div>
  8. <div class="link left"><i class="material-icons">skip_next</i></div>
  9. <span class="room-title">Pop</span>
  10. <div class="link right"><i class="material-icons">queue_music</i></div>
  11. <div class="link right"><i class="material-icons">chat</i></div>
  12. <div class="link right"><i class="material-icons">people</i></div>
  13. </div>
  14. </header>
  15. <div class="body">
  16. <div class="row">
  17. <div class="col-md-8 push-md-2 col-sm-10 push-sm-1 col-xs-12">
  18. <div id="player"></div>
  19. </div>
  20. <div class="col-md-8 push-md-2 col-sm-10 push-sm-1 col-xs-12">
  21. <div class="row">
  22. <div class="col-md-8 col-sm-12 col-sm-12">
  23. </div>
  24. <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" />
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. // TODO: Implement these files
  33. import ComponentHeader from './MusareHeader.vue'
  34. import ComponentBody from './MusareBody.vue'
  35. import ComponentFooter from './MusareFooter.vue'
  36. export default {
  37. data() {
  38. return {}
  39. },
  40. components: { }
  41. }
  42. </script>
  43. <style lang="sass">
  44. * { box-sizing: border-box; font-family: Roboto, sans-serif; }
  45. html {
  46. width: 100%;
  47. height: 100%;
  48. body {
  49. width: 100%;
  50. height: 100%;
  51. margin: 0;
  52. padding: 0;
  53. }
  54. }
  55. header {
  56. width: 100%;
  57. height: 64px;
  58. line-height: 64px;
  59. text-align: center;
  60. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  61. }
  62. .header-inner {
  63. width: 100%;
  64. height: 100%;
  65. background-color: #0091ea;
  66. .title {
  67. font-weight: 300;
  68. font-size: 32px;
  69. }
  70. * {
  71. color: white;
  72. }
  73. .link {
  74. z-index: 101;
  75. position: relative;
  76. padding: 0 16px 0 16px;
  77. cursor: pointer;
  78. height: 64px;
  79. min-width: 64px;
  80. line-height: 64px;
  81. font-size: 2rem;
  82. transition: background-color .3s;
  83. }
  84. .link:hover {
  85. background-color: rgba(0, 0, 0, 0.1);
  86. }
  87. .right {
  88. float: right;
  89. }
  90. .left {
  91. float: left;
  92. }
  93. i.material-icons {
  94. display: block;
  95. font-size: 2rem;
  96. line-height: 64px;
  97. height: 64px;
  98. }
  99. .room-title {
  100. left: 50%;
  101. -webkit-transform: translateX(-50%);
  102. transform: translateX(-50%);
  103. font-size: 2.1em;
  104. }
  105. }
  106. .body {
  107. /*width: 100%;
  108. line-height: 256px;
  109. text-align: center;*/
  110. background-color: green;
  111. flex: 1 0 auto;
  112. padding-top: 4.5vw;
  113. transition: all 0.1s;
  114. margin: 0 auto;
  115. max-width: 1280px;
  116. width: 90%;
  117. }
  118. @media only screen and (min-width: 993px) {
  119. .body {
  120. width: 70%;
  121. }
  122. }
  123. @media only screen and (min-width: 601px) {
  124. .body {
  125. width: 85%;
  126. }
  127. }
  128. </style>