HomeBody.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div class="modal fade" id="register" tabindex="-1" role="dialog" aria-labelledby="register-modal">
  3. <div class="modal-dialog" role="document">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  7. <h4 class="modal-title">Register</h4>
  8. </div>
  9. <div class="modal-body">
  10. <input class="form-control" type="text" placeholder="Email..."/>
  11. <input class="form-control" type="text" placeholder="Username..."/>
  12. <input class="form-control" type="password" placeholder="Password..."/>
  13. <div class="g-recaptcha" data-sitekey="6Ld5jygTAAAAAEi0E1IwovUuVFhZKctMvKnY553W"></div>
  14. </div>
  15. <div class="modal-footer">
  16. <button type="button" class="btn btn-primary" data-dismiss="modal">Submit</button>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <!-- Have to use button, because of a scope error when using it with line 26 :( -->
  22. <button @click="$parent.switchView('home', 'station')">Join Station</button>
  23. <!-- Will be deleted soon ^^ -->
  24. <div class="group" v-for="group in groups">
  25. <div class="group-title">{{group.name}}</div>
  26. <div class="group-rooms">
  27. <div class="rooms-room" v-for="room in group.rooms">
  28. <img class="room-image" :src="room.thumbnail" />
  29. <div class="room-info">
  30. <div class="room-grid-left">
  31. <h3>{{ room.name }}</h3>
  32. <p>{{ room.description }}</p>
  33. </div>
  34. <div class="room-grid-right">
  35. <div>{{ room.users }}&nbsp;&nbsp;<i class="fa fa-user" aria-hidden="true"></i></div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. groups: [
  47. {
  48. id: "lu08gw56571r4497wrk9",
  49. name: "Official Rooms",
  50. rooms: [
  51. { id: "73qvw65746acvo8yqfr", thumbnail: "https://lh6.googleusercontent.com/-ghASz3s6yL4/AAAAAAAAAAI/AAAAAAAAALc/tFblPp2myu0/s0-c-k-no-ns/photo.jpg", name: "Country", description: "Johnny Cash - I Walk The Line", users: 10 },
  52. { id: "enxcysmhn1k7ld56ogvi", thumbnail: "http://66.media.tumblr.com/1734069af425e491fae7deae0a19869f/tumblr_o0i0xmIYrF1v421f2o1_1280.jpg", name: "Pop", description: "Sia - Cheap Thrills", users: 14 },
  53. { id: "kqa99gbva7lij05dn29", thumbnail: "http://www.youredm.com/wp-content/uploads/2014/09/taking-you-higher.jpg", name: "Chill", description: "MrSuicideSheep - Taking you higher", users: 13 },
  54. { id: "w19hu791iiub6wmjf9a4i", thumbnail: "http://edmsauce.wpengine.netdna-cdn.com/wp-content/uploads/2012/12/Deadmau5-album-title-goes-here.jpg", name: "EDM", description: "Deadmau5 - There Might Be Coffee", users: 13 }
  55. ]
  56. },
  57. {
  58. id: "g2b8v03xaedj8ht1emi",
  59. name: "Trending Rooms",
  60. rooms: [
  61. { id: "73qvw65746acvo8yqfr", thumbnail: "https://lh6.googleusercontent.com/-ghASz3s6yL4/AAAAAAAAAAI/AAAAAAAAALc/tFblPp2myu0/s0-c-k-no-ns/photo.jpg", name: "Country", description: "Johnny Cash - I Walk The Line", users: 10 },
  62. { id: "enxcysmhn1k7ld56ogvi", thumbnail: "http://66.media.tumblr.com/1734069af425e491fae7deae0a19869f/tumblr_o0i0xmIYrF1v421f2o1_1280.jpg", name: "Pop", description: "Sia - Cheap Thrills", users: 14 },
  63. { id: "kqa99gbva7lij05dn29", thumbnail: "http://www.youredm.com/wp-content/uploads/2014/09/taking-you-higher.jpg", name: "Chill", description: "MrSuicideSheep - Taking you higher", users: 13 },
  64. { id: "w19hu791iiub6wmjf9a4i", thumbnail: "http://edmsauce.wpengine.netdna-cdn.com/wp-content/uploads/2012/12/Deadmau5-album-title-goes-here.jpg", name: "EDM", description: "Deadmau5 - There Might Be Coffee", users: 13 }
  65. ]
  66. }
  67. ]
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="sass" scoped>
  73. .g-recaptcha {
  74. display: flex;
  75. justify-content: center;
  76. margin-top: 10px;
  77. }
  78. .group {
  79. width: 100%;
  80. height: 448px;
  81. margin: 64px 0 64px 0;
  82. .group-title {
  83. float: left;
  84. clear: none;
  85. width: 100%;
  86. height: 64px;
  87. line-height: 48px;
  88. text-align: center;
  89. font-size: 48px;
  90. }
  91. .group-rooms {
  92. white-space: nowrap;
  93. text-align: center;
  94. overflow: hidden;
  95. float: left;
  96. clear: none;
  97. width: 100%;
  98. height: 384px;
  99. .rooms-room {
  100. position: relative;
  101. top: 16px;
  102. display: inline-block;
  103. clear: none;
  104. width: 256px;
  105. height: 345px;
  106. margin: 0 16px 0 16px;
  107. box-shadow: 0 1px 6px 2px rgba(0, 0, 0, 0.25);
  108. cursor: pointer;
  109. .room-info {
  110. display: flex;
  111. flex-direction: row;
  112. align-items: center;
  113. padding: 5px;
  114. }
  115. .room-image {
  116. width: 100%;
  117. height: 256px;
  118. }
  119. .room-grid-left {
  120. display: flex;
  121. flex-direction: column;
  122. width: 75%;
  123. text-align: left;
  124. padding-left: 10px;
  125. h3, p {
  126. margin: 0;
  127. white-space: normal;
  128. }
  129. }
  130. .room-grid-right {
  131. display: flex;
  132. flex-direction: column;
  133. width: 25%;
  134. }
  135. }
  136. }
  137. }
  138. </style>