Dodanie zakładki "About"
This commit is contained in:
parent
cc5e0630ac
commit
22c002a683
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,7 +1,5 @@
|
||||
*.db
|
||||
|
||||
*.py[cod]
|
||||
|
||||
.web/
|
||||
|
||||
*.db
|
||||
*.py[cod]
|
||||
.web
|
||||
.web/
|
||||
__pycache__/
|
8
blurme/components/about.py
Normal file
8
blurme/components/about.py
Normal 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
7
blurme/pages/about.py
Normal 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)
|
@ -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%")
|
||||
|
Loading…
Reference in New Issue
Block a user