commit | author | age
|
ff51ab
|
1 |
<template> |
CM |
2 |
<div> |
|
3 |
<the-header></the-header> |
|
4 |
<badge-list></badge-list> |
|
5 |
<user-info |
|
6 |
:full-name="activeUser.name" |
|
7 |
:info-text="activeUser.description" |
|
8 |
:role="activeUser.role" |
|
9 |
></user-info> |
bae133
|
10 |
<course-goals> |
CM |
11 |
<template #default="slotProps"> |
|
12 |
<h2>{{ slotProps.item }}</h2> |
|
13 |
<p>{{ slotProps['anotherProp'] }}</p> |
|
14 |
<p>{{ slotProps.ciccio }}</p> |
|
15 |
</template> |
|
16 |
</course-goals> |
ff51ab
|
17 |
</div> |
CM |
18 |
</template> |
|
19 |
|
|
20 |
<script> |
54574e
|
21 |
import TheHeader from './components/TheHeader.vue'; |
CM |
22 |
import BadgeList from './components/BadgeList.vue'; |
|
23 |
import UserInfo from './components/UserInfo.vue'; |
bae133
|
24 |
import CourseGoals from './components/CourseGoals.vue'; |
54574e
|
25 |
|
ff51ab
|
26 |
export default { |
54574e
|
27 |
components: { |
CM |
28 |
// 'the-header': TheHeader, |
|
29 |
// TheHeader: TheHeader, |
|
30 |
TheHeader, |
|
31 |
BadgeList, |
bae133
|
32 |
UserInfo, |
CM |
33 |
CourseGoals, |
54574e
|
34 |
}, |
ff51ab
|
35 |
data() { |
CM |
36 |
return { |
|
37 |
activeUser: { |
|
38 |
name: 'Maximilian Schwarzmüller', |
|
39 |
description: 'Site owner and admin', |
|
40 |
role: 'admin', |
|
41 |
}, |
|
42 |
}; |
|
43 |
}, |
|
44 |
}; |
|
45 |
</script> |
|
46 |
|
|
47 |
<style> |
|
48 |
html { |
|
49 |
font-family: sans-serif; |
|
50 |
} |
|
51 |
|
|
52 |
body { |
|
53 |
margin: 0; |
|
54 |
} |
|
55 |
</style> |