Profil componente erstellt
This commit is contained in:
parent
2f9750eae4
commit
985d4a62e2
BIN
public/img/profil_icon2.PNG
Normal file
BIN
public/img/profil_icon2.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 205 KiB |
@ -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
19
public/profilCard.js
Normal 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
10
public/profilData.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
_profilcard = [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
user: 'Benutzername',
|
||||||
|
major: 'Studiengang',
|
||||||
|
semester: 'Semester',
|
||||||
|
abos: '7',
|
||||||
|
saved: '3',
|
||||||
|
},
|
||||||
|
];
|
Loading…
x
Reference in New Issue
Block a user