#!/usr/bin/env python3 """ Example BadGUI application demonstrating basic components and layouts. """ import badgui as bg def main(): # Main title bg.label("Welcome to BadGUI!", classes=["text-h3", "text-primary"]) # Buttons in a row with bg.row(): bg.button("Primary Button", classes=["q-mr-md"]) bg.button("Secondary Button", classes=["q-mr-md"]) bg.button("Success Button", classes=["bg-positive"]) # Input fields in a column with bg.column(): bg.input(placeholder="Enter your name", classes=["q-mb-md"]) bg.input(placeholder="Enter your email", classes=["q-mb-md"]) bg.input(placeholder="Enter your message", classes=["q-mb-md"]) # Another row with mixed content with bg.row(): bg.label("Status:") bg.label("Ready", classes=["text-positive", "text-weight-bold"]) # Build the Vue.js project print("🚀 Building BadGUI project...") bg.build(output_dir="./example-output", project_name="badgui-example") if __name__ == "__main__": main()