2022-07-14 06:03:55 +02:00
|
|
|
<template>
|
|
|
|
<div v-if="filmsByMonth" class="film-list block">
|
|
|
|
<section
|
|
|
|
v-for="({ projectionMonth, films }, index) in filmsByMonth"
|
|
|
|
:key="index"
|
|
|
|
class="columns"
|
|
|
|
>
|
|
|
|
<div class="column is-one-fifth">
|
|
|
|
<h2 class="title is-5 month-label">{{ projectionMonth }}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<MovieCardFull
|
|
|
|
v-for="film of films"
|
|
|
|
:key="film.id"
|
|
|
|
:film="film"
|
|
|
|
class="block"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { FilmsByMonth } from "~/composables/types"
|
2022-12-31 03:59:18 +01:00
|
|
|
import { PropType } from "@vue/runtime-core"
|
2022-07-14 06:03:55 +02:00
|
|
|
|
2022-12-31 03:59:18 +01:00
|
|
|
defineProps({
|
2023-01-28 22:20:31 +01:00
|
|
|
filmsByMonth: { type: Array as PropType<FilmsByMonth[]>, default: () => [] },
|
2022-07-14 06:03:55 +02:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="sass">
|
|
|
|
.film-list
|
|
|
|
position: relative
|
|
|
|
.month-label
|
|
|
|
background-color: $white-bis
|
|
|
|
width: 100%
|
|
|
|
position: sticky
|
|
|
|
top: 2rem
|
|
|
|
</style>
|