2019-04-29 02:11:57 +02:00
|
|
|
<template>
|
2023-05-27 04:35:26 +02:00
|
|
|
<div :class="{ [$style.center]: page.alignCenter, [$style.serif]: page.font === 'serif' }">
|
2023-05-30 10:37:38 +02:00
|
|
|
<XBlock v-for="child in page.content" :key="child.id" :page="page" :block="child" :h="2"/>
|
2019-04-29 02:11:57 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-05-14 03:50:21 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted, nextTick } from 'vue';
|
|
|
|
import * as Misskey from 'misskey-js';
|
2019-04-29 02:11:57 +02:00
|
|
|
import XBlock from './page.block.vue';
|
|
|
|
|
2023-05-14 03:50:21 +02:00
|
|
|
defineProps<{
|
|
|
|
page: Misskey.entities.Page,
|
|
|
|
}>();
|
2019-04-29 02:11:57 +02:00
|
|
|
</script>
|
|
|
|
|
2023-05-27 04:35:26 +02:00
|
|
|
<style lang="scss" module>
|
|
|
|
.serif {
|
|
|
|
font-family: serif;
|
|
|
|
}
|
2019-04-29 02:11:57 +02:00
|
|
|
|
2023-05-27 04:35:26 +02:00
|
|
|
.center {
|
|
|
|
text-align: center;
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2019-04-29 02:11:57 +02:00
|
|
|
</style>
|