Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ktx-krupa committed Feb 3, 2025
1 parent eae4dd1 commit 30e47aa
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 30 deletions.
8 changes: 4 additions & 4 deletions src/components/core/CustomBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ defineProps({
>
{{ button.text }}
</CustomButton> -->
<CustomButton variant="primary" class="w-full sm:w-auto" :buttonLink="primaryButton.link">
{{ primaryButton.text }}
<CustomButton variant="primary" class="w-full sm:w-auto" :buttonLink="primaryButton?.link">
{{ primaryButton?.text }}
</CustomButton>
<CustomButton variant="secondary" class="w-full sm:w-auto" :buttonLink="secondaryButton.link">
{{ secondaryButton.text }}
<CustomButton variant="secondary" class="w-full sm:w-auto" :buttonLink="secondaryButton?.link">
{{ secondaryButton?.text }}
</CustomButton>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/heroSections/CompanyAboutUsHeroSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const formatSubtitle = (text) => {
/>
</div>
<div>
<CustomButton variant="primary" class="w-full sm:w-auto" :buttonLink="primaryButton.link">
{{ primaryButton.text }}
<CustomButton variant="primary" class="w-full sm:w-auto" :buttonLink="primaryButton?.link">
{{ primaryButton?.text }}
</CustomButton>
</div>
</div>
Expand Down
23 changes: 12 additions & 11 deletions src/components/wrapper/CaseStudyWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import CustomImage from "../core/CustomImage.vue";
const props = defineProps({
//fetch card items form api here.
// items: {
// type: Array,
// required: true,
// },
items: {
type: Array,
required: false,
default: [],
},
heading:{
type:Object,
required:true,
Expand All @@ -28,12 +29,12 @@ const props = defineProps({
<Heading :title="props.title" :description="props.subtitle" align="CENTER" />

<!-- Desktop View -->
<div class="hidden md:block py-10 relative">
<!-- <div class="hidden md:block py-10 relative">
<CustomImage image="/Platform/Ellipse-141.svg" altText="Image" cssClass="absolute opacity-30 object-contain" />
<div class="flex flex-row gap-3 justify-center container mx-auto pt-3 h-full w-full">
<div v-if="props.items.length > 0">
<LeftSideCard :card="props.items[0]" />
<div v-if="props?.items?.length > 0">
<LeftSideCard :card="props?.items[0]" />
</div>
<div class="flex flex-col gap-3 justify-center items-center h-full">
<RightSideCard
Expand All @@ -43,18 +44,18 @@ const props = defineProps({
/>
</div>
</div>
</div>
</div> -->

<!-- Mobile View -->
<div class="block md:hidden">
<!-- <div class="block md:hidden">
<div class="flex flex-col space-y-3">
<LeftSideCard
v-for="(card, index) in props.items"
v-for="(card, index) in props?.items"
:key="index"
:card="card"
/>
</div>
</div>
</div> -->

<div class="flex justify-center">
<CustomButton variant="secondary" size="medium" :buttonText="primaryButton.text" :buttonLink="primaryButton.link" />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blogs/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ const AuthorData = {
suggestions={["Monitoring", "AWS", "OpenTelemetry"]}
/>
<SingleAuthorDetails blog={AuthorData} />
<CaseStudyWrapper
<!-- <CaseStudyWrapper
title={caseStudyTitle.title}
description={caseStudyTitle.subtitle}
items={caseStudyData}
client:load
/>
/> -->
</Layout>
10 changes: 5 additions & 5 deletions src/pages/jobs/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Layout from "../../layouts/Layout.astro";
import fetchApi from "../../utils/strapi";
import ComponentCollectionMapper from "../../components/ComponentCollectionMapper.vue";
const PageData = await fetchApi({
endpoint: "api/job",
query: { pLevel: "10" , status: "draft"},
});
// const PageData = await fetchApi({
// endpoint: "api/job",
// query: { pLevel: "10" , status: "draft"},
// });
const visitSandboxData = {
title: "Apply Today",
Expand Down Expand Up @@ -153,7 +153,7 @@ const cardData1 = [
---

<Layout>
<ComponentCollectionMapper data={PageData?.data?.body} client:load/>
<!-- <ComponentCollectionMapper data={PageData?.data?.body} client:load/> -->
<!-- <div class="mt-10">
<CompanyJoinOOHeroSection
client:load
Expand Down
2 changes: 1 addition & 1 deletion src/pages/platform/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ const bannerData = {
// };
---

<Layout client:load>
<Layout>
<ComponentCollectionMapper data={PageData?.data?.body} client:load />
<!-- <FeatureHeroSection
client:load
Expand Down
10 changes: 5 additions & 5 deletions src/pages/why-chooose-us/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Layout from "../../layouts/Layout.astro";
import fetchApi from "../../utils/strapi";
import ComponentCollectionMapper from "../../components/ComponentCollectionMapper.vue";
const PageData = await fetchApi({
endpoint: "api/why-choose-us",
query: { pLevel: "10" , status: "draft"},
});
// const PageData = await fetchApi({
// endpoint: "api/why-choose-us",
// query: { pLevel: "10" , status: "draft"},
// });
const cards = [
{
Expand Down Expand Up @@ -92,7 +92,7 @@ const positionCards = {
---

<Layout>
<ComponentCollectionMapper data={PageData?.data?.body} client:load/>
<!-- <ComponentCollectionMapper data={PageData?.data?.body} client:load/> -->
<!-- <div class="mt-10">
<CompanyJoinOOHeroSection
client:load
Expand Down

0 comments on commit 30e47aa

Please sign in to comment.