-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
41 lines (36 loc) · 1.33 KB
/
main.py
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
33
34
35
36
37
38
39
40
41
from fasthtml.common import *
app, rt = fast_app(hdrs=(picolink))
@rt("/")
def get():
return (
Socials(
title="Vercel + FastHTML",
site_name="Vercel",
description="A demo of Vercel and FastHTML integration",
image="https://vercel.fyi/fasthtml-og",
url="https://fasthtml-template.vercel.app",
twitter_site="@vercel",
),
Container(
Card(
Group(
P(
"FastHTML is a new next-generation web framework for fast, scalable web applications with minimal, compact code. It builds on top of popular foundations like ASGI and HTMX. You can now deploy FastHTML with Vercel CLI or by pushing new changes to your git repository.",
),
),
header=(Titled("FastHTML + Vercel")),
footer=(
P(
A(
"Deploy your own",
href="https://vercel.com/templates/python/fasthtml-python-boilerplate",
),
" or ",
A("learn more", href="https://docs.fastht.ml/"),
"about FastHTML.",
)
),
),
),
)
serve()