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