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

30 lines
548 B
Vue
Raw Normal View History

<template>
2023-05-14 03:50:21 +02:00
<div class="iroscrza" :class="{ center: page.alignCenter, serif: page.font === 'serif' }">
<XBlock v-for="child in page.content" :key="child.id" :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>
<style lang="scss" scoped>
.iroscrza {
&.serif {
> div {
font-family: serif;
}
}
&.center {
text-align: center;
}
}
</style>