2021-04-24 08:08:35 +00:00
|
|
|
<template lang="html">
|
|
|
|
<b-container>
|
|
|
|
<page-title
|
|
|
|
title="Profiles"
|
|
|
|
/>
|
|
|
|
|
2021-04-28 23:38:52 +00:00
|
|
|
<b-button
|
2021-04-24 08:08:35 +00:00
|
|
|
:to="{ name: 'public-profile', params: { userName: profile.userName } }"
|
2021-04-28 23:38:52 +00:00
|
|
|
block
|
|
|
|
class="profile-button p-2"
|
2021-04-24 08:08:35 +00:00
|
|
|
v-for="profile in profiles"
|
|
|
|
:key="profile.userName"
|
|
|
|
>
|
2021-04-28 23:38:52 +00:00
|
|
|
<img
|
|
|
|
:src="profile.profileImage"
|
|
|
|
:alt="profile.userName"
|
|
|
|
class="rounded"
|
|
|
|
width="50"
|
|
|
|
>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h3 class="m-0">{{ profile.displayName }}</h3>
|
|
|
|
<small class="text-info">{{ `@${profile.userName}` }}</small>
|
|
|
|
<p>{{ profile.bio }}</p>
|
|
|
|
<!-- <b-button variant="primary">
|
|
|
|
Follow
|
|
|
|
</b-button> -->
|
|
|
|
</div>
|
|
|
|
</b-button>
|
2021-04-24 08:08:35 +00:00
|
|
|
</b-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapState } from 'vuex';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
...mapState(['profiles']),
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.loadProfiles();
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
loadProfiles() {
|
|
|
|
this.$store.dispatch('LOAD_PROFILES');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
2021-04-28 23:38:52 +00:00
|
|
|
.profile-button {
|
|
|
|
text-align: left;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 48px auto;
|
|
|
|
grid-gap: .75rem;
|
|
|
|
}
|
2021-04-24 08:08:35 +00:00
|
|
|
</style>
|