Skip to content

Commit 6e73eba

Browse files
simonhampclaude
andcommitted
Add sidebar ads for The Vibes and Masterclass
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent de77a4e commit 6e73eba

File tree

2 files changed

+100
-3
lines changed

2 files changed

+100
-3
lines changed

resources/views/components/blog/ad-rotation.blade.php

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@props(['ads' => ['mobile', 'devkit', 'ultra']])
1+
@props(['ads' => ['mobile', 'devkit', 'ultra', 'vibes', 'masterclass']])
22

33
@php
44
$adsJson = json_encode($ads);
@@ -159,4 +159,101 @@ class="absolute bottom-12 right-6 z-10 w-2.5 text-amber-100 animate-pulse "
159159
/>
160160
</a>
161161
@endif
162+
163+
{{-- The Vibes Ad --}}
164+
@if (in_array('vibes', $ads))
165+
<a
166+
x-show="ad === 'vibes'"
167+
x-cloak
168+
href="{{ route('the-vibes') }}"
169+
class="group relative z-0 grid place-items-center overflow-hidden rounded-2xl px-4 py-8 text-center text-pretty transition duration-200 hover:ring-1 hover:ring-violet-400"
170+
>
171+
{{-- Background image --}}
172+
<img
173+
src="{{ Vite::asset('resources/images/the-vibes/what-is-vibes.webp') }}"
174+
alt=""
175+
aria-hidden="true"
176+
class="absolute inset-0 -z-10 size-full object-cover blur-[1px] contrast-75 brightness-65"
177+
loading="lazy"
178+
/>
179+
180+
{{-- Title --}}
181+
<div class="z-10 text-lg font-bold text-white drop-shadow">
182+
The Vibes
183+
</div>
184+
185+
{{-- Tagline --}}
186+
<div class="z-10 mt-2 text-sm text-violet-100 drop-shadow">
187+
The unofficial Laracon US
188+
<strong class="text-white">Day 3</strong>
189+
</div>
190+
191+
{{-- CTA --}}
192+
<div class="z-10 mt-4 rounded-lg bg-white/20 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm transition group-hover:bg-white/30">
193+
Grab Your Spot
194+
</div>
195+
196+
{{-- Scarcity Label --}}
197+
<div class="z-10 mt-2 text-xs text-violet-100 drop-shadow">
198+
Only 100 tickets!
199+
</div>
200+
201+
{{-- Decorative stars --}}
202+
<x-icons.star
203+
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-violet-300 animate-ping "
204+
/>
205+
<x-icons.star
206+
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-indigo-300 animate-spin "
207+
/>
208+
</a>
209+
@endif
210+
211+
{{-- Masterclass Ad --}}
212+
@if (in_array('masterclass', $ads))
213+
<a
214+
x-show="ad === 'masterclass'"
215+
x-cloak
216+
href="{{ route('course') }}"
217+
class="group relative z-0 grid place-items-center overflow-hidden rounded-2xl bg-gradient-to-br from-emerald-500 to-teal-600 px-4 py-8 text-center text-pretty transition duration-200 hover:from-emerald-400 hover:to-teal-500 hover:ring-1 hover:ring-emerald-400"
218+
>
219+
{{-- Icon --}}
220+
<div class="grid size-14 place-items-center rounded-xl bg-white/20 text-white backdrop-blur-sm">
221+
<x-heroicon-s-academic-cap class="size-8" />
222+
</div>
223+
224+
{{-- Title --}}
225+
<div class="mt-3 text-lg font-bold text-white">
226+
The Masterclass
227+
</div>
228+
229+
{{-- Tagline --}}
230+
<div class="mt-2 text-sm text-emerald-50">
231+
Go from zero to
232+
<strong class="text-white">published app</strong>
233+
<br />
234+
in no time
235+
</div>
236+
237+
{{-- CTA --}}
238+
<div class="mt-4 rounded-lg bg-white/20 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm transition group-hover:bg-white/30">
239+
Learn More
240+
</div>
241+
242+
{{-- Early Bird Label --}}
243+
<div class="mt-2 text-xs text-emerald-100">
244+
Early Bird Pricing
245+
</div>
246+
247+
{{-- Decorative stars --}}
248+
<x-icons.star
249+
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-emerald-200 animate-ping "
250+
/>
251+
<x-icons.star
252+
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-teal-200 animate-spin "
253+
/>
254+
<x-icons.star
255+
class="absolute bottom-12 right-6 z-10 w-2.5 text-emerald-100 animate-pulse "
256+
/>
257+
</a>
258+
@endif
162259
</div>

resources/views/docs/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<x-docs.toc-and-sponsors :tableOfContents="$tableOfContents">
2727
{{-- Ad rotation --}}
2828
<x-blog.ad-rotation
29-
:ads="$platform === 'desktop' ? ['mobile', 'ultra'] : ['devkit', 'ultra']"
29+
:ads="$platform === 'desktop' ? ['mobile', 'ultra', 'vibes', 'masterclass'] : ['devkit', 'ultra', 'vibes', 'masterclass']"
3030
/>
3131
</x-docs.toc-and-sponsors>
3232
</x-slot>
@@ -156,6 +156,6 @@ class="flex items-center justify-end gap-1.5 opacity-60"
156156
{{-- Mobile ad rotation --}}
157157
<x-blog.ad-rotation
158158
class="mx-auto mt-5 max-w-52 xl:hidden"
159-
:ads="$platform === 'desktop' ? ['mobile', 'ultra'] : ['devkit', 'ultra']"
159+
:ads="$platform === 'desktop' ? ['mobile', 'ultra', 'vibes', 'masterclass'] : ['devkit', 'ultra', 'vibes', 'masterclass']"
160160
/>
161161
</x-docs-layout>

0 commit comments

Comments
 (0)