; MaterialSB Example - Navbar ; This example demonstrates different navbar configurations. IncludeFile "MaterialSB.sbi" EnableExplicit Procedure Main(Result) UseModule MaterialSB SetDarkTheme(#False) ; Main navbar with logo on left, links on right Navbar(#Navbar_Shadow2 | #Navbar_Container) NavbarAddLogo("MaterialSB", "", "https://lastlife.net/") NavbarAddLink("Home", "#") NavbarAddLink("Features", "#features") NavbarAddLink("Examples", "#examples") ; Content Row(#Grid_Container) Col(12) Append("

Navbar Component

") Append("

The navbar automatically creates a responsive menu. On smaller screens, links collapse into a dropdown menu.

") Append("
Navbar Flags
") Protected t = Table("Flag", #Table_Striped | #Table_Highlight) TableAddColumn("Description", t) TableAddItem("#Navbar_Default" + Chr(10) + "Standard navbar with no special styling", t) TableAddItem("#Navbar_Align_Right" + Chr(10) + "Aligns the logo to the right", t) TableAddItem("#Navbar_Align_Center" + Chr(10) + "Centers the logo", t) TableAddItem("#Navbar_Bottom" + Chr(10) + "Positions navbar at the bottom of the viewport", t) TableAddItem("#Navbar_Shadow1" + Chr(10) + "Light shadow (z-depth-1)", t) TableAddItem("#Navbar_Shadow2" + Chr(10) + "Medium shadow (z-depth-2)", t) TableAddItem("#Navbar_Shadow3" + Chr(10) + "Heavy shadow (z-depth-5)", t) TableAddItem("#Navbar_Container" + Chr(10) + "Centers content in a container", t) CloseCurrentParent() ; Logo alignment examples Col(12) Append("
Logo Alignment
") Append("

The logo can be positioned left (default), center, or right using flags in NavbarAddLogo():

") Append("; Logo on the left (default)" + "
") Append(~"NavbarAddLogo(\"Left Logo\")" + "
") Append("
") Append("; Logo in the center" + "
") Append(~"NavbarAddLogo(\"Centered\", \"\", \"\", #Navbar_Align_Center)" + "
") Append("
") Append("; Logo on the right" + "
") Append(~"NavbarAddLogo(\"Right Logo\", \"\", \"\", #Navbar_Align_Right)") CloseCurrentParent() Append("
") ; Tips Col(12) Card() AddClass(GetCurrentParent(), #Color_DeepPurple + #Color_Lighten_3) CardContent() CardTitle("
Tips
") Append("") CloseCurrentParent(2) Append("
") Append("
") CloseCurrentParent() AutoInit() UnuseModule MaterialSB EndProcedure MaterialSB::Download(@Main()) ; IDE Options = SpiderBasic 3.10 (Windows - x86) ; CursorPosition = 76 ; Folding = - ; iOSAppOrientation = 0 ; AndroidAppCode = 0 ; AndroidAppOrientation = 0 ; EnableXP ; DPIAware ; CompileSourceDirectory