Added PageContainer handling responsive breakpoints.
This commit is contained in:
parent
215f70db26
commit
e885975aff
4 changed files with 65 additions and 2 deletions
frontend/src/components/page
28
frontend/src/components/page/PageContainer.vue
Normal file
28
frontend/src/components/page/PageContainer.vue
Normal file
|
@ -0,0 +1,28 @@
|
|||
<script setup lang="ts">
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<div class="content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "../../scss/variables";
|
||||
@import "../../scss/mixins";
|
||||
|
||||
.page-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@each $breakpoint, $width in $page-container-widths {
|
||||
@include page-breakpoint($breakpoint) {
|
||||
.content {
|
||||
width: $width;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue