Spaces:
Paused

dushyantsingh0 commited on
Commit
62c828f
·
1 Parent(s): f63e1ff

backend stabilization

Browse files
frontend/apps/customer/public/favicon.svg DELETED
frontend/apps/customer/src/components/KnowledgeBase.module.css CHANGED
@@ -19,11 +19,11 @@
19
  }
20
 
21
  .searchHero h1 {
22
- font-size: 56px;
23
  font-weight: 900;
24
  color: var(--text-main);
25
- margin-bottom: 16px;
26
- letter-spacing: -0.04em;
27
  font-family: var(--font-heading);
28
  line-height: 1.2;
29
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
@@ -35,8 +35,8 @@
35
 
36
  .description {
37
  color: #64748b;
38
- font-size: 18px;
39
- margin-bottom: 64px;
40
  font-family: var(--font-sans);
41
  font-weight: 500;
42
  line-height: 1.6;
@@ -56,16 +56,16 @@
56
  position: relative;
57
  width: 100%;
58
  max-width: 880px;
59
- box-shadow: 0 30px 60px rgba(0,0,0,0.04);
60
- border-radius: 40px;
61
  }
62
 
63
  .searchInput {
64
  width: 100%;
65
- padding: 24px 280px 24px 72px;
66
- border-radius: 40px;
67
- border: 1px solid #e2e8f0;
68
- font-size: 16px;
69
  box-sizing: border-box;
70
  outline: none;
71
  background: #ffffff;
@@ -83,14 +83,14 @@
83
 
84
  .searchBtn {
85
  position: absolute;
86
- right: 12px;
87
  top: 50%;
88
  transform: translateY(-50%);
89
  background: var(--primary);
90
  color: #ffffff !important;
91
  border: none;
92
- padding: 14px 36px;
93
- border-radius: 30px;
94
  cursor: pointer;
95
  font-size: 14px;
96
  font-weight: 800;
@@ -117,21 +117,22 @@
117
 
118
  .searchPulse {
119
  position: absolute;
120
- right: 160px;
121
  top: 50%;
122
  transform: translateY(-50%);
123
  display: flex;
124
  align-items: center;
125
- gap: 12px;
126
- font-size: 11px;
127
- font-weight: 800;
128
  color: var(--primary);
129
  font-family: var(--font-mono);
130
- letter-spacing: 0.1em;
131
- background: #f5f3ff;
132
- padding: 8px 16px;
133
- border-radius: 99px;
134
- animation: pulseFade 2s infinite;
 
135
  }
136
 
137
  @keyframes pulseFade {
@@ -195,27 +196,17 @@
195
 
196
  /* AI Answer Spotlight - Solid High Contrast */
197
  .aiSpotlight {
198
- max-width: 1100px;
199
- margin: 0 auto 80px;
200
- background: #ffffff;
201
- border: 1px solid #e2e8f0;
202
- border-radius: 40px;
203
- padding: 64px;
 
204
  position: relative;
205
- box-shadow: 0 40px 100px rgba(0,0,0,0.03);
206
  overflow: hidden;
207
  }
208
 
209
- .aiSpotlight::before {
210
- content: '';
211
- position: absolute;
212
- top: 0;
213
- left: 0;
214
- width: 100%;
215
- height: 4px;
216
- background: var(--primary);
217
- }
218
-
219
  .spotlightHeader {
220
  display: flex;
221
  justify-content: space-between;
@@ -283,7 +274,7 @@
283
  .articleCard {
284
  background: #ffffff;
285
  border: 1px solid #e2e8f0;
286
- border-radius: 32px;
287
  padding: 32px;
288
  cursor: pointer;
289
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
@@ -308,14 +299,14 @@
308
  }
309
 
310
  .categoryBadge {
311
- font-size: 11px;
312
  font-weight: 800;
313
  color: var(--primary);
314
  text-transform: uppercase;
315
- letter-spacing: 0.1em;
316
  background: #f5f3ff;
317
- padding: 10px 20px;
318
- border-radius: 14px;
319
  }
320
 
321
  .matchBadge {
 
19
  }
20
 
21
  .searchHero h1 {
22
+ font-size: 48px;
23
  font-weight: 900;
24
  color: var(--text-main);
25
+ margin-bottom: 12px;
26
+ letter-spacing: -0.03em;
27
  font-family: var(--font-heading);
28
  line-height: 1.2;
29
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
 
35
 
36
  .description {
37
  color: #64748b;
38
+ font-size: 16px;
39
+ margin-bottom: 48px;
40
  font-family: var(--font-sans);
41
  font-weight: 500;
42
  line-height: 1.6;
 
56
  position: relative;
57
  width: 100%;
58
  max-width: 880px;
59
+ box-shadow: 0 20px 40px rgba(0,0,0,0.04);
60
+ border-radius: 12px;
61
  }
62
 
63
  .searchInput {
64
  width: 100%;
65
+ padding: 16px 260px 16px 64px;
66
+ border-radius: 12px;
67
+ border: 1.5px solid #e2e8f0;
68
+ font-size: 14px;
69
  box-sizing: border-box;
70
  outline: none;
71
  background: #ffffff;
 
83
 
84
  .searchBtn {
85
  position: absolute;
86
+ right: 8px;
87
  top: 50%;
88
  transform: translateY(-50%);
89
  background: var(--primary);
90
  color: #ffffff !important;
91
  border: none;
92
+ padding: 10px 28px;
93
+ border-radius: 8px;
94
  cursor: pointer;
95
  font-size: 14px;
96
  font-weight: 800;
 
117
 
118
  .searchPulse {
119
  position: absolute;
120
+ right: 164px;
121
  top: 50%;
122
  transform: translateY(-50%);
123
  display: flex;
124
  align-items: center;
125
+ gap: 8px;
126
+ font-size: 10px;
127
+ font-weight: 900;
128
  color: var(--primary);
129
  font-family: var(--font-mono);
130
+ letter-spacing: 0.12em;
131
+ background: none;
132
+ padding: 0;
133
+ border-radius: 0;
134
+ animation: pulseFade 1.5s infinite;
135
+ pointer-events: none;
136
  }
137
 
138
  @keyframes pulseFade {
 
196
 
197
  /* AI Answer Spotlight - Solid High Contrast */
198
  .aiSpotlight {
199
+ background: white;
200
+ border: 1px solid var(--border-subtle);
201
+ border-top: 4px solid var(--primary);
202
+ border-radius: 12px;
203
+ padding: 32px;
204
+ margin-bottom: 48px;
205
+ box-shadow: 0 10px 30px rgba(0,0,0,0.03);
206
  position: relative;
 
207
  overflow: hidden;
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
210
  .spotlightHeader {
211
  display: flex;
212
  justify-content: space-between;
 
274
  .articleCard {
275
  background: #ffffff;
276
  border: 1px solid #e2e8f0;
277
+ border-radius: 12px;
278
  padding: 32px;
279
  cursor: pointer;
280
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 
299
  }
300
 
301
  .categoryBadge {
302
+ font-size: 10px;
303
  font-weight: 800;
304
  color: var(--primary);
305
  text-transform: uppercase;
306
+ letter-spacing: 0.08em;
307
  background: #f5f3ff;
308
+ padding: 8px 16px;
309
+ border-radius: 8px;
310
  }
311
 
312
  .matchBadge {
frontend/apps/customer/src/components/KnowledgeBase.tsx CHANGED
@@ -156,7 +156,7 @@ export const KnowledgeBase: React.FC<KnowledgeBaseProps> = ({ onNewTicket }) =>
156
  </div>
157
  </div>
158
 
159
- <div style={{ marginTop: 100, padding: 100, background: 'rgba(255,255,255,0.02)', borderRadius: 64, textAlign: 'center', border: '1px solid rgba(255,255,255,0.05)', backdropFilter: 'blur(20px)' }}>
160
  <h3 style={{ fontSize: 40, fontWeight: 900, color: 'var(--text-main)', marginBottom: 24, letterSpacing: '-0.02em' }}>Still need assistance?</h3>
161
  <p style={{ fontSize: 20, color: 'var(--text-muted)', marginBottom: 64, maxWidth: 600, marginInline: 'auto', lineHeight: 1.7 }}>Our neural-linked specialist team is standing by to resolve any operational discrepancies.</p>
162
  <button
 
156
  </div>
157
  </div>
158
 
159
+ <div style={{ marginTop: 64, padding: '48px 32px', background: 'rgba(255,255,255,0.02)', borderRadius: 12, textAlign: 'center', border: '1px solid rgba(255,255,255,0.08)', backdropFilter: 'blur(20px)' }}>
160
  <h3 style={{ fontSize: 40, fontWeight: 900, color: 'var(--text-main)', marginBottom: 24, letterSpacing: '-0.02em' }}>Still need assistance?</h3>
161
  <p style={{ fontSize: 20, color: 'var(--text-muted)', marginBottom: 64, maxWidth: 600, marginInline: 'auto', lineHeight: 1.7 }}>Our neural-linked specialist team is standing by to resolve any operational discrepancies.</p>
162
  <button
frontend/apps/customer/src/components/ThreadView.module.css CHANGED
@@ -1,11 +1,10 @@
1
  .container {
2
  display: flex;
3
  flex-direction: column;
4
- height: calc(100vh - 64px);
5
  width: 100%;
6
  background: var(--bg-dark);
7
  color: var(--text-main);
8
- overflow: hidden;
9
  font-family: var(--font-sans);
10
  position: relative;
11
  }
@@ -846,10 +845,13 @@
846
  background: #ffffff;
847
  border: 1px solid var(--success);
848
  border-radius: 12px;
849
- padding: 32px;
850
  margin-top: 32px;
851
  position: relative;
852
- overflow: hidden;
 
 
 
853
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
854
  }
855
 
@@ -918,6 +920,8 @@
918
  font-weight: 500;
919
  position: relative;
920
  z-index: 2;
 
 
921
  }
922
 
923
  .technicalAnnex {
 
1
  .container {
2
  display: flex;
3
  flex-direction: column;
4
+ height: 100%;
5
  width: 100%;
6
  background: var(--bg-dark);
7
  color: var(--text-main);
 
8
  font-family: var(--font-sans);
9
  position: relative;
10
  }
 
845
  background: #ffffff;
846
  border: 1px solid var(--success);
847
  border-radius: 12px;
848
+ padding: 40px;
849
  margin-top: 32px;
850
  position: relative;
851
+ min-height: 200px;
852
+ display: flex;
853
+ flex-direction: column;
854
+ flex-shrink: 0;
855
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
856
  }
857
 
 
920
  font-weight: 500;
921
  position: relative;
922
  z-index: 2;
923
+ flex: 1;
924
+ min-height: 60px;
925
  }
926
 
927
  .technicalAnnex {
frontend/apps/customer/src/components/ThreadView.tsx CHANGED
@@ -583,9 +583,6 @@ export const ThreadView: React.FC<ThreadViewProps> = ({ ticket: initialTicket, o
583
 
584
  {(['RESOLVED', 'CLOSED'].includes((ticket.status || '').toUpperCase()) || ticket.resolution_text || ticket.summary) && (
585
  <div className={styles.resolutionCard}>
586
- <div style={{ position: 'absolute', top: -20, right: -20, opacity: 0.03, pointerEvents: 'none' }}>
587
- <ShieldCheck size={280} color="var(--success)" />
588
- </div>
589
 
590
  <div className={styles.resolutionHeader}>
591
  <div className={styles.resolutionTitleArea}>
 
583
 
584
  {(['RESOLVED', 'CLOSED'].includes((ticket.status || '').toUpperCase()) || ticket.resolution_text || ticket.summary) && (
585
  <div className={styles.resolutionCard}>
 
 
 
586
 
587
  <div className={styles.resolutionHeader}>
588
  <div className={styles.resolutionTitleArea}>
frontend/apps/internal/public/favicon.svg DELETED
frontend/apps/internal/src/components/KnowledgeBase.module.css CHANGED
@@ -12,7 +12,7 @@
12
  background: radial-gradient(circle at top right, #7c3aed, #4f46e5), var(--hero-mesh);
13
  background-size: 200% 200%;
14
  animation: meshGradient 20s ease infinite;
15
- border-radius: var(--radius-lg);
16
  padding: 64px 40px;
17
  color: white;
18
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
@@ -118,9 +118,9 @@
118
  background: rgba(255, 255, 255, 0.08);
119
  backdrop-filter: blur(24px);
120
  -webkit-backdrop-filter: blur(24px);
121
- border: 1px solid rgba(255, 255, 255, 0.15);
122
- border-radius: 20px;
123
- padding: 22px 180px 22px 64px;
124
  color: white;
125
  font-size: 17px;
126
  outline: none;
@@ -156,8 +156,8 @@
156
  background: white;
157
  color: var(--primary);
158
  border: none;
159
- padding: 18px 28px;
160
- border-radius: 16px;
161
  font-weight: 800;
162
  cursor: pointer;
163
  display: flex;
@@ -298,7 +298,7 @@
298
  background: rgba(255, 255, 255, 0.8);
299
  backdrop-filter: blur(8px);
300
  border: 1px solid var(--border-subtle);
301
- border-radius: var(--radius-lg);
302
  padding: 24px;
303
  cursor: pointer;
304
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
@@ -396,7 +396,7 @@
396
 
397
  .cardFooter {
398
  display: flex;
399
- justify-content: space-between;
400
  padding-top: 20px;
401
  border-top: 1px solid var(--bg-hover);
402
  }
@@ -560,7 +560,7 @@
560
  font-size: 10px;
561
  font-weight: 800;
562
  padding: 4px 10px;
563
- border-radius: 20px;
564
  white-space: nowrap;
565
  }
566
 
@@ -603,7 +603,7 @@
603
  color: var(--text-main);
604
  outline: none;
605
  padding: 8px 16px;
606
- border-radius: 10px;
607
  }
608
 
609
  .deployBtn {
@@ -611,7 +611,7 @@
611
  color: white;
612
  border: none;
613
  padding: 10px 20px;
614
- border-radius: 10px;
615
  font-weight: 800;
616
  font-size: 12px;
617
  cursor: pointer;
 
12
  background: radial-gradient(circle at top right, #7c3aed, #4f46e5), var(--hero-mesh);
13
  background-size: 200% 200%;
14
  animation: meshGradient 20s ease infinite;
15
+ border-radius: 12px;
16
  padding: 64px 40px;
17
  color: white;
18
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
 
118
  background: rgba(255, 255, 255, 0.08);
119
  backdrop-filter: blur(24px);
120
  -webkit-backdrop-filter: blur(24px);
121
+ border: 1px solid rgba(255, 255, 255, 0.25);
122
+ border-radius: 12px;
123
+ padding: 16px 180px 16px 64px;
124
  color: white;
125
  font-size: 17px;
126
  outline: none;
 
156
  background: white;
157
  color: var(--primary);
158
  border: none;
159
+ padding: 12px 24px;
160
+ border-radius: 8px;
161
  font-weight: 800;
162
  cursor: pointer;
163
  display: flex;
 
298
  background: rgba(255, 255, 255, 0.8);
299
  backdrop-filter: blur(8px);
300
  border: 1px solid var(--border-subtle);
301
+ border-radius: 12px;
302
  padding: 24px;
303
  cursor: pointer;
304
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 
396
 
397
  .cardFooter {
398
  display: flex;
399
+ justify-content: flex-end;
400
  padding-top: 20px;
401
  border-top: 1px solid var(--bg-hover);
402
  }
 
560
  font-size: 10px;
561
  font-weight: 800;
562
  padding: 4px 10px;
563
+ border-radius: 8px;
564
  white-space: nowrap;
565
  }
566
 
 
603
  color: var(--text-main);
604
  outline: none;
605
  padding: 8px 16px;
606
+ border-radius: 8px;
607
  }
608
 
609
  .deployBtn {
 
611
  color: white;
612
  border: none;
613
  padding: 10px 20px;
614
+ border-radius: 8px;
615
  font-weight: 800;
616
  font-size: 12px;
617
  cursor: pointer;
main.py CHANGED
@@ -211,6 +211,7 @@ FRONTEND_INTERNAL_PATH = os.path.join(BASE_DIR, "frontend/apps/internal/dist")
211
  templates = Jinja2Templates(directory=os.path.join(BASE_DIR, "templates"))
212
 
213
  # Note: Mounting Internal BEFORE Customer to avoid catch-all collisions
 
214
  app.mount("/internal", StaticFiles(directory=FRONTEND_INTERNAL_PATH, html=True), name="internal")
215
  app.mount("/customer", StaticFiles(directory=FRONTEND_CUSTOMER_PATH, html=True), name="customer")
216
 
 
211
  templates = Jinja2Templates(directory=os.path.join(BASE_DIR, "templates"))
212
 
213
  # Note: Mounting Internal BEFORE Customer to avoid catch-all collisions
214
+ app.mount("/static", StaticFiles(directory=os.path.join(BASE_DIR, "static")), name="static")
215
  app.mount("/internal", StaticFiles(directory=FRONTEND_INTERNAL_PATH, html=True), name="internal")
216
  app.mount("/customer", StaticFiles(directory=FRONTEND_CUSTOMER_PATH, html=True), name="customer")
217
 
templates/landing.html CHANGED
@@ -4,6 +4,7 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Nexus | Intelligence Redefined</title>
 
7
  <link rel="preconnect" href="https://fonts.googleapis.com">
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap" rel="stylesheet">
@@ -248,7 +249,10 @@
248
  <body>
249
  <div class="container">
250
  <nav>
251
- <div class="logo-mark">NEXUS</div>
 
 
 
252
  </nav>
253
 
254
  <section class="hero">
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Nexus | Intelligence Redefined</title>
7
+ <link rel="icon" type="image/png" href="/static/favicon.png">
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap" rel="stylesheet">
 
249
  <body>
250
  <div class="container">
251
  <nav>
252
+ <div class="logo-mark">
253
+ <img src="/static/favicon.png" alt="Nexus" style="height: 32px; width: auto;">
254
+ NEXUS
255
+ </div>
256
  </nav>
257
 
258
  <section class="hero">