; MaterialSB Example - Grid System ; This example demonstrates the responsive grid system. IncludeFile "MaterialSB.sbi" EnableExplicit Procedure Main(Result) UseModule MaterialSB SetDarkTheme(#False) ; Create a navbar Navbar(#Navbar_Shadow1 | #Navbar_Container) NavbarAddLogo("Grid Example") ; Header section Row(#Grid_Container) Col(12) Append("
MaterialSB uses a 12-column responsive grid. Resize your browser to see how columns adapt.
") CloseCurrentParent(2) ; Basic grid demonstration Row(#Grid_Container) Col(12) Append("s12 m6 l4
") Append("Full on small, half on medium, third on large
") CloseCurrentParent(2) Col(12, 6, 4) Card("", #Card_Panel) AddClass(GetCurrentParent(), #Color_Blue + #Color_Lighten_3) Append("s12 m6 l4
") Append("Full on small, half on medium, third on large
") CloseCurrentParent(2) Col(12, 6, 4) Card("", #Card_Panel) AddClass(GetCurrentParent(), #Color_Green + #Color_Lighten_3) Append("s12 m6 l4
") Append("Full on small, half on medium, third on large
") CloseCurrentParent(2) CloseCurrentParent() ; Close row ; Two column layout Row(#Grid_Container) Col(12) Append("This column takes 8 out of 12 columns on medium and larger screens. On small screens, it takes the full width.
") Append("This is ideal for main content areas with a sidebar.
") CloseCurrentParent(2) Col(12, 4) Card("", #Card_Panel) AddClass(GetCurrentParent(), #Color_Orange + #Color_Lighten_4) Append("This sidebar takes 4 columns on medium+, full width on small.
") CloseCurrentParent(2) CloseCurrentParent() ; Close row ; Nested grid Row(#Grid_Container) Col(12) Append("Outer Container
") ; Nested row inside the card Row() Col(6) Card("", #Card_Panel) AddClass(GetCurrentParent(), #Color_Purple + #Color_Lighten_2) Append("Nested s6
") CloseCurrentParent(2) Col(6) Card("", #Card_Panel) AddClass(GetCurrentParent(), #Color_Purple + #Color_Lighten_2) Append("Nested s6
") CloseCurrentParent(2) CloseCurrentParent() ; Close nested row CloseCurrentParent() ; Close outer card CloseCurrentParent(2) ; Close column and row ; Breakpoint reference Row(#Grid_Container) Col(12) Append("