Update modules/ui/views/landing_view.py
Browse files
modules/ui/views/landing_view.py
CHANGED
@@ -6,6 +6,7 @@ from ...database.sql_db import store_application_request
|
|
6 |
from datetime import datetime
|
7 |
import uuid
|
8 |
|
|
|
9 |
def get_asset_path(filename, asset_type='img_logo'):
|
10 |
"""
|
11 |
Obtiene la ruta completa de un asset
|
@@ -38,12 +39,14 @@ def create_landing_view():
|
|
38 |
) as view:
|
39 |
# Header con logo
|
40 |
with gr.Column(elem_id="header-logo"):
|
41 |
-
gr.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
47 |
|
48 |
with gr.Row(elem_classes="container"):
|
49 |
# Primera columna - Tabs de Login y Registro (50%)
|
@@ -51,6 +54,16 @@ def create_landing_view():
|
|
51 |
with gr.Tabs() as tabs:
|
52 |
# Tab de Login
|
53 |
with gr.TabItem("Iniciar Sesi贸n", elem_classes="gr-form"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
login_button = gr.Button(
|
55 |
"Ingresar",
|
56 |
variant="primary",
|
@@ -152,4 +165,6 @@ def create_landing_view():
|
|
152 |
""")
|
153 |
|
154 |
# Mantener la funcionalidad de navegaci贸n existente
|
155 |
-
start_button = gr.Button(visible=False)
|
|
|
|
|
|
6 |
from datetime import datetime
|
7 |
import uuid
|
8 |
|
9 |
+
##########################################################
|
10 |
def get_asset_path(filename, asset_type='img_logo'):
|
11 |
"""
|
12 |
Obtiene la ruta completa de un asset
|
|
|
39 |
) as view:
|
40 |
# Header con logo
|
41 |
with gr.Column(elem_id="header-logo"):
|
42 |
+
gr.Image(
|
43 |
+
value=logo_path,
|
44 |
+
label=None,
|
45 |
+
show_label=False,
|
46 |
+
container=False,
|
47 |
+
height=200
|
48 |
+
)
|
49 |
+
#gr.Markdown("# Bienvenido a AIdeaText")
|
50 |
|
51 |
with gr.Row(elem_classes="container"):
|
52 |
# Primera columna - Tabs de Login y Registro (50%)
|
|
|
54 |
with gr.Tabs() as tabs:
|
55 |
# Tab de Login
|
56 |
with gr.TabItem("Iniciar Sesi贸n", elem_classes="gr-form"):
|
57 |
+
with gr.Column():
|
58 |
+
username = gr.Textbox(
|
59 |
+
label="Usuario",
|
60 |
+
placeholder="Ingrese su usuario"
|
61 |
+
)
|
62 |
+
password = gr.Textbox(
|
63 |
+
label="Contrase帽a",
|
64 |
+
type="password",
|
65 |
+
placeholder="Ingrese su contrase帽a"
|
66 |
+
)
|
67 |
login_button = gr.Button(
|
68 |
"Ingresar",
|
69 |
variant="primary",
|
|
|
165 |
""")
|
166 |
|
167 |
# Mantener la funcionalidad de navegaci贸n existente
|
168 |
+
start_button = gr.Button(visible=False)
|
169 |
+
|
170 |
+
return view, login_button
|