from lona_picocss.html import HTML, Card, H1
from lona_picocss import install_picocss
from lona import View, App
app = App(__file__)
install_picocss(app, debug=True)
@app.route('/')
class CardsView(View):
def handle_request(self, request):
return HTML(
H1('Card'),
Card(
'Card Body',
header='Card Header',
),
)
app.run()
Name |
Type |
Description |
header |
Node | None |
Initial card header |
footer |
Node | None |
Initial card footer |
Name |
Return Type |
Description |
get_header() |
Node |
Gets or creates a card header |
get_footer() |
Node |
Gets or creates a card footer |