From 5dee0e8fe400958a7f64c9b34c1c20ff9815a09b Mon Sep 17 00:00:00 2001 From: AldemirLucas Date: Tue, 2 Jun 2026 09:47:46 -0300 Subject: [PATCH] feat: enhance Banner component with imageProps support, update padding, and conditionally render description; update DatasetPage to include chatbot subscription logic and localization; add chatbot banner localization strings in English, Spanish, and Portuguese --- next/components/molecules/Banner.js | 20 ++-- next/pages/dataset/[dataset].js | 179 +++++++++++++++++----------- next/public/locales/en/chatbot.json | 4 + next/public/locales/es/chatbot.json | 4 + next/public/locales/pt/chatbot.json | 4 + 5 files changed, 132 insertions(+), 79 deletions(-) diff --git a/next/components/molecules/Banner.js b/next/components/molecules/Banner.js index 9409252c..c1f2c535 100644 --- a/next/components/molecules/Banner.js +++ b/next/components/molecules/Banner.js @@ -14,6 +14,7 @@ export default function Banner({ href, onClick, imageSrc, + imageProps = {}, ...props }) { return ( @@ -24,7 +25,7 @@ export default function Banner({ flexDirection={{ base: 'column', md: 'row' }} justifyContent="space-between" gap="40px" - padding="16px" + padding="32px" margin="24px auto !important" borderRadius="16px" boxSizing="border-box" @@ -32,14 +33,16 @@ export default function Banner({ alignItems="center" {...props} > - + {title} - - {description} - + {description && ( + + {description} + + )}