Subh775 commited on
Commit
459069b
·
1 Parent(s): 162e31e

css restoration in initial files..

Browse files
frontend/css/initial.css CHANGED
@@ -9,8 +9,10 @@
9
 
10
  body {
11
  font-family: 'Montserrat', sans-serif;
12
- background-color: #000000;
13
  color: var(--t1);
 
 
14
  }
15
 
16
  .fade-in {
@@ -29,53 +31,102 @@ body {
29
  }
30
  }
31
 
32
- /* Executive Overrides */
33
- .traffic-dynamics-card {
 
 
 
 
 
 
 
 
34
  background-color: #0a0a0a !important;
 
 
 
 
 
 
 
 
35
  border: 2px solid var(--cocoa) !important;
 
36
  }
37
 
38
  .traffic-dynamics-card:hover {
39
  border-color: var(--cocoa-l) !important;
 
 
40
  }
41
 
42
  #dropzone {
43
  transition: all 0.2s ease;
44
- border-color: #2a2a2a;
 
45
  }
46
 
47
  #dropzone:hover {
48
  border-color: var(--cocoa-l) !important;
49
- background-color: #0a0a0a !important;
50
  }
51
 
52
  .core-badge {
53
  background-color: var(--cocoa) !important;
54
- color: var(--t1) !important;
 
55
  }
56
 
57
  /* Onboarding */
58
  .onboard-overlay {
59
  position: fixed; inset: 0; z-index: 9999;
60
- background: rgba(0,0,0,0.92);
61
  display: flex; align-items: center; justify-content: center;
 
62
  }
 
63
  .onboard-card {
64
- background: #0a0a0a; border: 1px solid #2a2a2a;
65
- border-radius: 16px; max-width: 440px; width: 90%;
66
  padding: 40px 32px; text-align: center;
 
67
  }
 
68
  .onboard-step { display: none; }
69
  .onboard-step.active { display: block; }
70
- .onboard-dots { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
 
71
  .onboard-dot {
72
- width: 8px; height: 8px; border-radius: 50%;
73
- background: #333; transition: background 0.2s;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
- .onboard-dot.active { background: var(--cocoa-l); }
76
 
77
  /* Mobile responsive */
78
  @media (max-width: 768px) {
79
- main { grid-template-columns: 1fr !important; padding: 16px !important; }
80
- h1 { font-size: 2.2rem !important; }
 
81
  }
 
 
9
 
10
  body {
11
  font-family: 'Montserrat', sans-serif;
12
+ background-color: #000000 !important;
13
  color: var(--t1);
14
+ margin: 0;
15
+ padding: 0;
16
  }
17
 
18
  .fade-in {
 
31
  }
32
  }
33
 
34
+ /* Executive Overrides for Pure Black Theme */
35
+ .bg-black {
36
+ background-color: #000000 !important;
37
+ }
38
+
39
+ .bg-neutral-950 {
40
+ background-color: #050505 !important;
41
+ }
42
+
43
+ .bg-neutral-900 {
44
  background-color: #0a0a0a !important;
45
+ }
46
+
47
+ .text-white {
48
+ color: #f0ece6 !important;
49
+ }
50
+
51
+ .traffic-dynamics-card {
52
+ background-color: #050505 !important;
53
  border: 2px solid var(--cocoa) !important;
54
+ transition: all 0.3s ease;
55
  }
56
 
57
  .traffic-dynamics-card:hover {
58
  border-color: var(--cocoa-l) !important;
59
+ transform: translateY(-4px);
60
+ box-shadow: 0 10px 30px rgba(0,0,0,0.5);
61
  }
62
 
63
  #dropzone {
64
  transition: all 0.2s ease;
65
+ border-color: #2a2a2a !important;
66
+ background-color: #020202 !important;
67
  }
68
 
69
  #dropzone:hover {
70
  border-color: var(--cocoa-l) !important;
71
+ background-color: #050505 !important;
72
  }
73
 
74
  .core-badge {
75
  background-color: var(--cocoa) !important;
76
+ color: #000 !important;
77
+ font-weight: 800;
78
  }
79
 
80
  /* Onboarding */
81
  .onboard-overlay {
82
  position: fixed; inset: 0; z-index: 9999;
83
+ background: rgba(0,0,0,0.95);
84
  display: flex; align-items: center; justify-content: center;
85
+ backdrop-filter: blur(4px);
86
  }
87
+
88
  .onboard-card {
89
+ background: #050505; border: 1px solid #2a2a2a;
90
+ border-radius: 20px; max-width: 440px; width: 90%;
91
  padding: 40px 32px; text-align: center;
92
+ box-shadow: 0 20px 50px rgba(0,0,0,0.8);
93
  }
94
+
95
  .onboard-step { display: none; }
96
  .onboard-step.active { display: block; }
