Browse Source

Profil componente erstellt

pull/1/head
Edwina Barbalan 6 years ago
parent
commit
985d4a62e2
4 changed files with 44 additions and 0 deletions
  1. BIN
      public/img/profil_icon2.PNG
  2. 15
    0
      public/profil.js
  3. 19
    0
      public/profilCard.js
  4. 10
    0
      public/profilData.js

BIN
public/img/profil_icon2.PNG View File


+ 15
- 0
public/profil.js View File

const ProfilRouter = {
template: `
<div>
<ProfilCard
v-for="(profil, index) in profilcard"
:key="profil.id"
:profil="profil"
></ProfilCard>
</div>`,
data: function () {
return { profilcard: _profilcard };
},
methods: {
},
};

+ 19
- 0
public/profilCard.js View File

Vue.component('ProfilCard', {
template: `<div>
<img class="profil-img rounded-circle" src="img/profil_icon2.png" width=160px height=160px>
<div class="profil-card card">
<div class="edit-item"><i class="material-icons">edit</i></div>
<div class="profil-text">
<h5><b>{{ profil.user }}</b></h5><br>
<h6>{{ profil.major }}<br><br>
{{ profil.semester }}</h6>
</div>
<hr>
<div class="tab">
<button class="tablinks"><b>Abonniert<br>{{ profil.abos }}</b></button>
<button class="tablinks"><b>Gespeichert<br>{{ profil.saved }}</b></button>
</div>
</div>
</div>`,
props: ['profil']
});

+ 10
- 0
public/profilData.js View File

_profilcard = [
{
id: 1,
user: 'Benutzername',
major: 'Studiengang',
semester: 'Semester',
abos: '7',
saved: '3',
},
];

Loading…
Cancel
Save