From 3cf472cd546c17df050808e698bd19299b8ba5f1 Mon Sep 17 00:00:00 2001 From: krupa Date: Mon, 3 Feb 2025 19:00:29 +0530 Subject: [PATCH] feat: add herosection for the why choose us --- .../company-why-o2-hero-section.json | 23 +++++++++++++++++++ types/generated/components.d.ts | 15 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/components/section-hero/company-why-o2-hero-section.json diff --git a/src/components/section-hero/company-why-o2-hero-section.json b/src/components/section-hero/company-why-o2-hero-section.json new file mode 100644 index 0000000..82815b0 --- /dev/null +++ b/src/components/section-hero/company-why-o2-hero-section.json @@ -0,0 +1,23 @@ +{ + "collectionName": "components_section_hero_company_why_o2_hero_sections", + "info": { + "displayName": "CompanyWhyO2HeroSection", + "icon": "crown" + }, + "options": {}, + "attributes": { + "title": { + "type": "string", + "required": true + }, + "description": { + "type": "text", + "required": true + }, + "primaryButton": { + "type": "component", + "repeatable": false, + "component": "elements.button" + } + } +} diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index c34cded..bff9977 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -588,6 +588,20 @@ export interface SectionHeroCompanyHeroSection extends Struct.ComponentSchema { }; } +export interface SectionHeroCompanyWhyO2HeroSection + extends Struct.ComponentSchema { + collectionName: 'components_section_hero_company_why_o2_hero_sections'; + info: { + displayName: 'CompanyWhyO2HeroSection'; + icon: 'crown'; + }; + attributes: { + description: Schema.Attribute.Text & Schema.Attribute.Required; + primaryButton: Schema.Attribute.Component<'elements.button', false>; + title: Schema.Attribute.String & Schema.Attribute.Required; + }; +} + export interface SectionHeroContactHeroSection extends Struct.ComponentSchema { collectionName: 'components_section_hero_contact_hero_sections'; info: { @@ -815,6 +829,7 @@ declare module '@strapi/strapi' { 'section-forms.contact': SectionFormsContact; 'section-forms.enterprice-contact': SectionFormsEnterpriceContact; 'section-hero.company-hero-section': SectionHeroCompanyHeroSection; + 'section-hero.company-why-o2-hero-section': SectionHeroCompanyWhyO2HeroSection; 'section-hero.contact-hero-section': SectionHeroContactHeroSection; 'section-hero.feature-hero-section': SectionHeroFeatureHeroSection; 'section-hero.feature-sub-hero-section': SectionHeroFeatureSubHeroSection;