Pranav0111 commited on
Commit
39b2d31
1 Parent(s): c8c92c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +78 -94
app.py CHANGED
@@ -111,105 +111,89 @@ def create_journal_interface():
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
 
 
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, #6B73FF 0%, #000DFF 100%);
125
+ padding: 2rem;
126
+ border-radius: 15px;
127
+ color: white;
128
+ }
129
+
130
+ /* Input area styles */
131
+ .input-container {
132
+ background: white;
133
+ border-radius: 15px;
134
+ padding: 20px;
135
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
136
+ margin-bottom: 20px;
137
+ }
138
+
139
+ /* Output area styles */
140
+ .output-container {
141
+ background: #f8f9fa;
142
+ border-radius: 15px;
143
+ padding: 20px;
144
+ margin-top: 20px;
145
+ }
146
+
147
+ /* Button styles */
148
+ .custom-button {
149
+ background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
150
+ border: none;
151
+ padding: 10px 20px;
152
+ border-radius: 8px;
153
+ color: white;
154
+ font-weight: bold;
155
+ cursor: pointer;
156
+ transition: transform 0.2s;
157
+ }
158
+
159
+ .custom-button:hover {
160
+ transform: translateY(-2px);
161
+ }
162
+
163
+ /* Card styles */
164
+ .card {
165
+ background: white;
166
+ border-radius: 10px;
167
+ padding: 15px;
168
+ margin: 10px 0;
169
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
170
+ transition: transform 0.2s;
171
+ }
172
+
173
+ .card:hover {
174
+ transform: translateY(-2px);
175
+ }
176
+
177
+ /* Animation for results */
178
+ @keyframes fadeIn {
179
+ from { opacity: 0; transform: translateY(10px); }
180
+ to { opacity: 1; transform: translateY(0); }
181
+ }
182
+
183
+ .result-animation {
184
+ animation: fadeIn 0.5s ease-out;
185
+ }
186
+
187
+ /* Responsive design */
188
+ @media (max-width: 768px) {
189
+ .container {
190
+ padding: 10px;
191
+ }
192
+
193
+ .header {
194
+ padding: 1rem;
195
+ }
196
  }
 
 
197
  """
198
 
199