forked from nodegui/vue-nodegui-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hero.vue
44 lines (41 loc) · 755 Bytes
/
Hero.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<vn-view
id="hero"
:styleSheet="viewStyle"
>
<vn-image
id="img"
src="https://docs.nodegui.org/img/logox200.png"
/>
<vn-text id="heading">
Vue nodegui
</vn-text>
<vn-text id="text">
Powered by Vue3 🌈 and Qt 💚
</vn-text>
</vn-view>
</template>
<script>
export default {
setup() {
return {
viewStyle: `
#hero {
background-color: white;
padding: 20px;
}
#heading {
color: black;
font-size: 24px;
qproperty-alignment: AlignCenter;
}
#text {
color: black;
font-size: 18px;
qproperty-alignment: AlignCenter;
}
`
}
}
}
</script>