2019-11-30 04:55:32 +00:00
|
|
|
<template>
|
|
|
|
<div class="actors">
|
|
|
|
<Actor
|
|
|
|
v-for="actor in actors"
|
|
|
|
:key="`actor-${actor.id}`"
|
|
|
|
:actor="actor"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Actor from '../tile/actor.vue';
|
|
|
|
|
|
|
|
async function mounted() {
|
2020-01-24 22:36:06 +00:00
|
|
|
this.pageTitle = 'Actors';
|
2019-12-01 04:32:47 +00:00
|
|
|
this.actors = await this.$store.dispatch('fetchActors', { limit: 1000 });
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Actor,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
actors: [],
|
2020-01-24 22:36:06 +00:00
|
|
|
pageTitle: null,
|
2019-11-30 04:55:32 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted,
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-01-06 20:49:37 +00:00
|
|
|
@import 'theme';
|
|
|
|
|
2019-11-30 04:55:32 +00:00
|
|
|
.actors {
|
|
|
|
display: grid;
|
2020-01-06 20:49:37 +00:00
|
|
|
grid-template-columns: repeat(auto-fit, minmax(10rem, .5fr));
|
2019-11-30 04:55:32 +00:00
|
|
|
grid-gap: 0 .5rem;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
2020-01-06 20:49:37 +00:00
|
|
|
|
|
|
|
@media(max-width: $breakpoint) {
|
|
|
|
.actors {
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
|
|
|
}
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
</style>
|