dynamize info banner background color + callour background color

This commit is contained in:
isUnknown 2024-09-13 15:29:02 +02:00
parent ea0cb004aa
commit bc2d238a05
18 changed files with 73 additions and 34 deletions

View file

@ -29,13 +29,15 @@
<script src="<?= url('assets/js/swiper.js') ?>" defer></script>
<?php endif ?>
<script src="<?= url('assets/js/script.js') ?>" type="module" defer></script>
<?php if ($page->color()->exists()): ?>
<style>
:root {
--color-accent: <?= e($page->color()->isNotEmpty() == 'true', $page->color(), '#000') ?>;
}
</style>
<?php endif ?>
<style>
:root {
<?php if ($page->color()->exists()): ?>
--color-event: <?= e($page->color()->isNotEmpty() == 'true', $page->color(), '#000') ?>;
<?php endif ?>
--color-season: <?= $kirby->collection('current-season')->color() ?>;
}
</style>
</head>
<body data-template="<?= $page->template() ?>">
<?php if ($page->isHomePage()): ?>