diff --git a/.gitignore b/.gitignore index 6e4e04e..702282d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ -*.db - -*.py[cod] - -.web/ - +*.db +*.py[cod] +.web +.web/ __pycache__/ \ No newline at end of file diff --git a/blurme/components/about.py b/blurme/components/about.py new file mode 100644 index 0000000..17d491d --- /dev/null +++ b/blurme/components/about.py @@ -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... + ) diff --git a/blurme/pages/about.py b/blurme/pages/about.py new file mode 100644 index 0000000..5d8b410 --- /dev/null +++ b/blurme/pages/about.py @@ -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) \ No newline at end of file diff --git a/blurme/pages/index.py b/blurme/pages/index.py index e515c47..9a9c263 100644 --- a/blurme/pages/index.py +++ b/blurme/pages/index.py @@ -8,7 +8,7 @@ import reflex as rx @template(route="/", title="Strona główna", image = "/home-icon.png") def index() -> rx.Component: return rx.vstack( - rx.heading("Witaj w BlurMe!", font_size="3em", margin_bottom="25px", background_image="linear-gradient(271.68deg, #7566fe 0.75%, #f96caf 88.52%)", background_clip="text", padding = "10px"), + rx.heading("Witaj w BlurMe!", font_size="3em", margin_bottom="25px", background_image="linear-gradient( 64.5deg, rgba(245,116,185,1) 14.7%, rgba(89,97,223,1) 88.7% )", background_clip="text", padding = "10px"), rx.wrap( rx.hstack( rx.vstack(rx.text("Aplikacja do anonimizacji zdjęć: usunięcie wybranych informacji identyfikujących ze zdjęć z wydarzeń i miejsc publicznych nigdy nie było tak proste!", diff --git a/blurme/templates/template.py b/blurme/templates/template.py index ad0b44a..0b074ae 100644 --- a/blurme/templates/template.py +++ b/blurme/templates/template.py @@ -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%")