<script> import { useAuthStore } from "@/stores/authStore.js"; import { mapState } from 'pinia' import GroceryOffers from "@/components/GroceryOffers.vue"; export default { components: {GroceryOffers}, data() { return { } }, computed: { ...mapState(useAuthStore, ['profile']) } } </script> <template> <main> <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> <grocery-offers></grocery-offers> </div> </main> </template> <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>