Skip to content

Commit 806e881

Browse files
committed
style: emphasize recommendations section with centering, larger magnets, custom cursive handwriting font, and scaled-up author details
1 parent 6447bf9 commit 806e881

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/lib/components/PresetView.svelte

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,35 +208,35 @@
208208
Recommandations
209209
</h2>
210210

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">
212212
{#each testimonials as item, i}
213213
{@const magnetColor = ["red", "blue", "green"][i % 3]}
214214
{@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>
218218

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} />
221221
</div>
222222

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">
224224
"{item.text}"
225225
</p>
226226

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">
228228
{#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">
230230
<img src={item.avatar} alt={item.name} class="w-full h-full object-contain" />
231231
</div>
232232
{: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">
234234
{item.name[0]}
235235
</div>
236236
{/if}
237237
<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>
240240
</div>
241241
</div>
242242
</div>

0 commit comments

Comments
 (0)