Add base styles
This commit is contained in:
@@ -1,10 +1,44 @@
|
||||
<script>
|
||||
export let title = 'Hello';
|
||||
/**
|
||||
* Enable Next/Previos arrows
|
||||
*/
|
||||
export let arrows = true;
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<h1>{title}</h1>
|
||||
</main>
|
||||
<div class="main-container">
|
||||
{#if arrows}
|
||||
<div class="side-container">
|
||||
<span class="clickable"><</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="content-container">
|
||||
<slot></slot>
|
||||
</div>
|
||||
{#if arrows}
|
||||
<div class="side-container">
|
||||
<span class="clickable">></span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.main-container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.content-container {
|
||||
flex: 1;
|
||||
}
|
||||
.side-container {
|
||||
background-color: cornflowerblue;
|
||||
height: 100%;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user