Skip to content

Commit 00da597

Browse files
committed
Fiddle with the Sponsors component
1 parent 60aee6a commit 00da597

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

resources/views/home.antlers.html

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,28 @@ <h1 id="learn-statamic" class="o-scroll-spy-timeline__track">Learn Statamic</h1>
3030

3131
<hr>
3232

33-
<h2 id="sponsors" class="u-center-on-lower-mqs o-scroll-spy-timeline__track">Sponsors</h2>
34-
<p class="u-center-on-lower-mqs">We've reserved this space to thank our top open source sponsors.</p>
35-
<div class="c-logo-grid u-center-on-lower-mqs">
36-
{{ hero_sponsors }}
37-
<div class="c-logo-grid__item">
33+
<div class="mt-8 rounded-2xl px-8 py-10" style="background: var(--color-gradient-full-light-3);">
34+
<div class="text-center mb-8">
35+
<h2 id="sponsors" class="text-2xl font-semibold tracking-tight text-balance o-scroll-spy-timeline__track">Loved by the Community</h2>
36+
<p class="mt-2 opacity-60">These docs are generously sponsored by these cool people and companies.</p>
37+
</div>
38+
<div class="flex flex-wrap justify-center gap-6">
39+
{{ hero_sponsors }}
3840
{{ if error }}
3941
<p>We're having trouble loading the sponsors at the moment.</p>
4042
{{ else }}
41-
<a href="{{ url }}">
42-
<img src="{{ avatarUrl }}">
43-
<span>{{ name }}</span>
43+
<a href="{{ url }}" class="group flex items-center gap-3 px-4 py-3 rounded-xl bg-white/60 dark:bg-white/10 hover:bg-white/80 dark:hover:bg-white/20 transition-colors no-underline">
44+
<img src="{{ avatarUrl }}" class="size-10 rounded-lg">
45+
<span class="text-sm font-medium">{{ name }}</span>
4446
</a>
4547
{{ /if }}
46-
</div>
47-
{{ /hero_sponsors }}
48-
<div class="c-logo-grid__item">
49-
<a href="https://github.com/sponsors/statamic">Sponsor Statamic</a>
48+
{{ /hero_sponsors }}
49+
</div>
50+
<div class="text-center mt-8">
51+
<a href="https://github.com/sponsors/statamic" class="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-[var(--color-primary-text)] text-[var(--color-body-background)] text-sm font-medium no-underline hover:opacity-90 transition-opacity">
52+
<svg class="size-4" fill="currentColor" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
53+
Become a Sponsor
54+
</a>
5055
</div>
5156
</div>
5257

0 commit comments

Comments
 (0)