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