Dodanie zakładki "About"

This commit is contained in:
kat 2023-11-21 17:09:20 +01:00
parent cc5e0630ac
commit 22c002a683
4 changed files with 20 additions and 7 deletions

10
.gitignore vendored
View File

@ -1,7 +1,5 @@
*.db
*.py[cod]
.web/
*.db
*.py[cod]
.web
.web/
__pycache__/

View File

@ -0,0 +1,8 @@
import reflex as rx
def about_content() -> rx.Component:
return rx.box(
rx.h1("About BlurMe"),
rx.p("BlurMe is an awesome app that blurs faces and license plates on photos."),
# Dodaj więcej treści o aplikacji BlurMe...
)

7
blurme/pages/about.py Normal file
View File

@ -0,0 +1,7 @@
from blurme.components import about
about_page = about.template(
route="/about",
title="About BlurMe",
description="Learn more about the BlurMe app and its features.",
)(about.about_content)

View File

@ -47,7 +47,7 @@ def menu_button() -> rx.Component:
],
rx.menu_divider(),
rx.menu_item(
rx.link("About", href="https://github.com/reflex-dev", width="100%")
rx.link("About", href="/about", width="100%")
),
rx.menu_item(
rx.link("Contact", href="mailto:founders@=reflex.dev", width="100%")