app.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <head>
  2. <title>Music App</title>
  3. <meta name="viewport" content="width=device-width, initial-scale=1">
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
  6. <link href='http://fonts.googleapis.com/css?family=Oxygen:400,300,700' rel='stylesheet' type='text/css'>
  7. <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  8. <script src="https://connect.soundcloud.com/sdk-2.0.0.js"></script>
  9. <script>
  10. function init() {
  11. SC.initialize({
  12. client_id: "577d3fbbdb5fe05bb4af698d686508fe"
  13. });
  14. }
  15. </script>
  16. </head>
  17. <body onload="init()">
  18. </body>
  19. <template name="register">
  20. <div class="container">
  21. <button class="button" id="login">Login</button>
  22. <h1>Sign Up</h1>
  23. <form class="form">
  24. <input type="text" name="registerUsername" placeholder="Enter a username" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter a username'" required/>
  25. <input type="email" name="registerEmail" placeholder="Enter your email" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter your email'" required>
  26. <input type="password" name="registerPassword" placeholder="Enter a password" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter a password'" required/>
  27. <p>By registering, you agree to the Terms and Conditions and Privacy Policy.</p>
  28. <button type="submit">Sign Up</button>
  29. </form>
  30. <button class="btn-social" id="facebook-login"><i class="fa fa-facebook pull-left"></i>Signup with Facebook</button><p></p>
  31. <button class="btn-social" id="github-login"><i class="fa fa-github pull-left"></i>Signup with Github</button>
  32. </div>
  33. </template>
  34. <template name="login">
  35. <div class="container">
  36. <button class="button" id="register">Sign Up</button>
  37. <h1>Login</h1>
  38. <form class="form">
  39. <input type="text" name="loginUsername" placeholder="Enter your username" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter your username'" required/>
  40. <input type="password" name="loginPassword" placeholder="Enter your password" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter your password'" required/>
  41. <button type="submit">Login</button>
  42. </form>
  43. <button class="btn-social" id="facebook-login"><i class="fa fa-facebook pull-left"></i>Login with Facebook</button><p></p>
  44. <button class="btn-social" id="github-login"><i class="fa fa-github pull-left"></i>Login with Github</button>
  45. </div>
  46. </template>
  47. <template name="dashboard">
  48. <div class="landing">
  49. <!--ul>
  50. <li class="station">
  51. <h3>Name</h3>
  52. <h5>Song</h5>
  53. </li>
  54. <li class="station">
  55. <h3>Name</h3>
  56. <h5>Song</h5>
  57. </li>
  58. <li class="station">
  59. <h3>Name</h3>
  60. <h5>Song</h5>
  61. </li>
  62. <li class="station">
  63. <h3>Name</h3>
  64. <h5>Song</h5>
  65. </li>
  66. </ul-->
  67. <div class="row">
  68. <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
  69. <div class="station">
  70. <h3>Name</h3>
  71. <h5>Song</h5>
  72. </div>
  73. </div>
  74. <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
  75. <div class="station">
  76. <h3>Name</h3>
  77. <h5>Song</h5>
  78. </div>
  79. </div>
  80. <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
  81. <div class="station">
  82. <h3>Name</h3>
  83. <h5>Song</h5>
  84. </div>
  85. </div>
  86. <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
  87. <div class="station">
  88. <h3>Name</h3>
  89. <h5>Song</h5>
  90. </div>
  91. </div>
  92. </div>
  93. <ul class="bg-bubbles">
  94. <li></li>
  95. <li></li>
  96. <li></li>
  97. <li></li>
  98. <li></li>
  99. <li></li>
  100. <li></li>
  101. <li></li>
  102. <li></li>
  103. <li></li>
  104. </ul>
  105. </div>
  106. {{> footer}}
  107. </template>
  108. <template name="footer">
  109. <footer>
  110. <p>Copyright © 2015 All Right Reserved</p>
  111. <p>Built by <a href="https://github.com/AkiraLaine" target="_blank">@AkiraLaine</a> |
  112. <a href="https://github.com/KrisVos130" target="_blank">@KrisVos130</a> |
  113. <a href="https://github.com/Johand199" target="_blank">@Johand199</a> |
  114. <a href="https://github.com/Septimus" target="_blank">@Septimus</a></p>
  115. </footer>
  116. </template>
  117. <template name="Home">
  118. {{#if currentUser}}
  119. <div id="dashboard">
  120. {{> dashboard}}
  121. </div>
  122. {{else}}
  123. <div class="landing">
  124. <div id="login-view">
  125. {{> login}}
  126. </div>
  127. <div id="register-view" style="display:none">
  128. {{> register}}
  129. </div>
  130. <ul class="bg-bubbles">
  131. <li></li>
  132. <li></li>
  133. <li></li>
  134. <li></li>
  135. <li></li>
  136. <li></li>
  137. <li></li>
  138. <li></li>
  139. <li></li>
  140. <li></li>
  141. </ul>
  142. {{> footer}}
  143. </div>
  144. {{/if}}
  145. </template>
  146. <template name="Room">
  147. <h1>{{{type}}}</h1>
  148. <h2>{{duration}}</h2>
  149. <h2>{{song}}</h2>
  150. </template>