|
208 | 208 | Recommandations |
209 | 209 | </h2> |
210 | 210 |
|
211 | | - <div class="grid grid-cols-1 md:grid-cols-2 gap-6 pt-1"> |
| 211 | + <div class="grid grid-cols-1 md:grid-cols-2 gap-6 pt-3"> |
212 | 212 | {#each testimonials as item, i} |
213 | 213 | {@const magnetColor = ["red", "blue", "green"][i % 3]} |
214 | 214 | {@const rotation = (i % 2 === 0 ? "rotate-1.5" : "rotate--1.5")} |
215 | | - <div class="glass-panel border-2 border-slate-800 rounded-2xl p-5 flex flex-col gap-4 relative {rotation} border-sketch bg-white shadow-sm"> |
216 | | - <!-- Magnet details --> |
217 | | - <div class="magnet magnet-{magnetColor} top-2.5 left-2.5"></div> |
| 215 | + <div class="glass-panel border-2 border-slate-800 rounded-2xl p-6 flex flex-col gap-4 relative {rotation} border-sketch bg-white shadow-md hover:shadow-lg transition-shadow duration-200"> |
| 216 | + <!-- Centered Magnet pinning the recommendation --> |
| 217 | + <div class="magnet magnet-{magnetColor} absolute -top-3 left-1/2 -translate-x-1/2 w-5.5 h-5.5 shadow-md"></div> |
218 | 218 |
|
219 | | - <div class="text-slate-300 absolute right-4 top-4"> |
220 | | - <Quote size={28} /> |
| 219 | + <div class="text-slate-200 absolute right-4 top-4"> |
| 220 | + <Quote size={36} /> |
221 | 221 | </div> |
222 | 222 |
|
223 | | - <p class="text-sm text-slate-700 leading-relaxed italic flex-1 z-10 font-marker pt-2"> |
| 223 | + <p class="text-lg md:text-xl text-slate-850 leading-relaxed font-cursive flex-1 z-10 pt-3"> |
224 | 224 | "{item.text}" |
225 | 225 | </p> |
226 | 226 |
|
227 | | - <div class="flex items-center gap-3 border-t border-dashed border-slate-350 pt-4 mt-2"> |
| 227 | + <div class="flex items-center gap-3.5 border-t border-dashed border-slate-300 pt-4 mt-2"> |
228 | 228 | {#if item.avatar.startsWith('http')} |
229 | | - <div class="w-10 h-10 rounded-lg overflow-hidden bg-white border border-slate-300 flex items-center justify-center p-1 shadow-sm"> |
| 229 | + <div class="w-12 h-12 rounded-xl overflow-hidden bg-white border-2 border-slate-700 flex items-center justify-center p-1 shadow-sm border-sketch"> |
230 | 230 | <img src={item.avatar} alt={item.name} class="w-full h-full object-contain" /> |
231 | 231 | </div> |
232 | 232 | {:else} |
233 | | - <div class="w-10 h-10 rounded-lg bg-slate-100 border border-slate-300 flex items-center justify-center text-[var(--marker-color)] font-hand font-bold text-sm shadow-sm"> |
| 233 | + <div class="w-12 h-12 rounded-xl bg-slate-100 border-2 border-slate-700 flex items-center justify-center text-[var(--marker-color)] font-hand font-bold text-base shadow-sm border-sketch"> |
234 | 234 | {item.name[0]} |
235 | 235 | </div> |
236 | 236 | {/if} |
237 | 237 | <div class="min-w-0"> |
238 | | - <h4 class="text-sm font-hand font-bold text-slate-850 truncate">{item.name}</h4> |
239 | | - <p class="text-xs text-slate-500 font-marker truncate leading-none mt-1">{item.role}</p> |
| 238 | + <h4 class="text-base font-hand font-bold text-slate-900 truncate">{item.name}</h4> |
| 239 | + <p class="text-sm text-slate-600 font-marker truncate leading-none mt-1.5">{item.role}</p> |
240 | 240 | </div> |
241 | 241 | </div> |
242 | 242 | </div> |
|
0 commit comments