2023-11-17 14:22:28 +01:00
|
|
|
"""The dashboard page."""
|
|
|
|
from blurme.templates import template
|
|
|
|
|
|
|
|
import reflex as rx
|
|
|
|
|
2023-12-12 15:06:29 +01:00
|
|
|
ICON_EMAIL = "assets/email-icon.png"
|
|
|
|
ICON_PHONE = "assets/phone-icon.png"
|
2023-11-17 14:22:28 +01:00
|
|
|
|
2023-11-26 18:16:54 +01:00
|
|
|
@template(route="/dashboard", title="Kontakt", image="/contact-icon.png")
|
2023-12-12 15:06:29 +01:00
|
|
|
# def dashboard() -> rx.Component:
|
|
|
|
# """The dashboard page.
|
|
|
|
#
|
|
|
|
# Returns:
|
|
|
|
# The UI for the dashboard page.
|
|
|
|
# """
|
|
|
|
# section_style = {"background-color": "#f5f5f5", "padding": "10px", "margin-bottom": "20px"}
|
|
|
|
# icon_style = {"width": "20px", "height": "20px", "margin-right": "10px"}
|
|
|
|
# heading_style = {"font-weight": "bold", "font-family": "Arial, sans-serif"}
|
|
|
|
#
|
|
|
|
# return rx.fragment(
|
|
|
|
# rx.heading("Kontakt", font_size="3em"),
|
|
|
|
# rx.text("Witaj na stronie Kontaktowej w aplikacji BlurMe!"),
|
|
|
|
# rx.text(
|
|
|
|
# "Jesteśmy dostępni dla Ciebie na różnych platformach. "
|
|
|
|
# "Skontaktuj się z nami, gdy tylko masz pytania, sugestie lub "
|
|
|
|
# "po prostu chcesz porozmawiać o naszej aplikacji."
|
|
|
|
# ),
|
|
|
|
# rx.image(src=ICON_EMAIL, alt="Email icon", style=icon_style),
|
|
|
|
# rx.heading("E-mail", level=2, style=heading_style),
|
|
|
|
# rx.text("Zapraszamy do napisania do nas na adres: contact@blurme.com", style=section_style),
|
|
|
|
# rx.image(src=ICON_PHONE, alt="Phone icon", style=icon_style),
|
|
|
|
# rx.heading("Telefon", level=2, style=heading_style),
|
|
|
|
# rx.text("Możesz także zadzwonić pod numer: +48 123 456 789", style=section_style),
|
|
|
|
# )
|
|
|
|
|
2023-11-17 14:22:28 +01:00
|
|
|
def dashboard() -> rx.Component:
|
|
|
|
"""The dashboard page.
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
The UI for the dashboard page.
|
|
|
|
"""
|
2023-12-12 15:06:29 +01:00
|
|
|
container_style = {"background-color": "#f5f5f5", "padding": "10px", "margin-bottom": "20px", "display": "flex", "align-items": "center"}
|
|
|
|
icon_style = {"width": "20px", "height": "20px", "margin-right": "10px"}
|
|
|
|
heading_style = {"font-weight": "bold", "font-family": "Arial, sans-serif"}
|
|
|
|
|
2023-11-26 18:16:54 +01:00
|
|
|
return rx.fragment(
|
|
|
|
rx.heading("Kontakt", font_size="3em"),
|
|
|
|
rx.text("Witaj na stronie Kontaktowej w aplikacji BlurMe!"),
|
2023-11-17 20:25:22 +01:00
|
|
|
rx.text(
|
2023-11-26 18:16:54 +01:00
|
|
|
"Jesteśmy dostępni dla Ciebie na różnych platformach. "
|
|
|
|
"Skontaktuj się z nami, gdy tylko masz pytania, sugestie lub "
|
|
|
|
"po prostu chcesz porozmawiać o naszej aplikacji."
|
2023-11-17 20:25:22 +01:00
|
|
|
),
|
2023-12-12 15:06:29 +01:00
|
|
|
rx.fragment(
|
|
|
|
rx.fragment(
|
|
|
|
rx.image(src=ICON_EMAIL, alt="Email icon", style=icon_style),
|
|
|
|
rx.heading("E-mail", level=3, style=heading_style),
|
|
|
|
rx.text("Zapraszamy do napisania do nas na adres: contact@blurme.com"),
|
|
|
|
style=container_style
|
|
|
|
)
|
|
|
|
),
|
|
|
|
rx.fragment(
|
|
|
|
rx.fragment(
|
|
|
|
rx.image(src=ICON_PHONE, alt="Phone icon", style=icon_style),
|
|
|
|
rx.heading("Telefon", level=3, style=heading_style),
|
|
|
|
rx.text("Możesz także zadzwonić pod numer: +48 123 456 789"),
|
|
|
|
style=container_style
|
|
|
|
)
|
|
|
|
)
|
2023-11-17 20:25:22 +01:00
|
|
|
)
|