app.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 class="bg-bubbles">
  50. <li></li>
  51. <li></li>
  52. <li></li>
  53. <li></li>
  54. <li></li>
  55. <li></li>
  56. <li></li>
  57. <li></li>
  58. <li></li>
  59. <li></li>
  60. </ul>
  61. </div>
  62. {{> footer}}
  63. </template>
  64. <template name="footer">
  65. <footer>
  66. <p>Copyright © 2015 All Right Reserved</p>
  67. <p>Built by <a href="https://github.com/AkiraLaine" target="_blank">@AkiraLaine</a> |
  68. <a href="https://github.com/KrisVos130" target="_blank">@KrisVos130</a> |
  69. <a href="https://github.com/Johand199" target="_blank">@Johand199</a> |
  70. <a href="https://github.com/Septimus" target="_blank">@Septimus</a></p>
  71. </footer>
  72. </template>
  73. <template name="Home">
  74. {{#if currentUser}}
  75. <div id="dashboard">
  76. {{> dashboard}}
  77. </div>
  78. {{else}}
  79. <div class="landing">
  80. <div id="login-view">
  81. {{> login}}
  82. </div>
  83. <div id="register-view" style="display:none">
  84. {{> register}}
  85. </div>
  86. <ul class="bg-bubbles">
  87. <li></li>
  88. <li></li>
  89. <li></li>
  90. <li></li>
  91. <li></li>
  92. <li></li>
  93. <li></li>
  94. <li></li>
  95. <li></li>
  96. <li></li>
  97. </ul>
  98. {{> footer}}
  99. </div>
  100. {{/if}}
  101. </template>
  102. <template name="Room">
  103. <h1>{{{type}}}</h1>
  104. <h2>{{duration}}</h2>
  105. <h2>{{song}}</h2>
  106. </template>