Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profilCard.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Vue.component('ProfilCard', {
  2. template: `<div>
  3. <div class="profil-card card">
  4. <br/>
  5. <img class="prof-image" src="img/profil_icon.png" alt="Card image cap">
  6. <div class="logout-item"><i class="material-icons" @click="$router.push('/login')">exit_to_app</i></div>
  7. <div class="profil-text">
  8. <h6><b>Benutzername:</b><br><br>
  9. <b>{{ profil.user }}</b><br><br>
  10. <b>Studiengang:</b><br><br>
  11. {{ profil.major }}<br><br>
  12. <b>Semester:</b><br><br>
  13. {{ profil.semester }}<br></h6>
  14. </div>
  15. <hr class="first">
  16. <div class="btnprofil">
  17. <button @click="isCardModalActive = true"><b>Abonniert: <br/>{{ profil.abos }}</b> <br/></button>
  18. <button @click="$router.push('/bookmark')"><b>Gespeichert:<br/> {{ profil.saved }}</b><br/></button>
  19. </div>
  20. <section>
  21. <b-modal :active.sync="isCardModalActive" :width="600" scroll="keep">
  22. <div class="card">
  23. <header class="modal-card-head">
  24. <p class="modal-card-title">Abonnierte Kanäle</p>
  25. </header>
  26. <div class="card-content">
  27. <div class="content">
  28. <ul>
  29. <li>
  30. </li>
  31. <li>
  32. </li>
  33. <li>
  34. </li>
  35. <li>
  36. </li>
  37. <li>
  38. </li>
  39. <li>
  40. </li>
  41. <li>
  42. </li>
  43. </ul>
  44. </div>
  45. </div>
  46. <footer class="modal-card-foot">
  47. <b-button size="is-medium" @click="isCardModalActive = false">Close</b-button>
  48. </footer>
  49. </div>
  50. </b-modal>
  51. </section>
  52. </div>
  53. </div>`,
  54. props: ['profil'],
  55. data: function () {
  56. return {
  57. isCardModalActive: false
  58. };
  59. },
  60. methods: {
  61. close: function () {
  62. }
  63. }
  64. });