-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMonsterAI.py
More file actions
33 lines (24 loc) · 948 Bytes
/
MonsterAI.py
File metadata and controls
33 lines (24 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
MonsterUI is a UI framework for FastHTML
for building beautiful web interfaces with minimal code
https://monsterui.answer.ai
https://himalayanhacker.substack.com/p/from-giving-up-on-coding-to-shipping
"""
from fasthtml.common import *
from monsterui.all import *
# Choose a theme color (blue, green, red, etc)
hdrs = Theme.blue.headers()
# Create your app with the theme
app, rt = fast_app(hdrs=hdrs)
@rt
def index():
socials = (('github','https://github.com/AnswerDotAI/MonsterUI'),
('twitter','https://twitter.com/isaac_flath/'),
('linkedin','https://www.linkedin.com/in/isaacflath/'))
return Titled("Your First App",
Card(
H1("Welcome!"),
P("Your first MonsterUI app", cls=TextPresets.muted_sm),
P("I'm excited to see what you build with MonsterUI!"),
footer=DivLAligned(*[UkIconLink(icon,href=url) for icon,url in socials])))
serve()