Refactored i18n configuration, replacing `DEFAULT_LOCALE` with `DEFAULT_LOCALE_FALLBACK` and enhancing environment-based locale validation. Improved cookie persistence for cart and wishlist, ensuring fallback handling for unauthenticated users. Enhancements: - Added `createProjectKey` utility for consistent project key generation. - Reworked cart and wishlist composables (`useOrderOverwrite`, `useWishlistOverwrite`) to decouple product identifier and handle cookies robustly. - Centralized `DEFAULT_LOCALE` logic for better maintainability. - Refined `useOrderSync` and `useWishlistSync` for clean synchronization across auth states. - Updated SCSS in hero and header styles for alignment corrections. Breaking Changes: `DEFAULT_LOCALE` constant removed; replaced with runtime config and fallback logic. Consumers must adapt to `DEFAULT_LOCALE_FALLBACK` and `$appHelpers.DEFAULT_LOCALE`.
71 lines
No EOL
1.3 KiB
Vue
71 lines
No EOL
1.3 KiB
Vue
<template>
|
|
<div class="shop">
|
|
<div class="shop__top">
|
|
<div class="container">
|
|
<div class="shop__top-wrapper">
|
|
<h1 class="shop__top-title">{{ t('shop.title') }}</h1>
|
|
<p class="shop__top-text">{{ t('shop.text') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="shop__main">
|
|
<div class="container">
|
|
<div class="shop__main-wrapper">
|
|
<store />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import {usePageTitle} from '@composables/utils';
|
|
|
|
const { t, locale } = useI18n();
|
|
|
|
const { setPageTitle } = usePageTitle();
|
|
|
|
setPageTitle(t('breadcrumbs.shop'));
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.shop {
|
|
&__top {
|
|
padding-block: 50px;
|
|
background-color: #f8f8f8;
|
|
|
|
&-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
&-title {
|
|
font-family: "Playfair Display", sans-serif;
|
|
font-weight: 700;
|
|
font-size: 36px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
&-text {
|
|
max-width: 600px;
|
|
text-align: center;
|
|
color: #4b5563;
|
|
font-size: 18px;
|
|
font-weight: 400;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
}
|
|
|
|
&__main {
|
|
background-color: $white;
|
|
padding-block: 70px;
|
|
border-top: 1px solid #f3f4f6;
|
|
|
|
&-wrapper {
|
|
|
|
}
|
|
}
|
|
}
|
|
</style> |