@@ -33,18 +33,18 @@ export const HeaderContent: React.FC<HeaderContentProps> = ({
3333 dividerHeight,
3434 dividerMargin
3535} ) => (
36- < div className = "relative w-screen " >
36+ < div className = "relative w-full overflow-x-hidden " >
3737 < header
38- className = { `flex flex-col justify-center items-center h-auto w-screen relative top-0 ${ padding } ` }
38+ className = { `flex flex-col justify-center items-center h-auto w-full relative ${ padding } ` }
3939 style = { { backgroundColor } }
4040 >
41- < div className = "flex items-center" >
41+ < div className = "flex flex-wrap items-center justify-center gap-4 text-center max-w-full " >
4242 < h1 className = { `${ titleSize } font-bold ${ titleColor } text-center` } >
4343 { titleText }
4444 </ h1 >
45- < div className = { `inline-block ${ dividerHeight } min-h-[1em] ${ dividerWidth } self-stretch ${ dividerColor } ${ dividerMargin } ` } > </ div >
45+ < div className = { ` ${ dividerHeight } ${ dividerWidth } ${ dividerColor } ${ dividerMargin } shrink-0 ` } > </ div >
4646 { logoSrc ? (
47- < img src = { logoSrc } alt = { logoAltText } className = { `${ logoWidth } ${ logoHeight } ` } />
47+ < img src = { logoSrc } alt = { logoAltText } className = { `${ logoWidth } ${ logoHeight } object-contain ` } />
4848 ) : (
4949 < div className = "text-white font-semibold" > Header</ div >
5050 ) }
@@ -91,6 +91,7 @@ export const HeaderContentConfig: ComponentConfig<HeaderContentProps> = {
9191 logoWidth : {
9292 type : "select" ,
9393 options : [
94+ { label : "Responsive (Mobile to Desktop)" , value : "w-24 sm:w-32 md:w-40 lg:w-48 xl:w-52" } ,
9495 { label : "Small (w-32)" , value : "w-32" } ,
9596 { label : "Medium (w-40)" , value : "w-40" } ,
9697 { label : "Large (w-48)" , value : "w-48" } ,
@@ -102,6 +103,7 @@ export const HeaderContentConfig: ComponentConfig<HeaderContentProps> = {
102103 type : "select" ,
103104 options : [
104105 { label : "Auto" , value : "h-auto" } ,
106+ { label : "Responsive (Mobile to Desktop)" , value : "sm:h-16 md:h-20 lg:h-24 xl:h-32" } ,
105107 { label : "Small (h-16)" , value : "h-16" } ,
106108 { label : "Medium (h-20)" , value : "h-20" } ,
107109 { label : "Large (h-24)" , value : "h-24" } ,
@@ -154,7 +156,7 @@ export const HeaderContentConfig: ComponentConfig<HeaderContentProps> = {
154156 titleColor : "text-sga-red" ,
155157 logoSrc : "" ,
156158 logoAltText : "SGA Logo" ,
157- logoWidth : "w-52" ,
159+ logoWidth : "w-24 sm:w-32 md:w-40 lg:w-48 xl:w- 52" ,
158160 logoHeight : "h-auto" ,
159161 dividerColor : "bg-black" ,
160162 dividerWidth : "w-1" ,
0 commit comments