Profil componente erstellt

This commit is contained in:
Edwina Barbalan 2018-12-12 14:31:54 +01:00
parent 2f9750eae4
commit 985d4a62e2
4 changed files with 44 additions and 0 deletions

BIN
public/img/profil_icon2.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

View File

@ -0,0 +1,15 @@
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
public/profilCard.js Normal file
View File

@ -0,0 +1,19 @@
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
public/profilData.js Normal file
View File

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