Files
softclick-landing/src/graphql-documents/home-page.gql.ts
Zotov Ivan Yuryevich 6973e8baea fetch sections from cms
2026-04-08 23:19:36 +03:00

98 lines
1.7 KiB
TypeScript

import gql from 'graphql-tag'
export const homePageDocument = gql`
query HomePageQuery {
homePage {
sections {
__typename
... on ComponentSectionsHomeHero {
id
title
description
badge
stats {
id
key
value
}
}
... on ComponentSectionsServices {
id
title
description
cards {
id
title
description
icon {
value
}
color {
value
}
category {
slug
}
}
}
... on ComponentSectionsSolutions {
id
title
description
cards {
id
title
description
footnote
icon {
value
}
category {
slug
}
}
}
... on ComponentSectionsCases {
id
title
description
cards {
id
title
description
pretitle
badge
footnote
color {
value
}
icon {
value
}
}
}
... on ComponentSectionsAbout {
id
title
description
partners(pagination: { pageSize: 100 }) {
id
value
}
cards {
id
title
description
color {
value
}
icon {
value
}
}
}
}
}
}
`