diff --git a/src/components/banner.js b/src/components/banner.js index c689f814..c3615b1a 100644 --- a/src/components/banner.js +++ b/src/components/banner.js @@ -5,6 +5,7 @@ import { AlertTitle, Box, CloseButton, + Container, useDisclosure, } from '@chakra-ui/react' @@ -16,34 +17,41 @@ export const Banner = ({ title, description, children }) => { } = useDisclosure({ defaultIsOpen: true }) return isVisible ? ( - - - - - {' '} - {/* Container for text content, allows vertical flow */} - {title} - {description && ( - {description} - )} - + + {' '} + {/* This Box provides top padding to clear the header */} + + {' '} + {/* Constrains the width of the banner */} + + + {' '} - {/* Wrapper for children, e.g., links */} - {children} + {/* Container for text content, allows vertical flow */} + {title} + {description && ( + {description} + )} + + {' '} + {/* Wrapper for children, e.g., links */} + {children} + - - - + + + ) : ( <>