29 lines
No EOL
441 B
Vue
29 lines
No EOL
441 B
Vue
<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> |