Infinity-1995 commited on
Commit
777400d
·
verified ·
1 Parent(s): 22892e7

Update log.html

Browse files
Files changed (1) hide show
  1. log.html +24 -17
log.html CHANGED
@@ -14,23 +14,20 @@ body{
14
  background:#F7F5F0;
15
  }
16
 
17
- /* FIX: prevent text overflow/overlap */
18
  .card, .card *{
19
  overflow-wrap: anywhere;
20
  word-break: break-word;
21
  box-sizing: border-box;
22
  }
23
 
24
- /* UPDATED: bigger card + better spacing */
25
  .card{
26
  background:white;
27
  border-radius:16px;
28
- padding:28px; /* increased from 20px */
29
  margin-bottom:22px;
30
  border:1px solid #e5e7eb;
31
  }
32
 
33
- /* improved button spacing */
34
  .btn{
35
  padding:10px 16px;
36
  border-radius:999px;
@@ -38,7 +35,6 @@ body{
38
  cursor:pointer;
39
  }
40
 
41
- /* priority badges */
42
  .high{background:#ef4444;color:white;}
43
  .medium{background:#f59e0b;color:white;}
44
  .low{background:#10b981;color:white;}
@@ -47,10 +43,22 @@ body{
47
  .small{font-size:14px;color:#6b7280;}
48
  .big{font-size:16px;}
49
 
50
- /* FIX: better readability spacing */
51
  .card div{
52
  line-height:1.5;
53
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  </style>
55
  </head>
56
 
@@ -159,27 +167,26 @@ current=await res.json();
159
  renderAI();
160
  }
161
 
162
- /* AI LIST */
163
  function renderAI(){
164
 
165
  aiBox.innerHTML=current.map((x,i)=>`
166
- <div class="border p-5 rounded-xl mb-4">
167
 
168
- <div class="font-bold text-lg">${x.recipient}</div>
169
- <div class="small mb-1">${x.km} km</div>
170
- <div class="mb-2">${x.reason}</div>
171
 
172
  <span class="btn ${
173
  x.priority=="High"?"high":
174
  x.priority=="Medium"?"medium":"low"
175
- }">
176
  ${x.priority}
177
  </span>
178
 
179
- <!-- FIXED BUTTON LAYOUT -->
180
- <div class="mt-6 flex gap-3 flex-wrap">
181
 
182
- <button class="btn high"
183
  style="background:#10b981;color:white"
184
  onclick="accept(${i})">
185
  Accept
@@ -216,10 +223,10 @@ function renderAccepted(){
216
 
217
  matchedBox.innerHTML=accepted.length?
218
  accepted.map((a,i)=>`
219
- <div class="border p-4 flex justify-between mb-3 items-center">
220
 
221
  <div>
222
- <div class="font-bold">${a.recipient}</div>
223
  <div class="small">${a.km} km</div>
224
  </div>
225
 
 
14
  background:#F7F5F0;
15
  }
16
 
 
17
  .card, .card *{
18
  overflow-wrap: anywhere;
19
  word-break: break-word;
20
  box-sizing: border-box;
21
  }
22
 
 
23
  .card{
24
  background:white;
25
  border-radius:16px;
26
+ padding:28px;
27
  margin-bottom:22px;
28
  border:1px solid #e5e7eb;
29
  }
30
 
 
31
  .btn{
32
  padding:10px 16px;
33
  border-radius:999px;
 
35
  cursor:pointer;
36
  }
37
 
 
38
  .high{background:#ef4444;color:white;}
39
  .medium{background:#f59e0b;color:white;}
40
  .low{background:#10b981;color:white;}
 
43
  .small{font-size:14px;color:#6b7280;}
44
  .big{font-size:16px;}
45
 
 
46
  .card div{
47
  line-height:1.5;
48
  }
49
+
50
+ /* CHANGED: hover glow on recipient cards */
51
+ .recipient-card {
52
+ border: 1px solid #e5e7eb;
53
+ padding: 20px;
54
+ border-radius: 12px;
55
+ margin-bottom: 16px;
56
+ transition: box-shadow 0.25s ease, border-color 0.25s ease;
57
+ }
58
+ .recipient-card:hover {
59
+ border-color: #10b981;
60
+ box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
61
+ }
62
  </style>
63
  </head>
64
 
 
167
  renderAI();
168
  }
169
 
170
+ /* AI LIST — CHANGED: added margin-bottom to name, km, reason, badge; mt-4 on buttons */
171
  function renderAI(){
172
 
173
  aiBox.innerHTML=current.map((x,i)=>`
174
+ <div class="recipient-card">
175
 
176
+ <div class="font-bold text-lg mb-1">${x.recipient}</div>
177
+ <div class="small mb-2">${x.km} km</div>
178
+ <div class="mb-3">${x.reason}</div>
179
 
180
  <span class="btn ${
181
  x.priority=="High"?"high":
182
  x.priority=="Medium"?"medium":"low"
183
+ } mb-4" style="display:inline-block;margin-bottom:16px;">
184
  ${x.priority}
185
  </span>
186
 
187
+ <div class="mt-2 flex gap-3 flex-wrap">
 
188
 
189
+ <button class="btn"
190
  style="background:#10b981;color:white"
191
  onclick="accept(${i})">
192
  Accept
 
223
 
224
  matchedBox.innerHTML=accepted.length?
225
  accepted.map((a,i)=>`
226
+ <div class="recipient-card" style="display:flex;justify-content:space-between;align-items:center;">
227
 
228
  <div>
229
+ <div class="font-bold mb-1">${a.recipient}</div>
230
  <div class="small">${a.km} km</div>
231
  </div>
232