Newer
Older
<script>
import { useAuthStore } from "@/stores/authStore.js";
import { mapState } from 'pinia'
import GroceryOffers from "@/components/GroceryOffers.vue";
data() {
return {
}
},
computed: {
...mapState(useAuthStore, ['profile'])
}
}
<div class="content">
<div class="welcome">
<img id="logo" src="../components/icons/logo.png" alt="Logo">
<h1>Velkommen, {{ this.profile.name }}!</h1>
</div>
<div class="gamification">
</div>
<div class="tips">
<img id="tips-img" src="../components/icons/logo.png" alt="Logo">
<p id="tips-text">Her kommer tips du kanskje kan ha nytte av, trykk på meg for å gå til neste tips!</p>
</div>
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<style scoped>
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-width: 300px;
margin-top: 40px;
}
.welcome {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 20px;
}
#logo {
width: 75px;
height: 75px;
}
#tips-img {
width: 40px;
height: 40px;
margin: auto 0;
}
.tips {
display:flex;
padding: 10px;
min-height: 75px;
max-height: 250px;
background-color: rgb(232, 232, 232);
margin-left: 10px;
margin-right: 10px;
}
#tips-text {
overflow: hidden;
padding-left: 10px;
}
@media (min-width: 1024px) {
.container {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
}
</style>