; MaterialSB Example - Cards ; This example demonstrates how to create cards with content. IncludeFile "MaterialSB.sbi" EnableExplicit Procedure ReadMore() Debug "User clicked on 'Read More'" EndProcedure Procedure Share() Debug "User clicked on 'Share'" EndProcedure Procedure Action() Debug "User clicked on 'Action'" EndProcedure Procedure Main(Result) UseModule MaterialSB SetDarkTheme(#False) ; Navbar Navbar(#Navbar_Shadow1 | #Navbar_Container) NavbarAddLogo("Cards") ; Create a container row Row(#Grid_Container) Col(12) Append("
This is a simple card with an image, content, and action buttons.
") CloseCurrentParent() CardAction() Append(Link("Read More", @ReadMore())) Append(Link("Share", @Share())) CloseCurrentParent(3) ; Second column - Panel card Col(12, 6, 4) ; You don't need to use the helpers, all MaterialSB components support HTML. Card("Panel Card", #Card_Panel) AddClass(GetCurrentParent(), #Color_Teal + #Color_Lighten_4) Append("Panel cards are simpler and don't have sections. Great for short messages or alerts.
") CloseCurrentParent(2) ; Third column - Card with colored content Col(12, 6, 4) Card() AddClass(GetCurrentParent(), #Color_Blue + #Color_Darken_1) CardContent() AddClass(GetCurrentParent(), #Color_White + #Color_Text) CardTitle("Colored Card") Append("Cards can be styled with MaterializeCSS color classes for visual emphasis.
") CloseCurrentParent() CardAction() AddClass(GetCurrentParent(), #Color_Blue + #Color_Darken_2) Append(Link("Action", @Action(), #Color_White)) CloseCurrentParent(3) ; Flags Col(12) Append("