vue-website/components/Container.vue

29 lines
441 B
Vue
Raw Normal View History

2024-07-18 14:43:01 +10:00
<script setup lang="ts">
defineProps({
center: Boolean,
});
</script>
<template>
<div :class="['container', { center: center }]">
<slot />
</div>
</template>
<style scoped>
.container {
display: flex;
justify-content: space-between;
max-width: var(--max-width);
width: 100%;
gap: 2rem;
}
@media screen and (max-width: 600px) {
.container {
flex-direction: column;
}
}
.center {
align-items: center;
}
</style>