mizzkey/packages/frontend/src/components/page/page.vue

31 lines
636 B
Vue
Raw Normal View History

<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
2023-05-27 04:35:26 +02:00
<div :class="{ [$style.center]: page.alignCenter, [$style.serif]: page.font === 'serif' }">
<XBlock v-for="child in page.content" :key="child.id" :page="page" :block="child" :h="2"/>
</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';
import XBlock from './page.block.vue';
2023-05-14 03:50:21 +02:00
defineProps<{
page: Misskey.entities.Page,
}>();
</script>
2023-05-27 04:35:26 +02:00
<style lang="scss" module>
.serif {
font-family: serif;
}
2023-05-27 04:35:26 +02:00
.center {
text-align: center;
}
</style>