2019-04-29 00:11:57 +00:00
|
|
|
<template>
|
2023-05-14 01:50:21 +00: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"/>
|
2019-04-29 00:11:57 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-05-14 01:50:21 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted, nextTick } from 'vue';
|
|
|
|
import * as Misskey from 'misskey-js';
|
2019-04-29 00:11:57 +00:00
|
|
|
import XBlock from './page.block.vue';
|
|
|
|
|
2023-05-14 01:50:21 +00:00
|
|
|
defineProps<{
|
|
|
|
page: Misskey.entities.Page,
|
|
|
|
}>();
|
2019-04-29 00:11:57 +00:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 09:29:39 +00:00
|
|
|
<style lang="scss" scoped>
|
2020-01-29 19:37:25 +00:00
|
|
|
.iroscrza {
|
|
|
|
&.serif {
|
|
|
|
> div {
|
|
|
|
font-family: serif;
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 00:11:57 +00:00
|
|
|
|
2020-01-29 19:37:25 +00:00
|
|
|
&.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 00:11:57 +00:00
|
|
|
</style>
|