add temporary form for showing site
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
<template>
|
||||||
|
<NuxtLayout :name="device" :config="config">
|
||||||
|
<main class="home">
|
||||||
|
<HomeTopSlider />
|
||||||
|
<HomeMainCategories />
|
||||||
|
<HomeBanners />
|
||||||
|
<HomeAmazingOffers />
|
||||||
|
<HomeReviews />
|
||||||
|
<HomeEstProducts />
|
||||||
|
<HomePopularCategories />
|
||||||
|
<HomeLatestPosts />
|
||||||
|
<HomeProducers :title="$t('producers')" />
|
||||||
|
</main>
|
||||||
|
</NuxtLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import init from "../initialize/home";
|
||||||
|
provide("init", init);
|
||||||
|
|
||||||
|
const { device } = inject("service");
|
||||||
|
const config = reactive({
|
||||||
|
mobile: { header: { search: true, menu: true } },
|
||||||
|
});
|
||||||
|
|
||||||
|
const { status, data, error } = await useFetch("/api/pages/landing");
|
||||||
|
|
||||||
|
if (status.value == "success") {
|
||||||
|
useSeoMeta(data.value.meta || {});
|
||||||
|
provide("data", data.value);
|
||||||
|
} else throw createError(error.value);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.home {
|
||||||
|
@apply flex flex-col max-lg:pb-24;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
+16
-29
@@ -1,39 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtLayout :name="device" :config="config">
|
<div class="flex flex-col w-72 h-max mx-auto mt-60 gap-6 lg:gap-10">
|
||||||
<main class="home">
|
<InputText
|
||||||
<HomeTopSlider />
|
class="w-full rounded-[0.6rem] border shadow-none border-[#CCCCCC] text-zinc-800 font-iran-sans"
|
||||||
<HomeMainCategories />
|
v-model="pass"
|
||||||
<HomeBanners />
|
placeholder="پسورد"
|
||||||
<HomeAmazingOffers />
|
></InputText>
|
||||||
<HomeReviews />
|
<Button class="text-center" @click="confirm">تائید</Button>
|
||||||
<HomeEstProducts />
|
</div>
|
||||||
<HomePopularCategories />
|
|
||||||
<HomeLatestPosts />
|
|
||||||
<HomeProducers :title="$t('producers')" />
|
|
||||||
</main>
|
|
||||||
</NuxtLayout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import init from '../initialize/home'
|
const router = useRouter();
|
||||||
provide('init', init)
|
const pass = ref("");
|
||||||
|
const confirm = () => {
|
||||||
const { device } = inject('service')
|
if (pass.value === "s@A123456") {
|
||||||
const config = reactive({
|
router.push("/home")
|
||||||
mobile: { header: { search: true, menu: true } },
|
}
|
||||||
})
|
|
||||||
|
|
||||||
const { status, data, error } = await useFetch('/api/pages/landing')
|
|
||||||
|
|
||||||
if (status.value == 'success') {
|
|
||||||
useSeoMeta(data.value.meta || {})
|
|
||||||
provide('data', data.value)
|
|
||||||
}
|
}
|
||||||
else throw createError(error.value)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.home {
|
.home {
|
||||||
@apply flex flex-col max-lg:pb-24;
|
@apply flex flex-col max-lg:pb-24;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user