paxton-front/layouts/default.vue
Никита Круглицкий 9e07e4917a
All checks were successful
Deploy / build (push) Successful in 42s
test ssr
2025-09-26 01:29:11 +06:00

91 lines
1.5 KiB
Vue

<template>
<div class="layout">
<header class="header">
<div class="header__container">
<Icon name="lucide:menu" class="cursor-pointer ml20 w-6 h-6 text-gray-700" />
<h1
class="header__headline"
@click="router.push(`/`)"
>
PAXTON
</h1>
<Icon
name="lucide:shopping-cart"
class="cursor-pointer mr20 w-6 h-6 text-gray-700"
@click="router.push(`/cart`)"
/>
</div>
</header>
<main class="main">
<UContainer class="container">
<slot />
</UContainer>
</main>
<footer class="footer">
Footer
</footer>
</div>
</template>
<script setup lang="ts">
const router = useRouter()
</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;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
height: 54px;
background: white;
&__container {
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
text-align: center;
}
&__headline {
display: flex;
align-items: center;
height: 100%;
font-size: 32px;
color: black;
cursor: pointer;
}
}
.main {
flex: 1;
margin-top: 54px;
}
.footer {
margin-top: auto;
}
</style>