Ali2206 commited on
Commit
616be89
·
verified ·
1 Parent(s): 02a5fe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -29
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: #0f172a; /* dark slate */
45
- color: #e2e8f0;
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: 800;
54
- color: #38bdf8;
55
- margin-bottom: 0.4rem;
56
  }
57
 
58
  .description-text {
59
  text-align: center;
60
  font-size: 1rem;
61
- color: #94a3b8;
62
  margin-bottom: 2rem;
63
  }
64
 
65
- .gr-box, .gr-form, .gr-column, .gr-panel, .gr-group {
66
- background-color: #1e293b !important;
67
  border-radius: 16px !important;
68
  padding: 2rem !important;
69
- max-width: 700px;
70
  margin: auto;
71
- box-shadow: 0 0 0 1px #334155;
72
  }
73
 
74
  label {
75
  font-weight: 600;
76
- color: #e2e8f0;
77
- margin-bottom: 0.25rem;
78
  }
79
 
80
  input, select, textarea {
81
- background-color: #0f172a !important;
82
- color: #f8fafc !important;
83
- border: 1px solid #334155 !important;
84
- font-size: 0.95rem;
85
  padding: 10px;
86
- border-radius: 8px;
87
  }
88
 
89
  button {
90
- background-color: #38bdf8 !important;
91
- color: #0f172a !important;
92
- border-radius: 25px !important;
93
- font-weight: bold;
94
- padding: 12px 24px;
 
95
  margin-top: 1.5rem;
96
  }
97
 
98
  .output-box textarea {
99
- background-color: #0f172a !important;
100
- color: #38bdf8 !important;
101
  border: none;
102
- font-size: 0.9rem;
 
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("Create Doctor Account")
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")