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