<script>
import BG from "../../assets/bg.png"
</script>
<div class="split-page">
<div class="left">
<div class="content">
<slot />
</div>
<div class="right spectrum spectrum--darkest">
<img src={BG} alt="background" />
<slot name="right" />
<style>
.split-page {
height: 100%;
display: grid;
grid-template-columns: max(50%, 380px) 1fr;
justify-content: stretch;
overflow: hidden;
}
.left {
background: var(--background);
place-items: center;
padding: 40px;
overflow-y: auto;
.right {
position: relative;
.right img {
position: absolute;
top: 0;
left: 0;
width: 100%;
.content {
max-width: 400px;
min-height: 480px;
@media (max-width: 740px) {
grid-template-columns: 1fr;
padding: 20px;
display: none;
</style>