paxton-front/layouts/checkout.vue
alsaze bff6833781
All checks were successful
Deploy / build (push) Successful in 2m37s
карты пвз
2025-11-10 16:35:00 +03:00

71 lines
1.2 KiB
Vue

<template>
<div class="layout">
<header class="header">
<div class="header__container">
<Icon class="cursor-pointer w-6 h-6" name="lucide:arrow-left" @click="previewStep" />
<h3>
Шаг {{ currentCheckoutStep?.step }} из {{ checkoutSteps?.length }}
&nbsp;&bull;&nbsp;
{{ t(`checkoutSteps.${currentCheckoutStep?.title}`) }}
</h3>
</div>
</header>
<main class="main">
<UContainer class="container">
<slot />
</UContainer>
</main>
</div>
</template>
<script setup lang="ts">
import { useCheckout } from '../composables/useCheckout'
const { previewStep, currentCheckoutStep, checkoutSteps } = useCheckout()
const { t } = useI18n()
</script>
<style lang="scss" scoped>
.layout {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
--ui-container: 100%;
max-width: 100%;
margin: 0;
padding: 0;
}
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
height: 54px;
&__container {
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
text-align: center;
padding: 0 16px;
}
h3 {
flex: auto;
}
}
.main {
flex: 1;
margin-top: 54px;
}
</style>