Skip to content

Commit

Permalink
feat: add bottom area to two-cols-header layout (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPustkuchen committed Nov 8, 2023
1 parent 430b8d7 commit 500ce81
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/client/layouts/two-cols-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ This shows on the left
::right::
# Right
This shows on the right
::bottom::
# Bottom
This shows at bottom, below left and right
```
-->

Expand All @@ -36,6 +39,9 @@ const props = defineProps({
<div class="col-right" :class="props.class">
<slot name="right" />
</div>
<div class="col-bottom" :class="props.class">
<slot name="bottom" />
</div>
</div>
</template>

Expand All @@ -46,7 +52,8 @@ const props = defineProps({
grid-template-rows: repeat(2, 1fr);
}
.col-header { grid-area: 1 / 1 / 2 / 3; }
.col-left { grid-area: 2 / 1 / 3 / 2; }
.col-right { grid-area: 2 / 2 / 3 / 3; }
.col-header,
.col-bottom { grid-column: -1/1; }
.col-left,
.col-right { grid-column: span 2; }
</style>

0 comments on commit 500ce81

Please sign in to comment.