From 22c002a68394ae73cb2abc90932408e897edda38 Mon Sep 17 00:00:00 2001 From: kat Date: Tue, 21 Nov 2023 17:09:20 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Dodanie=20zak=C5=82adki=20"About"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 10 ++++------ blurme/components/about.py | 8 ++++++++ blurme/pages/about.py | 7 +++++++ blurme/templates/template.py | 2 +- 4 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 blurme/components/about.py create mode 100644 blurme/pages/about.py 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/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%") From a0e4d8cf226bd840c98eee370e36b0dfd38f45fc Mon Sep 17 00:00:00 2001 From: markrz12 Date: Wed, 22 Nov 2023 16:26:59 +0100 Subject: [PATCH 2/2] blur-31 --- blurme/pages/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blurme/pages/index.py b/blurme/pages/index.py index de65efb..7dbe8ad 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="/github.svg") 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!",