ginipick commited on
Commit
70a39ee
ยท
verified ยท
1 Parent(s): 3df24f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -10
app.py CHANGED
@@ -153,16 +153,30 @@ def html(cards, pg, total):
153
  }
154
  .navigation-buttons {
155
  position: fixed;
156
- bottom: 10px;
157
  left: 0;
158
  right: 0;
159
  display: flex;
160
  justify-content: center;
161
- gap: 20px;
162
- padding: 10px;
163
- background: rgba(255, 255, 255, 0.7);
164
- backdrop-filter: blur(5px);
165
- z-index: 100;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  }
167
  </style>"""
168
 
@@ -191,10 +205,10 @@ def build():
191
  bp = gr.State(1)
192
  out = gr.HTML()
193
 
194
- # ํŽ˜์ด์ง€ ๋„ค๋น„๊ฒŒ์ด์…˜ (ํ™”๋ฉด ํ•˜๋‹จ์— ๊ณ ์ •)
195
- with gr.Row(elem_classes="navigation-buttons"):
196
- b_prev = gr.Button("โ—€ ์ด์ „", size="sm")
197
- b_next = gr.Button("๋‹ค์Œ โ–ถ", size="sm")
198
 
199
  def show_best(p=1):
200
  d, t = page(_load_best(), p)
 
153
  }
154
  .navigation-buttons {
155
  position: fixed;
156
+ bottom: 20px;
157
  left: 0;
158
  right: 0;
159
  display: flex;
160
  justify-content: center;
161
+ gap: 30px;
162
+ padding: 15px;
163
+ z-index: 1000;
164
+ }
165
+ .navigation-buttons button {
166
+ background: rgba(255, 255, 255, 0.9);
167
+ border: 1px solid #ddd;
168
+ box-shadow: 0 4px 12px rgba(0,0,0,0.2);
169
+ padding: 10px 25px;
170
+ border-radius: 30px;
171
+ font-size: 1.2rem;
172
+ font-weight: bold;
173
+ cursor: pointer;
174
+ transition: all 0.2s;
175
+ }
176
+ .navigation-buttons button:hover {
177
+ background: #f0f0f0;
178
+ transform: translateY(-2px);
179
+ box-shadow: 0 6px 15px rgba(0,0,0,0.2);
180
  }
181
  </style>"""
182
 
 
205
  bp = gr.State(1)
206
  out = gr.HTML()
207
 
208
+ # ํŽ˜์ด์ง€ ๋„ค๋น„๊ฒŒ์ด์…˜
209
+ with gr.Row():
210
+ b_prev = gr.Button("โ—€ ์ด์ „", size="lg")
211
+ b_next = gr.Button("๋‹ค์Œ โ–ถ", size="lg")
212
 
213
  def show_best(p=1):
214
  d, t = page(_load_best(), p)