Artificial-superintelligence commited on
Commit
3f85e37
·
verified ·
1 Parent(s): 921a07f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -28
app.py CHANGED
@@ -46,8 +46,8 @@ st.markdown("""
46
 
47
  body {
48
  font-family: 'Poppins', sans-serif;
49
- background-color: #f0f7ff;
50
- color: #333;
51
  }
52
  .stApp {
53
  max-width: 1200px;
@@ -55,40 +55,42 @@ st.markdown("""
55
  padding: 2rem;
56
  }
57
  .main-container {
58
- background: #ffffff;
59
  border-radius: 20px;
60
  padding: 3rem;
61
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
62
  }
63
  h1 {
64
  font-size: 3rem;
65
  font-weight: 700;
66
- color: #1e3a8a;
67
  text-align: center;
68
  margin-bottom: 1rem;
69
- text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
70
  }
71
  .subtitle {
72
  font-size: 1.2rem;
73
  text-align: center;
74
- color: #64748b;
75
  margin-bottom: 3rem;
76
  }
77
  .stTextArea textarea {
78
- border: 2px solid #cbd5e1;
79
  border-radius: 12px;
80
  font-size: 1rem;
81
  padding: 1rem;
82
  transition: all 0.3s ease;
83
- box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
 
 
84
  }
85
  .stTextArea textarea:focus {
86
- border-color: #3b82f6;
87
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
88
  }
