Spaces:
Sleeping
Sleeping
noumanjavaid
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,57 +14,53 @@ logging.basicConfig(
|
|
14 |
logger = logging.getLogger(__name__)
|
15 |
|
16 |
# CSS Configuration
|
|
|
17 |
css = """
|
18 |
-
/* General
|
19 |
body {
|
20 |
-
font-family: sans-serif;
|
|
|
|
|
21 |
}
|
22 |
|
23 |
.header {
|
24 |
-
background-color: #
|
25 |
-
padding:
|
26 |
-
display: flex;
|
27 |
-
align-items: center;
|
28 |
-
border-bottom:
|
29 |
}
|
30 |
|
31 |
.logo {
|
32 |
-
max-height:
|
33 |
-
margin-right:
|
34 |
}
|
35 |
|
|
|
36 |
.container {
|
37 |
-
padding:
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
border: 1px solid #ddd;
|
42 |
-
border-radius: 8px;
|
43 |
-
overflow: hidden;
|
44 |
-
margin-bottom: 20px; /* Add some spacing below the iframe */
|
45 |
}
|
46 |
|
47 |
-
.
|
48 |
-
padding
|
49 |
-
|
50 |
-
width: 100%;
|
51 |
-
height: 0;
|
52 |
}
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
width: 100%;
|
59 |
-
height: 100%;
|
60 |
-
border: none;
|
61 |
}
|
62 |
|
|
|
63 |
.nav-grid {
|
64 |
display: grid;
|
65 |
-
grid-template-columns: repeat(auto-fit, minmax(
|
66 |
-
gap: 20px;
|
67 |
-
padding:
|
68 |
}
|
69 |
|
70 |
.nav-card {
|
|
|
14 |
logger = logging.getLogger(__name__)
|
15 |
|
16 |
# CSS Configuration
|
17 |
+
|
18 |
css = """
|
19 |
+
/* General Styles */
|
20 |
body {
|
21 |
+
font-family: sans-serif;
|
22 |
+
background-color: #f8f8f8; /* Light background for better contrast */
|
23 |
+
color: #333; /* Darker text color */
|
24 |
}
|
25 |
|
26 |
.header {
|
27 |
+
background-color: #fff; /* White header */
|
28 |
+
padding: 20px;
|
29 |
+
display: flex;
|
30 |
+
align-items: center;
|
31 |
+
border-bottom: 1px solid #eee;
|
32 |
}
|
33 |
|
34 |
.logo {
|
35 |
+
max-height: 80px;
|
36 |
+
margin-right: 30px;
|
37 |
}
|
38 |
|
39 |
+
/* Main Content Area */
|
40 |
.container {
|
41 |
+
padding: 30px;
|
42 |
+
background-color: #fff; /* White container background */
|
43 |
+
border-radius: 8px;
|
44 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
+
.main-content, .image-upload-area {
|
48 |
+
padding: 20px; /* Add padding around content sections */
|
49 |
+
border: none; /* Remove borders */
|
|
|
|
|
50 |
}
|
51 |
|
52 |
+
/* Image Upload */
|
53 |
+
.image-upload-area .gradio-file-upload { /* Style individual file upload components */
|
54 |
+
border: 1px solid #ddd;
|
55 |
+
border-radius: 5px;
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
+
/* Navigation Grid */
|
59 |
.nav-grid {
|
60 |
display: grid;
|
61 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
62 |
+
gap: 20px;
|
63 |
+
padding: 20px;
|
64 |
}
|
65 |
|
66 |
.nav-card {
|