mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 02:15:11 +01:00
29 lines
548 B
Vue
29 lines
548 B
Vue
<template>
|
|
<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>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted, nextTick } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import XBlock from './page.block.vue';
|
|
|
|
defineProps<{
|
|
page: Misskey.entities.Page,
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.iroscrza {
|
|
&.serif {
|
|
> div {
|
|
font-family: serif;
|
|
}
|
|
}
|
|
|
|
&.center {
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|