Spaces:
Runtime error
Runtime error
ngoctuanai
commited on
Commit
·
9ac9544
1
Parent(s):
9da3499
Update app.py
Browse files
app.py
CHANGED
@@ -78,51 +78,54 @@ css = """
|
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
max-width: 900px;
|
80 |
margin: auto;
|
81 |
-
padding:
|
82 |
-
border:
|
83 |
-
|
84 |
-
|
85 |
}
|
86 |
|
87 |
/* Button Styles */
|
88 |
.gr-button {
|
89 |
color: white;
|
90 |
-
background:
|
91 |
-
border: none;
|
92 |
-
padding: 10px 20px;
|
93 |
-
border-radius: 8px;
|
94 |
-
|
|
|
95 |
}
|
96 |
|
97 |
.gr-button:hover {
|
98 |
-
background-color: #
|
99 |
-
color: #fff;
|
100 |
}
|
101 |
|
102 |
/* Textbox Styles */
|
103 |
.gr-textbox {
|
104 |
-
border-radius: 8px;
|
105 |
-
border: 1px solid #ccc;
|
106 |
-
padding: 10px;
|
107 |
-
transition: border-color 0.3s;
|
108 |
}
|
109 |
|
110 |
.gr-textbox:focus {
|
111 |
-
border-color: #
|
112 |
-
outline: none;
|
113 |
}
|
114 |
|
115 |
/* Gallery Styles */
|
116 |
#gallery {
|
117 |
-
|
118 |
-
|
|
|
|
|
119 |
}
|
120 |
|
121 |
/* Automatically adjust photo size */
|
122 |
#gallery img {
|
123 |
-
max-width: 100%;
|
124 |
-
height: auto;
|
125 |
-
border-radius: 12px;
|
|
|
126 |
}
|
127 |
"""
|
128 |
|
|
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
max-width: 900px;
|
80 |
margin: auto;
|
81 |
+
padding: 2rem;
|
82 |
+
border-radius: 15px;
|
83 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
84 |
+
text-align: center; /* Center the content horizontally */
|
85 |
}
|
86 |
|
87 |
/* Button Styles */
|
88 |
.gr-button {
|
89 |
color: white;
|
90 |
+
background-color: #007bff; /* Use a primary color for the background */
|
91 |
+
border: none;
|
92 |
+
padding: 10px 20px;
|
93 |
+
border-radius: 8px;
|
94 |
+
cursor: pointer;
|
95 |
+
transition: background-color 0.3s, color 0.3s;
|
96 |
}
|
97 |
|
98 |
.gr-button:hover {
|
99 |
+
background-color: #0056b3; /* Darken the background color on hover */
|
|
|
100 |
}
|
101 |
|
102 |
/* Textbox Styles */
|
103 |
.gr-textbox {
|
104 |
+
border-radius: 8px;
|
105 |
+
border: 1px solid #ccc;
|
106 |
+
padding: 10px;
|
107 |
+
transition: border-color 0.3s;
|
108 |
}
|
109 |
|
110 |
.gr-textbox:focus {
|
111 |
+
border-color: #007bff;
|
112 |
+
outline: none;
|
113 |
}
|
114 |
|
115 |
/* Gallery Styles */
|
116 |
#gallery {
|
117 |
+
display: flex;
|
118 |
+
justify-content: center;
|
119 |
+
align-items: center;
|
120 |
+
margin-top: 2rem;
|
121 |
}
|
122 |
|
123 |
/* Automatically adjust photo size */
|
124 |
#gallery img {
|
125 |
+
max-width: 100%;
|
126 |
+
height: auto;
|
127 |
+
border-radius: 12px;
|
128 |
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
|
129 |
}
|
130 |
"""
|
131 |
|