first commit

This commit is contained in:
Inshal
2024-05-29 22:34:28 +05:00
commit e63fc41a20
1470 changed files with 174828 additions and 0 deletions

View File

@@ -0,0 +1,140 @@
<script setup>
import Footer from '@/views/front-pages/front-page-footer.vue'
import Navbar from '@/views/front-pages/front-page-navbar.vue'
const breadCrumbItems = [
{
title: 'Help Center',
to: { name: 'front-pages-help-center' },
},
{ title: 'Buying and item support' },
{ title: 'Template kits' },
]
definePage({ meta: { layout: 'blank' } })
const articleData = ref()
const { data, error } = await useApi('/pages/help-center/article')
if (error.value)
console.log(error.value)
else
articleData.value = data.value
</script>
<!-- eslint-disable vue/no-v-html -->
<template>
<div class="bg-surface help-center-article">
<!-- 👉 Navbar -->
<Navbar />
<!-- 👉 Content -->
<VContainer>
<div
class="d-flex gap-6 flex-lg-row flex-column"
style=" margin-block: 9.25rem 5.25rem"
>
<div>
<div>
<VBreadcrumbs
class="px-0 py-2 flex-wrap"
:items="breadCrumbItems"
>
<template #item="{ item, index }">
<div class="d-flex align-center">
<VIcon
size="20"
icon="ri-star-fill"
class="me-1"
:class="index === breadCrumbItems.length - 1 ? 'text-high-emphasis' : 'text-medium-emphasis'"
/>
<div
class="text-body-1"
:class="index === breadCrumbItems.length - 1 ? 'text-high-emphasis' : 'text-medium-emphasis'"
>
{{ item.title }}
</div>
</div>
</template>
</VBreadcrumbs>
<h4 class="text-h4 mb-2">
{{ articleData?.title }}
</h4>
<div class="text-body-1">
{{ articleData?.lastUpdated }}
</div>
</div>
<VDivider class="my-6" />
<div
class="mb-6"
v-html="articleData?.productContent"
/>
<VImg :src="articleData?.productImg" />
<p class="my-6 text-body-1">
{{ articleData?.checkoutContent }}
</p>
<VImg :src="articleData?.checkoutImg" />
</div>
<div style="min-inline-size: 300px;">
<VTextField
prepend-inner-icon="ri-search-line"
placeholder="Search..."
class="pt-2 mb-6"
/>
<div>
<!-- 👉 Article List -->
<h5
class="text-h5 px-4 py-2 mb-4 rounded"
style="background: rgba(var(--v-theme-on-surface),var(--v-hover-opacity));"
>
Articles in this section
</h5>
<VList class="card-list">
<VListItem
v-for="(item, index) in articleData?.articleList"
:key="index"
link
>
<template #append>
<VIcon
size="20"
icon="ri-arrow-right-s-line"
color="disabled"
/>
</template>
<VListItemTitle>
{{ item }}
</VListItemTitle>
</VListItem>
</VList>
</div>
</div>
</div>
</VContainer>
<!-- 👉 Footer -->
<Footer />
</div>
</template>
<style lang="scss" scoped>
.card-list {
--v-card-list-gap: 1rem;
}
.help-center-article{
@media (min-width: 600px) and (max-width: 960px) {
.v-container {
padding-inline: 2rem !important;
}
}
}
</style>

View File

@@ -0,0 +1,97 @@
<script setup>
import Footer from '@/views/front-pages/front-page-footer.vue'
import Navbar from '@/views/front-pages/front-page-navbar.vue'
import HelpCenterLandingArticlesOverview from '@/views/pages/help-center/HelpCenterLandingArticlesOverview.vue'
import HelpCenterLandingFooter from '@/views/pages/help-center/HelpCenterLandingFooter.vue'
import HelpCenterLandingKnowledgeBase from '@/views/pages/help-center/HelpCenterLandingKnowledgeBase.vue'
// fetching data from fake-api
definePage({ meta: { layout: 'blank' } })
const { data: faqData } = await useApi('/pages/help-center')
const apiData = faqData.value
</script>
<template>
<div class="help-center-page">
<Navbar />
<div v-if="apiData">
<AppSearchHeader
title="Hello, how can we help?"
subtitle="Common troubleshooting topics: eCommerce, Blogging to payment"
custom-class="rounded-0"
/>
<!-- 👉 Popular Articles -->
<div class="bg-surface help-center-section">
<VContainer>
<h4 class="text-h4 text-center mb-6">
Popular Articles
</h4>
<HelpCenterLandingArticlesOverview :articles="apiData.popularArticles" />
</VContainer>
</div>
<!-- 👉 Knowledge Base -->
<div class="help-center-section">
<VContainer>
<h4 class="text-h4 text-center mb-6">
Knowledge Base
</h4>
<HelpCenterLandingKnowledgeBase :categories="apiData.allArticles" />
</VContainer>
</div>
<!-- 👉 Keep Learning -->
<div class="bg-surface help-center-section">
<VContainer>
<h4 class="text-h4 text-center mb-6">
Keep Learning
</h4>
<HelpCenterLandingArticlesOverview :articles="apiData.keepLearning" />
</VContainer>
</div>
<!-- 👉 Still need help? -->
<HelpCenterLandingFooter />
<Footer />
</div>
</div>
</template>
<style lang="scss">
.help-center-page {
.search-header {
background-size: cover !important;
padding-block-start: 9rem !important;
}
}
@media (max-width: 960px) and (min-width: 600px) {
.help-center-page {
.v-container {
padding-inline: 2rem !important;
}
.search-header {
padding: 5rem !important;
}
}
}
@media (max-width: 599px) {
.help-center-page {
.search-header {
padding-block: 4rem 2rem !important;
padding-inline: 2rem !important;
}
}
}
</style>
<style lang="scss" scoped>
.help-center-section{
padding-block: 5.25rem;
}
</style>