97
+
98
+ .onboard-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
99
  .onboard-dot {
100
+ width: 6px; height: 6px; border-radius: 50%;
101
+ background: #222; transition: all 0.3s ease;
102
+ }
103
+ .onboard-dot.active {
104
+ background: var(--cocoa-l);
105
+ transform: scale(1.3);
106
+ }
107
+
108
+ #btn-proceed {
109
+ background-color: #c89a6c !important;
110
+ color: #000000 !important;
111
+ border: none !important;
112
+ box-shadow: 0 4px 15px rgba(200, 154, 108, 0.3) !important;
113
+ transition: all 0.3s ease !important;
114
+ }
115
+
116
+ #btn-proceed:hover {
117
+ background-color: #d4b08a !important;
118
+ transform: scale(1.05) translateY(-2px) !important;
119
+ box-shadow: 0 8px 25px rgba(200, 154, 108, 0.4) !important;
120
+ }
121
+
122
+ #upload-bar {
123
+ background-color: #c89a6c !important;
124
  }
 
125
 
126
  /* Mobile responsive */
127
  @media (max-width: 768px) {
128
+ main { grid-template-columns: 1fr !important; padding: 24px 16px !important; }
129
+ h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
130
+ header { mt-8 !important; }
131
  }
132
+
frontend/initial.html CHANGED
@@ -125,7 +125,7 @@
125
 
126
  <div class="flex flex-col items-center gap-3">
127
  <button id="btn-proceed" onclick="startRun()"
128
- class="w-fit px-16 py-3.5 rounded-full font-bold transition-all text-center text-sm shadow-lg hover:scale-105 active:scale-95" style="background:#c89a6c;color:#000">
129
  Continue &nbsp;&rarr;
130
  </button>
131
  <button onclick="resetCanvas()"
 
125
 
126
  <div class="flex flex-col items-center gap-3">
127
  <button id="btn-proceed" onclick="startRun()"
128
+ class="w-fit px-16 py-3.5 rounded-full font-bold text-center text-sm shadow-lg">
129
  Continue &nbsp;&rarr;
130
  </button>
131
  <button onclick="resetCanvas()"
frontend/js/initial.js CHANGED
@@ -115,12 +115,19 @@ let imgNatW = 0, imgNatH = 0;
115
 
116
  function loadFirstFrame() {
117
  const img = document.getElementById('frame-img');
 
 
 
 
 
 
 
118
  img.src = '/first-frame/' + videoId;
119
  img.onload = () => {
120
  imgNatW = img.naturalWidth;
121
  imgNatH = img.naturalHeight;
122
  img.style.display = 'block';
123
- document.getElementById('frame-placeholder').style.display = 'none';
124
  initCanvas();
125
  };
126
  }
 
115
 
116
  function loadFirstFrame() {
117
  const img = document.getElementById('frame-img');
118
+ const placeholder = document.getElementById('frame-placeholder');
119
+
120
+ img.onerror = () => {
121
+ console.error('Failed to load first frame');
122
+ placeholder.innerHTML = '<i class="fa-solid fa-circle-exclamation text-4xl mb-3 text-red-500 opacity-50"></i><span class="font-bold text-[10px] uppercase tracking-widest opacity-50">Frame Load Error</span>';
123
+ };
124
+
125
  img.src = '/first-frame/' + videoId;
126
  img.onload = () => {
127
  imgNatW = img.naturalWidth;
128
  imgNatH = img.naturalHeight;
129
  img.style.display = 'block';
130
+ placeholder.style.display = 'none';
131
  initCanvas();
132
  };
133
  }
frontend/vehicles.html CHANGED
@@ -731,7 +731,7 @@
731
  <!-- Emojis Grid -->
732
  <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">
733
  <div>
734
- <label class="text-[10px] font-bold uppercase tracking-widest block mb-3" style="color:#a89f97">Recommend Product to a friend/colleague</label>
735
  <div class="flex gap-2" id="fb-recommend">
736
  <div class="fb-emoji-btn" onclick="setEmoji(this, 'fb-recommend', 'Unlikely')"><i class="fa-solid fa-face-frown text-xl"></i><span class="block mt-1 text-[8px] uppercase">Unlikely</span></div>
737
  <div class="fb-emoji-btn" onclick="setEmoji(this, 'fb-recommend', 'Maybe')"><i class="fa-solid fa-face-meh text-xl"></i><span class="block mt-1 text-[8px] uppercase">Maybe</span></div>
 
731
  <!-- Emojis Grid -->
732
  <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">
733
  <div>
734
+ <label class="text-[10px] font-bold uppercase tracking-widest block mb-3" style="color:#a89f97">Recommend Product</label>
735
  <div class="flex gap-2" id="fb-recommend">
736
  <div class="fb-emoji-btn" onclick="setEmoji(this, 'fb-recommend', 'Unlikely')"><i class="fa-solid fa-face-frown text-xl"></i><span class="block mt-1 text-[8px] uppercase">Unlikely</span></div>
737
  <div class="fb-emoji-btn" onclick="setEmoji(this, 'fb-recommend', 'Maybe')"><i class="fa-solid fa-face-meh text-xl"></i><span class="block mt-1 text-[8px] uppercase">Maybe</span></div>