first commit
This commit is contained in:
BIN
InConstruction/assets/images/tainagustului.png
Normal file
BIN
InConstruction/assets/images/tainagustului.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
28
InConstruction/main.py
Normal file
28
InConstruction/main.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import flet as ft
|
||||||
|
|
||||||
|
import os
|
||||||
|
os.environ["FLET_SECRET_KEY"] = os.urandom(12).hex()
|
||||||
|
|
||||||
|
def main(page: ft.Page):
|
||||||
|
page.title = "Taina Gustului"
|
||||||
|
page.theme_mode = ft.ThemeMode.LIGHT
|
||||||
|
page.theme = ft.Theme(color_scheme=ft.ColorScheme(primary=ft.Colors.BLUE))
|
||||||
|
page.vertical_alignment = ft.MainAxisAlignment.CENTER
|
||||||
|
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
|
||||||
|
page.padding = 0
|
||||||
|
|
||||||
|
image = ft.Image("images/tainagustului.png", width=300)
|
||||||
|
message = ft.Text("Deschidem in curand!", size=20, weight=ft.FontWeight.BOLD)
|
||||||
|
page.add(image)
|
||||||
|
page.add(message)
|
||||||
|
page.update()
|
||||||
|
|
||||||
|
|
||||||
|
ft.app(
|
||||||
|
target=main,
|
||||||
|
assets_dir="assets",
|
||||||
|
upload_dir="uploads",
|
||||||
|
view=ft.WEB_BROWSER,
|
||||||
|
port=5555,
|
||||||
|
host="0.0.0.0"
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user