Skip to content

Commit 452a7e2

Browse files
authored
Merge pull request #92 from openobserve/dev
feat: add AI Native CTA Banner component and integrate into AI Native…
2 parents 478b2b5 + b8604bd commit 452a7e2

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

src/api/ai-native-landing-page/content-types/ai-native-landing-page/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"type": "dynamiczone",
2222
"components": [
2323
"section-hero.ai-native-page-herosection",
24-
"section-cta.banner",
2524
"elements.testimonial-card",
2625
"section-cards.modern-foundation-card",
27-
"section-cards.feature5"
26+
"section-cards.feature5",
27+
"section-cta.ai-native-cta-banner"
2828
]
2929
}
3030
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"collectionName": "components_section_cta_ai_native_cta_banners",
3+
"info": {
4+
"displayName": "AI Native CTA Banner"
5+
},
6+
"options": {},
7+
"attributes": {
8+
"title": {
9+
"type": "string"
10+
},
11+
"description": {
12+
"type": "text"
13+
},
14+
"primaryButton": {
15+
"type": "component",
16+
"repeatable": false,
17+
"component": "elements.button"
18+
},
19+
"secondaryButton": {
20+
"type": "component",
21+
"repeatable": false,
22+
"component": "elements.button"
23+
}
24+
}
25+
}

types/generated/components.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,19 @@ export interface SectionCardsWebinar extends Struct.ComponentSchema {
689689
};
690690
}
691691

692+
export interface SectionCtaAiNativeCtaBanner extends Struct.ComponentSchema {
693+
collectionName: 'components_section_cta_ai_native_cta_banners';
694+
info: {
695+
displayName: 'AI Native CTA Banner';
696+
};
697+
attributes: {
698+
description: Schema.Attribute.Text;
699+
primaryButton: Schema.Attribute.Component<'elements.button', false>;
700+
secondaryButton: Schema.Attribute.Component<'elements.button', false>;
701+
title: Schema.Attribute.String;
702+
};
703+
}
704+
692705
export interface SectionCtaBanner extends Struct.ComponentSchema {
693706
collectionName: 'components_section_cta_banners';
694707
info: {
@@ -1290,6 +1303,7 @@ declare module '@strapi/strapi' {
12901303
'section-cards.plaform-key-features': SectionCardsPlaformKeyFeatures;
12911304
'section-cards.testimonials': SectionCardsTestimonials;
12921305
'section-cards.webinar': SectionCardsWebinar;
1306+
'section-cta.ai-native-cta-banner': SectionCtaAiNativeCtaBanner;
12931307
'section-cta.banner': SectionCtaBanner;
12941308
'section-cta.download-cta': SectionCtaDownloadCta;
12951309
'section-faqs.fa-qs-page-section': SectionFaqsFaQsPageSection;

types/generated/contentTypes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ export interface ApiAiNativeLandingPageAiNativeLandingPage
422422
body: Schema.Attribute.DynamicZone<
423423
[
424424
'section-hero.ai-native-page-herosection',
425-
'section-cta.banner',
426425
'elements.testimonial-card',
427426
'section-cards.modern-foundation-card',
428427
'section-cards.feature5',
428+
'section-cta.ai-native-cta-banner',
429429
]
430430
>;
431431
createdAt: Schema.Attribute.DateTime;

0 commit comments

Comments
 (0)