AItool commited on
Commit
88bf7e3
·
verified ·
1 Parent(s): ae1ab34

Upload 2 files

Browse files
Files changed (2) hide show
  1. requirements.txt +3 -0
  2. testnavbar.py +15 -0
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ git+https://github.com/AnswerDotAI/fasthtml.git
2
+ monsterui
3
+ uvicorn
testnavbar.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fasthtml.common import *
2
+ from monsterui.all import *
3
+ hdrs = Theme.blue.headers(mode='light')
4
+ app, rt = fast_app(hdrs=hdrs, live=True)
5
+ @rt
6
+ def index():
7
+ return Title('Hello World'), Container(
8
+ H2(A('Pretty URL', href='', cls=AT.primary)),
9
+ P('I love monsterui!'),
10
+ A('Go to Google', href='https://google.com', cls=AT.classic),
11
+ Card('A Fancy Card :)')
12
+ )
13
+
14
+
15
+ serve()