Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,8 +41,8 @@ def create_doctor(full_name, email, matricule, password, specialty):
|
|
| 41 |
# Modern admin UI
|
| 42 |
with gr.Blocks(css="""
|
| 43 |
.gradio-container {
|
| 44 |
-
background-color: #
|
| 45 |
-
color: #
|
| 46 |
font-family: 'Segoe UI', sans-serif;
|
| 47 |
padding: 3rem;
|
| 48 |
}
|
|
@@ -50,56 +50,57 @@ with gr.Blocks(css="""
|
|
| 50 |
.title-text {
|
| 51 |
text-align: center;
|
| 52 |
font-size: 2rem;
|
| 53 |
-
font-weight:
|
| 54 |
-
color: #
|
| 55 |
-
margin-bottom: 0.
|
| 56 |
}
|
| 57 |
|
| 58 |
.description-text {
|
| 59 |
text-align: center;
|
| 60 |
font-size: 1rem;
|
| 61 |
-
color: #
|
| 62 |
margin-bottom: 2rem;
|
| 63 |
}
|
| 64 |
|
| 65 |
-
.gr-box, .gr-form, .gr-column, .gr-panel
|
| 66 |
-
background-color: #
|
| 67 |
border-radius: 16px !important;
|
| 68 |
padding: 2rem !important;
|
| 69 |
-
max-width:
|
| 70 |
margin: auto;
|
| 71 |
-
box-shadow: 0 0 0 1px #
|
| 72 |
}
|
| 73 |
|
| 74 |
label {
|
| 75 |
font-weight: 600;
|
| 76 |
-
color: #
|
| 77 |
-
margin-bottom:
|
| 78 |
}
|
| 79 |
|
| 80 |
input, select, textarea {
|
| 81 |
-
background-color: #
|
| 82 |
-
color: #
|
| 83 |
-
border: 1px solid #
|
| 84 |
-
font-size:
|
| 85 |
padding: 10px;
|
| 86 |
-
border-radius:
|
| 87 |
}
|
| 88 |
|
| 89 |
button {
|
| 90 |
-
background-color: #
|
| 91 |
-
color: #
|
| 92 |
-
border-radius:
|
| 93 |
-
font-weight:
|
| 94 |
-
padding: 12px
|
|
|
|
| 95 |
margin-top: 1.5rem;
|
| 96 |
}
|
| 97 |
|
| 98 |
.output-box textarea {
|
| 99 |
-
background-color:
|
| 100 |
-
color: #38bdf8 !important;
|
| 101 |
border: none;
|
| 102 |
-
|
|
|
|
| 103 |
margin-top: 1rem;
|
| 104 |
}
|
| 105 |
""") as admin_ui:
|
|
@@ -119,7 +120,7 @@ with gr.Blocks(css="""
|
|
| 119 |
value="Cardiology"
|
| 120 |
)
|
| 121 |
password = gr.Textbox(label="Password", type="password", placeholder="Secure password")
|
| 122 |
-
submit_btn = gr.Button("
|
| 123 |
output = gr.Textbox(label="", show_label=False, elem_classes=["output-box"])
|
| 124 |
|
| 125 |
def create_doctor(full_name, email, matricule, specialty, password):
|
|
@@ -146,8 +147,5 @@ with gr.Blocks(css="""
|
|
| 146 |
outputs=output
|
| 147 |
)
|
| 148 |
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
# Mount Gradio at /admin
|
| 153 |
app = gr.mount_gradio_app(app, admin_ui, path="/admin")
|
|
|
|
| 41 |
# Modern admin UI
|
| 42 |
with gr.Blocks(css="""
|
| 43 |
.gradio-container {
|
| 44 |
+
background-color: #1A1B1F;
|
| 45 |
+
color: #E2E8F0;
|
| 46 |
font-family: 'Segoe UI', sans-serif;
|
| 47 |
padding: 3rem;
|
| 48 |
}
|
|
|
|
| 50 |
.title-text {
|
| 51 |
text-align: center;
|
| 52 |
font-size: 2rem;
|
| 53 |
+
font-weight: 700;
|
| 54 |
+
color: #37B6E9;
|
| 55 |
+
margin-bottom: 0.5rem;
|
| 56 |
}
|
| 57 |
|
| 58 |
.description-text {
|
| 59 |
text-align: center;
|
| 60 |
font-size: 1rem;
|
| 61 |
+
color: #A0AEC0;
|
| 62 |
margin-bottom: 2rem;
|
| 63 |
}
|
| 64 |
|
| 65 |
+
.gr-box, .gr-form, .gr-column, .gr-panel {
|
| 66 |
+
background-color: #2D2F36 !important;
|
| 67 |
border-radius: 16px !important;
|
| 68 |
padding: 2rem !important;
|
| 69 |
+
max-width: 600px;
|
| 70 |
margin: auto;
|
| 71 |
+
box-shadow: 0 0 0 1px #3B3E47;
|
| 72 |
}
|
| 73 |
|
| 74 |
label {
|
| 75 |
font-weight: 600;
|
| 76 |
+
color: #F7FAFC;
|
| 77 |
+
margin-bottom: 6px;
|
| 78 |
}
|
| 79 |
|
| 80 |
input, select, textarea {
|
| 81 |
+
background-color: #1A1B1F !important;
|
| 82 |
+
color: #F7FAFC !important;
|
| 83 |
+
border: 1px solid #4A5568 !important;
|
| 84 |
+
font-size: 14px;
|
| 85 |
padding: 10px;
|
| 86 |
+
border-radius: 10px;
|
| 87 |
}
|
| 88 |
|
| 89 |
button {
|
| 90 |
+
background-color: #37B6E9 !important;
|
| 91 |
+
color: #1A1B1F !important;
|
| 92 |
+
border-radius: 10px !important;
|
| 93 |
+
font-weight: 600;
|
| 94 |
+
padding: 12px;
|
| 95 |
+
width: 100%;
|
| 96 |
margin-top: 1.5rem;
|
| 97 |
}
|
| 98 |
|
| 99 |
.output-box textarea {
|
| 100 |
+
background-color: transparent !important;
|
|
|
|
| 101 |
border: none;
|
| 102 |
+
color: #90CDF4;
|
| 103 |
+
font-size: 14px;
|
| 104 |
margin-top: 1rem;
|
| 105 |
}
|
| 106 |
""") as admin_ui:
|
|
|
|
| 120 |
value="Cardiology"
|
| 121 |
)
|
| 122 |
password = gr.Textbox(label="Password", type="password", placeholder="Secure password")
|
| 123 |
+
submit_btn = gr.Button("Create Doctor Account")
|
| 124 |
output = gr.Textbox(label="", show_label=False, elem_classes=["output-box"])
|
| 125 |
|
| 126 |
def create_doctor(full_name, email, matricule, specialty, password):
|
|
|
|
| 147 |
outputs=output
|
| 148 |
)
|
| 149 |
|
|
|
|
|
|
|
|
|
|
| 150 |
# Mount Gradio at /admin
|
| 151 |
app = gr.mount_gradio_app(app, admin_ui, path="/admin")
|