89
  .stButton button {
90
- background-color: #3b82f6;
91
- color: white;
92
  border: none;
93
  border-radius: 12px;
94
  font-size: 1.1rem;
@@ -96,37 +98,37 @@ st.markdown("""
96
  padding: 0.75rem 2rem;
97
  transition: all 0.3s ease;
98
  width: 100%;
99
- box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
100
  }
101
  .stButton button:hover {
102
- background-color: #2563eb;
103
  transform: translateY(-2px);
104
- box-shadow: 0 6px 8px rgba(59, 130, 246, 0.4);
105
  }
106
  .output-container {
107
- background: #f8fafc;
108
  border-radius: 12px;
109
  padding: 1.5rem;
110
  margin-top: 2rem;
111
- border: 1px solid #e2e8f0;
112
  }
113
  .code-block {
114
- background-color: #272822;
115
  border-radius: 12px;
116
  padding: 1.5rem;
117
  margin-top: 1rem;
118
  overflow-x: auto;
119
  }
120
  .stAlert {
121
- background-color: #dbeafe;
122
- color: #1e40af;
123
  border-radius: 12px;
124
  border: none;
125
  padding: 1rem 1.5rem;
126
  margin-bottom: 1rem;
127
  }
128
  .stSpinner {
129
- color: #3b82f6;
130
  }
131
  /* Custom scrollbar */
132
  ::-webkit-scrollbar {
@@ -134,15 +136,15 @@ st.markdown("""
134
  height: 8px;
135
  }
136
  ::-webkit-scrollbar-track {
137
- background: #f1f5f9;
138
  border-radius: 4px;
139
  }
140
  ::-webkit-scrollbar-thumb {
141
- background: #94a3b8;
142
  border-radius: 4px;
143
  }
144
  ::-webkit-scrollbar-thumb:hover {
145
- background: #64748b;
146
  }
147
  .source {
148
  font-family: 'Fira Code', monospace;
@@ -150,9 +152,9 @@ st.markdown("""
150
  line-height: 1.4;
151
  }
152
  .source .linenos {
153
- color: #75715e;
154
  padding-right: 10px;
155
- border-right: 1px solid #49483e;
156
  user-select: none;
157
  }
158
  .source pre {
@@ -192,7 +194,7 @@ if st.button("Generate Expert Code"):
192
  st.markdown('</div>', unsafe_allow_html=True)
193
 
194
  st.markdown("""
195
- <div style='text-align: center; margin-top: 2rem; color: #4a5568;'>
196
  Crafted with ❤️ by Your Advanced AI Code Assistant
197
  </div>
198
  """, unsafe_allow_html=True)
 
46
 
47
  body {
48
  font-family: 'Poppins', sans-serif;
49
+ background-color: #2d2d2d;
50
+ color: #e0e0e0;
51
  }
52
  .stApp {
53
  max-width: 1200px;
 
55
  padding: 2rem;
56
  }
57
  .main-container {
58
+ background: #333;
59
  border-radius: 20px;
60
  padding: 3rem;
61
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
62
  }
63
  h1 {
64
  font-size: 3rem;
65
  font-weight: 700;
66
+ color: #e0e0e0;
67
  text-align: center;
68
  margin-bottom: 1rem;
69
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
70
  }
71
  .subtitle {
72
  font-size: 1.2rem;
73
  text-align: center;
74
+ color: #b0bec5;
75
  margin-bottom: 3rem;
76
  }
77
  .stTextArea textarea {
78
+ border: 2px solid #444;
79
  border-radius: 12px;
80
  font-size: 1rem;
81
  padding: 1rem;
82
  transition: all 0.3s ease;
83
+ background: #1e1e1e;
84
+ color: #e0e0e0;
85
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
86
  }
87
  .stTextArea textarea:focus {
88
+ border-color: #82aaff;
89
+ box-shadow: 0 0 0 3px rgba(130, 170, 255, 0.5);
90
  }
91
  .stButton button {
92
+ background-color: #82aaff;
93
+ color: #1e1e1e;
94
  border: none;
95
  border-radius: 12px;
96
  font-size: 1.1rem;
 
98
  padding: 0.75rem 2rem;
99
  transition: all 0.3s ease;
100
  width: 100%;
101
+ box-shadow: 0 4px 6px rgba(130, 170, 255, 0.3);
102
  }
103
  .stButton button:hover {
104
+ background-color: #6495ed;
105
  transform: translateY(-2px);
106
+ box-shadow: 0 6px 8px rgba(130, 170, 255, 0.4);
107
  }
108
  .output-container {
109
+ background: #2a2a2a;
110
  border-radius: 12px;
111
  padding: 1.5rem;
112
  margin-top: 2rem;
113
+ border: 1px solid #444;
114
  }
115
  .code-block {
116
+ background-color: #1e1e1e;
117
  border-radius: 12px;
118
  padding: 1.5rem;
119
  margin-top: 1rem;
120
  overflow-x: auto;
121
  }
122
  .stAlert {
123
+ background-color: #4e5b62;
124
+ color: #e0e0e0;
125
  border-radius: 12px;
126
  border: none;
127
  padding: 1rem 1.5rem;
128
  margin-bottom: 1rem;
129
  }
130
  .stSpinner {
131
+ color: #82aaff;
132
  }
133
  /* Custom scrollbar */
134
  ::-webkit-scrollbar {
 
136
  height: 8px;
137
  }
138
  ::-webkit-scrollbar-track {
139
+ background: #333;
140
  border-radius: 4px;
141
  }
142
  ::-webkit-scrollbar-thumb {
143
+ background: #555;
144
  border-radius: 4px;
145
  }
146
  ::-webkit-scrollbar-thumb:hover {
147
+ background: #777;
148
  }
149
  .source {
150
  font-family: 'Fira Code', monospace;
 
152
  line-height: 1.4;
153
  }
154
  .source .linenos {
155
+ color: #6c6c6c;
156
  padding-right: 10px;
157
+ border-right: 1px solid #444;
158
  user-select: none;
159
  }
160
  .source pre {
 
194
  st.markdown('</div>', unsafe_allow_html=True)
195
 
196
  st.markdown("""
197
+ <div style='text-align: center; margin-top: 2rem; color: #b0bec5;'>
198
  Crafted with ❤️ by Your Advanced AI Code Assistant
199
  </div>
200
  """, unsafe_allow_html=True)