Pranav0111 commited on
Commit
c8c92c1
·
verified ·
1 Parent(s): a8e782a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +96 -81
app.py CHANGED
@@ -110,94 +110,109 @@ def create_journal_interface():
110
 
111
  # Custom CSS for better styling
112
  custom_css = """
113
- /* Global styles */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  .container {
115
- max-width: 1200px;
116
- margin: 0 auto;
117
- padding: 20px;
118
  }
119
 
120
- /* Header styles */
121
  .header {
122
- text-align: center;
123
- margin-bottom: 2rem;
124
- background: linear-gradient(135deg, #4a90e2 0%, #007aff 100%);
125
- padding: 2rem;
126
- border-radius: 15px;
127
- color: #ffffff;
128
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
129
- }
130
-
131
- /* Input area styles */
132
- .input-container {
133
- background: #ffffff;
134
- border-radius: 15px;
135
- padding: 20px;
136
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
137
- margin-bottom: 20px;
138
- }
139
-
140
- /* Output area styles */
141
- .output-container {
142
- background: #f3f4f6;
143
- border-radius: 15px;
144
- padding: 20px;
145
- margin-top: 20px;
146
- color: #333333;
147
- }
148
-
149
- /* Button styles */
150
- .custom-button {
151
- background: linear-gradient(135deg, #4a90e2 0%, #007aff 100%);
152
- border: none;
153
- padding: 10px 20px;
154
- border-radius: 8px;
155
- color: #ffffff;
156
- font-weight: bold;
157
- cursor: pointer;
158
- transition: transform 0.2s;
159
- }
160
-
161
- .custom-button:hover {
162
- transform: translateY(-2px);
163
- }
164
-
165
- /* Card styles */
166
- .card {
167
- background: #ffffff;
168
- border-radius: 10px;
169
- padding: 15px;
170
- margin: 10px 0;
171
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
172
- transition: transform 0.2s;
173
- }
174
-
175
- .card:hover {
176
- transform: translateY(-2px);
177
- }
178
-
179
- /* Animation for results */
180
- @keyframes fadeIn {
181
- from { opacity: 0; transform: translateY(10px); }
182
- to { opacity: 1; transform: translateY(0); }
183
- }
184
-
185
- .result-animation {
186
- animation: fadeIn 0.5s ease-out;
187
- }
188
-
189
- /* Responsive design */
190
- @media (max-width: 768px) {
191
- .container {
192
- padding: 10px;
193
- }
194
-
195
- .header {
196
- padding: 1rem;
197
- }
198
  }
 
 
199
  """
200
 
 
201
  with gr.Blocks(css=custom_css, title="AI Journal Companion") as interface:
202
  with gr.Column(elem_classes="container"):
203
  # Header
 
110
 
111
  # Custom CSS for better styling
112
  custom_css = """
113
+ /* Global styles */
114
+ .container {
115
+ max-width: 1200px;
116
+ margin: 0 auto;
117
+ padding: 20px;
118
+ }
119
+
120
+ /* Header styles */
121
+ .header {
122
+ text-align: center;
123
+ margin-bottom: 2rem;
124
+ background: linear-gradient(135deg, #4a90e2 0%, #007aff 100%);
125
+ padding: 2rem;
126
+ border-radius: 15px;
127
+ color: #ffffff;
128
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
129
+ }
130
+
131
+ /* Input area styles */
132
+ .input-container {
133
+ background: #1e1e1e;
134
+ border: 1px solid #4a90e2;
135
+ border-radius: 15px;
136
+ padding: 20px;
137
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
138
+ margin-bottom: 20px;
139
+ color: #ffffff;
140
+ }
141
+
142
+ /* Textbox input */
143
+ .journal-input {
144
+ background: #333333;
145
+ color: #ffffff;
146
+ border: 1px solid #4a90e2;
147
+ border-radius: 10px;
148
+ }
149
+
150
+ /* Output area styles */
151
+ .output-container {
152
+ background: #2a2a2a;
153
+ border: 1px solid #4a90e2;
154
+ border-radius: 15px;
155
+ padding: 20px;
156
+ margin-top: 20px;
157
+ color: #ffffff;
158
+ }
159
+
160
+ /* Button styles */
161
+ .custom-button {
162
+ background: linear-gradient(135deg, #4a90e2 0%, #007aff 100%);
163
+ border: none;
164
+ padding: 10px 20px;
165
+ border-radius: 8px;
166
+ color: #ffffff;
167
+ font-weight: bold;
168
+ cursor: pointer;
169
+ transition: transform 0.2s;
170
+ }
171
+
172
+ .custom-button:hover {
173
+ transform: translateY(-2px);
174
+ }
175
+
176
+ /* Card styles */
177
+ .card {
178
+ background: #333333;
179
+ border-radius: 10px;
180
+ padding: 15px;
181
+ margin: 10px 0;
182
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
183
+ transition: transform 0.2s;
184
+ color: #ffffff;
185
+ border: 1px solid #4a90e2;
186
+ }
187
+
188
+ .card:hover {
189
+ transform: translateY(-2px);
190
+ }
191
+
192
+ /* Animation for results */
193
+ @keyframes fadeIn {
194
+ from { opacity: 0; transform: translateY(10px); }
195
+ to { opacity: 1; transform: translateY(0); }
196
+ }
197
+
198
+ .result-animation {
199
+ animation: fadeIn 0.5s ease-out;
200
+ }
201
+
202
+ /* Responsive design */
203
+ @media (max-width: 768px) {
204
  .container {
205
+ padding: 10px;
 
 
206
  }
207
 
 
208
  .header {
209
+ padding: 1rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  }
211
+ }
212
+
213
  """
214
 
215
+
216
  with gr.Blocks(css=custom_css, title="AI Journal Companion") as interface:
217
  with gr.Column(elem_classes="container"):
218
  # Header