Implemented a way for the developer to define a custom background color for the pages they are building through the config file 'pagebuilder.php'
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
const showMainMenu = ref(false);
|
||||
const page = usePage();
|
||||
const pageRef = ref();
|
||||
const canvasClass = page.props.canvas || 'bg-black'; // fallback to bg-black
|
||||
|
||||
/** Get a node value from json */
|
||||
|
||||
@@ -70,7 +71,7 @@
|
||||
<template>
|
||||
<Head :title="revision.title" />
|
||||
|
||||
<div ref="pageRef" class="min-h-screen w-full bg-black">
|
||||
<div ref="pageRef" class="min-h-screen w-full" :class="canvasClass">
|
||||
<!-- Komponentrendring -->
|
||||
<component
|
||||
v-for="block in revision.content"
|
||||
|
||||
Reference in New Issue
Block a user