add about us
This commit is contained in:
@@ -8,6 +8,12 @@ from pages.profile.profilepage import ProfilePage
|
||||
from pages.shopping_cart.cart import Cart
|
||||
from pages.shopping_cart.peload_card import PreloadCard
|
||||
from pages.shopping_cart.payment_redirect import PaymentRedirect
|
||||
from pages.details.about_us import AboutUS
|
||||
from pages.details.terms_and_conditions import TermsAndConditions
|
||||
from pages.details.cancel_policy import CancelPolicy
|
||||
from pages.details.confidentialty_policy import ConfidentialtyPolicy
|
||||
from pages.details.delivery_policy import DeliveryPolicys
|
||||
from pages.details.gdpr_policy import GDPR
|
||||
|
||||
import os
|
||||
os.environ["FLET_SECRET_KEY"] = os.urandom(12).hex()
|
||||
@@ -82,6 +88,42 @@ def main(page: ft.Page):
|
||||
page.add(redirect.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/about_us':
|
||||
about_us = AboutUS(page)
|
||||
page.add(about_us.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/termeni_si_conditii':
|
||||
termeni_si_conditii = TermsAndConditions(page)
|
||||
page.add(termeni_si_conditii.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/politica_de_anulare_comanda':
|
||||
politica_de_anulare_comanda = CancelPolicy(page)
|
||||
page.add(politica_de_anulare_comanda.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/politica_de_confidentialitate':
|
||||
politica_de_confidentialitate = ConfidentialtyPolicy(page)
|
||||
page.add(politica_de_confidentialitate.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/politica_de_livrare_comanda':
|
||||
politica_de_livrare_comanda = DeliveryPolicys(page)
|
||||
page.add(politica_de_livrare_comanda.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
if route == '/gdpr':
|
||||
gdpr = GDPR(page)
|
||||
page.add(gdpr.build())
|
||||
page.update()
|
||||
return
|
||||
|
||||
# 5) Fallback 404
|
||||
page.add(ft.Text("404: Page not found"))
|
||||
|
||||
Reference in New Issue
Block a user