ngoctuanai commited on
Commit
9ac9544
1 Parent(s): 9da3499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -22
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: 1.5rem; /* Add padding for spacing */
82
- border: 1px solid #ccc; /* Add a subtle border */
83
- border-radius: 15px; /* Add rounded corners */
84
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow for depth */
85
  }
86
 
87
  /* Button Styles */
88
  .gr-button {
89
  color: white;
90
- background: black;
91
- border: none; /* Remove the border */
92
- padding: 10px 20px; /* Add padding for a more prominent button */
93
- border-radius: 8px; /* Rounded buttons */
94
- transition: background-color 0.3s, color 0.3s; /* Smooth hover effect transition */
 
95
  }
96
 
97
  .gr-button:hover {
98
- background-color: #555; /* Slightly lighter black on hover */
99
- color: #fff;
100
  }
101
 
102
  /* Textbox Styles */
103
  .gr-textbox {
104
- border-radius: 8px; /* Rounded corners for textboxes */
105
- border: 1px solid #ccc; /* Add a subtle border */
106
- padding: 10px; /* Add padding for spacing */
107
- transition: border-color 0.3s; /* Transition for focus effect */
108
  }
109
 
110
  .gr-textbox:focus {
111
- border-color: #333; /* Darker border on focus */
112
- outline: none; /* Remove default outline */
113
  }
114
 
115
  /* Gallery Styles */
116
  #gallery {
117
- text-align: center; /* Center the content horizontally */
118
- margin-top: 20px; /* Add spacing between the gallery and other elements */
 
 
119
  }
120
 
121
  /* Automatically adjust photo size */
122
  #gallery img {
123
- max-width: 100%; /* Images scale to fit the gallery's width */
124
- height: auto; /* Maintain aspect ratio */
125
- border-radius: 12px; /* Rounded corners for images */
 
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