diff --git a/README.md b/README.md index 858217f9..e68bd1ff 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ > [!NOTE] -> **Enterprise Inquiries:** +> **Enterprise Inquiries:** > For enterprise use, custom deployments, or partnership opportunities, contact us at **[suraj@presenton.ai](mailto:suraj@presenton.ai)**. > [!IMPORTANT] @@ -138,7 +138,7 @@ Content-Type: `multipart/form-data` | prompt | string | Yes | The main topic or prompt for generating the presentation | | n_slides | integer | No | Number of slides to generate (default: 8, min: 5, max: 15) | | language | string | No | Language for the presentation (default: "English") | -| theme | string | No | Presentation theme (default: "light"). Available options: "light", "dark", "cream", "royal_blue", "faint_yellow", "light_red", "dark_pink" | +| layout | string | No | Presentation theme (default: "classic"). Available options: "classic", "general", "modern", "professional" | | documents | File[] | No | Optional list of document files to include in the presentation. Supported file types: PDF, TXT, PPTX, DOCX | | export_as | string | No | Export format ("pptx" or "pdf", default: "pptx") | diff --git a/servers/nextjs/presentation-layouts/modern/5ProductOverviewSlideLayout.tsx b/servers/nextjs/presentation-layouts/modern/5ProductOverviewSlideLayout.tsx index 8b5e5e86..c833d106 100644 --- a/servers/nextjs/presentation-layouts/modern/5ProductOverviewSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/modern/5ProductOverviewSlideLayout.tsx @@ -162,54 +162,13 @@ const ProductOverviewSlideLayout: React.FC = ({ className="rounded-b-md overflow-hidden" style={{ height: `${IMAGE_SECTION_HEIGHT + 28}px` }} > - {products[0].image.__image_url__ && ( - { - )} - - - )} - {products[2] && ( -
-
-

- {products[2].title} -

-

- {products[2].description} -

-
-
- {products[2].image.__image_url__ && ( - { - )} + {
)} @@ -229,15 +188,13 @@ const ProductOverviewSlideLayout: React.FC = ({ className="rounded-t-md overflow-hidden" style={{ height: `${IMAGE_SECTION_HEIGHT + 28}px` }} > - {products[1].image.__image_url__ && ( - { - )} + { {/* Bottom Section - Blue background with text */}
= ({
)} - {products[3] && ( -
-
- {products[3].image.__image_url__ && ( - { - )} -
-
-

- {products[3].title} -

-

- {products[3].description} -

-
-
- )} diff --git a/servers/nextjs/presentation-layouts/modern/9BusinessModelSlideLayout.tsx b/servers/nextjs/presentation-layouts/modern/9BusinessModelSlideLayout.tsx index ac8b5783..bcd9c651 100644 --- a/servers/nextjs/presentation-layouts/modern/9BusinessModelSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/modern/9BusinessModelSlideLayout.tsx @@ -63,13 +63,9 @@ interface Props { } const BusinessModelSlide: React.FC = ({ data }) => { - const cacChartData = - data?.cacChart && Array.isArray(data.cacChart) && data.cacChart.length > 0 - ? data.cacChart - : [ - { label: "Internet of Things", percentage: 70 }, - { label: "Artificial Intelligence", percentage: 60 }, - ]; + const hasChart = + data?.cacChart && Array.isArray(data.cacChart) && data.cacChart.length > 0; + const cacChartData = hasChart ? data.cacChart : []; return ( <> @@ -96,49 +92,51 @@ const BusinessModelSlide: React.FC = ({ data }) => {

{data?.title}

-
-
- - - - - - - - - - + {hasChart && ( +
+
+ + + + + + + + + + +
-
+ )}
{/* Right Column - Description and Optional Image */}