Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/templates/LandingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import Catsone from "../components/Catsone/catsone"
import BannerHead from "../components/BannerHead/BannerHead"
import Text from "../components/Text/Text"
import Form from "../components/Form/Form"
import Quote from "../components/quote/Quote"
import OneSection from "../components/DualSection/OneSection"
import DualSection from "../components/DualSection/DualSection"
import AnimatedTransitionContinous from "../components/animatedTransitionContinous/AnimatedTransitionContinous"

const LandingPage = ({ data, location }) => {
const pageData = data?.allStrapiLandingPage?.nodes[0]
Expand Down Expand Up @@ -70,6 +74,24 @@ const LandingPage = ({ data, location }) => {
<Form data={component} location={location} />
) : null

const quote =
component.strapi_component === "home.quote" ? (
<Quote data={component} />
) : null

const dualSection =
component.strapi_component === "home.dual-section" &&
(component.dualSectionPart.length === 1 ? (
<OneSection data={component} />
) : (
<DualSection data={component} />
))

const animatedTransition =
component.strapi_component === "home.transition" ? (
<AnimatedTransitionContinous data={component} />
) : null

return (
<div key={idx}>
<>
Expand All @@ -83,6 +105,9 @@ const LandingPage = ({ data, location }) => {
{text}
{logosSection}
{form}
{quote}
{dualSection}
{animatedTransition}
</>
</div>
)
Expand Down