noumanjavaid commited on
Commit
3d75008
·
verified ·
1 Parent(s): 36078a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -32
app.py CHANGED
@@ -14,57 +14,53 @@ logging.basicConfig(
14
  logger = logging.getLogger(__name__)
15
 
16
  # CSS Configuration
 
17
  css = """
18
- /* General styles */
19
  body {
20
- font-family: sans-serif; /* Use a modern font */
 
 
21
  }
22
 
23
  .header {
24
- background-color: #f0f0f0;
25
- padding: 15px 25px;
26
- display: flex;
27
- align-items: center;
28
- border-bottom: 2px solid #ddd;
29
  }
30
 
31
  .logo {
32
- max-height: 70px;
33
- margin-right: 25px;
34
  }
35
 
 
36
  .container {
37
- padding: 25px;
38
- }
39
-
40
- .main-content {
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
- .iframe-container {
48
- padding-bottom: 56.25%; /* Maintain aspect ratio */
49
- position: relative;
50
- width: 100%;
51
- height: 0;
52
  }
53
 
54
- .iframe-container iframe {
55
- position: absolute;
56
- top: 0;
57
- left: 0;
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(280px, 1fr)); /* Adjusted minmax */
66
- gap: 20px;
67
- padding: 0 25px; /* Match container 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 {