64 lines
3.3 KiB
Python
64 lines
3.3 KiB
Python
"""The dashboard page."""
|
|
from blurme.templates import template
|
|
|
|
import reflex as rx
|
|
|
|
ICON_EMAIL = "assets/email-icon.png"
|
|
ICON_PHONE = "assets/phone-icon.png"
|
|
|
|
@template(route="/dashboard", title="Kontakt", image="/contact-icon.png")
|
|
# 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),
|
|
# )
|
|
|
|
def dashboard() -> rx.Component:
|
|
"""The dashboard page.
|
|
|
|
Returns:
|
|
The UI for the dashboard page.
|
|
"""
|
|
container_style = {"background-color": "#f5f5f5", "padding": "10px", "margin-bottom": "20px", "display": "flex", "align-items": "center"}
|
|
icon_style = {"width": "20px", "height": "30px", "margin-right": "10px"}
|
|
heading_style = {"font-weight": "bold", "font-family": "Arial, sans-serif"}
|
|
|
|
return rx.fragment(
|
|
rx.heading("Kontakt", font_size="3em", margin_bottom="10px", 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", text_align = "center"),
|
|
rx.text("Witaj na stronie Kontaktowej w aplikacji BlurMe!", text_align = "center", margin_right = "15%", margin_left="15%"),
|
|
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.", text_align = "center", margin_right = "15%", margin_left="15%"
|
|
),
|
|
rx.wrap(rx.hstack(rx.vstack(rx.fragment(
|
|
rx.hstack(rx.icon(tag="email",style=icon_style),
|
|
rx.heading("E-mail", level=3, style=heading_style), margin_top="20px"),
|
|
rx.text("Zapraszamy do napisania do nas na adres: contact@blurme.com"),
|
|
style=container_style,text_align = "center")),
|
|
rx.vstack(rx.fragment(
|
|
rx.hstack(rx.icon(tag="phone", style=icon_style),rx.heading("Telefon", level=3, style=heading_style), margin_top="20px"),
|
|
rx.text("Możesz także zadzwonić pod numer: +48 123 456 789"),
|
|
style=container_style, text_align = "center"),),
|
|
),style={"align-self": "flex-start"}),)
|