Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,17 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# โโโโโโโโโโโโโโโโโโโโโ 1. ๊ธฐ๋ณธ ์ค์ โโโโโโโโโโโโโโโโโโโโโ
|
4 |
BEST_FILE, PER_PAGE = "best_games.json", 9
|
@@ -81,6 +94,7 @@ def html(cards, pg, total):
|
|
81 |
padding: 0;
|
82 |
font-family: Poppins, sans-serif;
|
83 |
background: #f0f0f0;
|
|
|
84 |
}
|
85 |
.container {
|
86 |
display: flex;
|
@@ -97,6 +111,8 @@ def html(cards, pg, total):
|
|
97 |
height: calc(100vh - 80px);
|
98 |
box-sizing: border-box;
|
99 |
padding: 10px;
|
|
|
|
|
100 |
}
|
101 |
.card {
|
102 |
background: #fff;
|
@@ -106,6 +122,7 @@ def html(cards, pg, total):
|
|
106 |
display: flex;
|
107 |
flex-direction: column;
|
108 |
height: 100%;
|
|
|
109 |
}
|
110 |
.hdr {
|
111 |
padding: 10px;
|
@@ -197,7 +214,7 @@ def html(cards, pg, total):
|
|
197 |
# โโโโโโโโโโโโโโโโโโโโโ 6. Gradio Blocks UI โโโโโโโโโโโโโโโโโโโ
|
198 |
def build():
|
199 |
_init_best()
|
200 |
-
with gr.Blocks(title="Vibe Game Craft", css="body{margin:0;padding:0;overflow:hidden;} footer{display:none;}") as demo:
|
201 |
# ์ํ ๋ฐ ์ถ๋ ฅ
|
202 |
bp = gr.State(1)
|
203 |
out = gr.HTML()
|
|
|
1 |
+
.ttl {
|
2 |
+
margin: 0;
|
3 |
+
font-size: 0.9rem;
|
4 |
+
font-weight: 600;
|
5 |
+
color: #333;
|
6 |
+
white-space: nowrap;
|
7 |
+
overflow: hidden;
|
8 |
+
text-overflow: ellipsis;
|
9 |
+
}
|
10 |
+
.date {
|
11 |
+
margin-top: 0;
|
12 |
+
font-size: 0.7rem;
|
13 |
+
color: #777;
|
14 |
+
}import os, re, time, json, datetime, requests, gradio as gr
|
15 |
|
16 |
# โโโโโโโโโโโโโโโโโโโโโ 1. ๊ธฐ๋ณธ ์ค์ โโโโโโโโโโโโโโโโโโโโโ
|
17 |
BEST_FILE, PER_PAGE = "best_games.json", 9
|
|
|
94 |
padding: 0;
|
95 |
font-family: Poppins, sans-serif;
|
96 |
background: #f0f0f0;
|
97 |
+
overflow: hidden;
|
98 |
}
|
99 |
.container {
|
100 |
display: flex;
|
|
|
111 |
height: calc(100vh - 80px);
|
112 |
box-sizing: border-box;
|
113 |
padding: 10px;
|
114 |
+
max-height: calc(100vh - 80px);
|
115 |
+
overflow: hidden;
|
116 |
}
|
117 |
.card {
|
118 |
background: #fff;
|
|
|
122 |
display: flex;
|
123 |
flex-direction: column;
|
124 |
height: 100%;
|
125 |
+
max-height: 100%;
|
126 |
}
|
127 |
.hdr {
|
128 |
padding: 10px;
|
|
|
214 |
# โโโโโโโโโโโโโโโโโโโโโ 6. Gradio Blocks UI โโโโโโโโโโโโโโโโโโโ
|
215 |
def build():
|
216 |
_init_best()
|
217 |
+
with gr.Blocks(title="Vibe Game Craft", css="body{margin:0;padding:0;overflow:hidden;} footer{display:none;} .gradio-container{overflow:hidden;}") as demo:
|
218 |
# ์ํ ๋ฐ ์ถ๋ ฅ
|
219 |
bp = gr.State(1)
|
220 |
out = gr.HTML()
|