-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathad-rotation.blade.php
More file actions
259 lines (232 loc) · 9.95 KB
/
ad-rotation.blade.php
File metadata and controls
259 lines (232 loc) · 9.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
@props(['ads' => ['mobile', 'devkit', 'ultra', 'vibes', 'masterclass']])
@php
$adsJson = json_encode($ads);
@endphp
<div
x-data="{ ad: {{ $adsJson }}[Math.floor(Math.random() * {{ count($ads) }})] }"
{{ $attributes }}
>
{{-- NativePHP Mobile Ad --}}
@if (in_array('mobile', $ads))
<a
x-show="ad === 'mobile'"
x-cloak
href="/docs/mobile"
class="group relative z-0 grid place-items-center overflow-hidden rounded-2xl bg-gray-100 px-4 pt-10 text-center text-pretty transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
>
{{-- Logo --}}
<div>
<x-logo class="h-5" />
<span class="sr-only">NativePHP</span>
</div>
{{-- Tagline --}}
<div class="mt-3">
Bring your
<strong>Laravel</strong>
skills to
<strong>mobile apps.</strong>
</div>
{{-- Iphone --}}
<div class="mt-4 -mb-25">
<img
src="{{ Vite::asset('resources/images/home/iphone.webp') }}"
alt=""
aria-hidden="true"
class="w-25 transition duration-200 will-change-transform group-hover:-translate-y-1 dark:brightness-80 dark:contrast-150"
width="92"
height="190"
loading="lazy"
/>
</div>
{{-- Star 1 --}}
<x-icons.star
class="absolute top-6 right-3 z-10 w-4 -rotate-7 text-white dark:w-3 dark:text-slate-300 animate-ping"
/>
{{-- Star 2 --}}
<x-icons.star
class="absolute top-3 right-14 z-10 w-3 rotate-5 text-white dark:w-2 dark:text-slate-300 animate-spin "
/>
{{-- Star 3 --}}
<x-icons.star
class="absolute top-2.5 right-7.5 z-10 w-2.5 text-white dark:w-2 dark:text-slate-300 animate-pulse"
/>
{{-- White blur --}}
<div class="absolute top-5 -right-10 -z-5">
<div
class="h-5 w-36 rotate-30 rounded-full bg-white/80 blur-md dark:bg-white/5"
></div>
</div>
{{-- Sky blur --}}
<div class="absolute top-5 -right-20 -z-10">
<div
class="h-15 w-36 rotate-30 rounded-full bg-sky-300 blur-xl dark:bg-sky-500/30"
></div>
</div>
{{-- Violet blur --}}
<div class="absolute -top-10 -right-5 -z-10">
<div
class="h-15 w-36 rotate-30 rounded-full bg-violet-300 blur-xl dark:bg-violet-400/30"
></div>
</div>
</a>
@endif
{{-- Plugin Dev Kit Ad --}}
@if (in_array('devkit', $ads))
<a
x-show="ad === 'devkit'"
x-cloak
href="{{ route('products.show', 'plugin-dev-kit') }}"
class="group relative z-0 grid place-items-center overflow-hidden rounded-2xl bg-gradient-to-br from-purple-600 to-indigo-700 px-4 py-8 text-center text-pretty transition duration-200 hover:from-purple-500 hover:to-indigo-600 hover:ring-1 hover:ring-purple-400"
>
{{-- Icon --}}
<div class="grid size-14 place-items-center rounded-xl bg-white/20 text-white backdrop-blur-sm">
<x-heroicon-s-cube class="size-8" />
</div>
{{-- Title --}}
<div class="mt-3 text-lg font-bold text-white">
Plugin Dev Kit
</div>
{{-- Tagline --}}
<div class="mt-2 text-sm text-purple-100">
Build native plugins with
<strong class="text-white">Claude Code</strong>
</div>
{{-- CTA --}}
<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">
Learn More
</div>
{{-- Decorative stars --}}
<x-icons.star
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-purple-300 animate-spin "
/>
<x-icons.star
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-indigo-300 animate-pulse "
/>
<x-icons.star
class="absolute bottom-12 right-6 z-10 w-2.5 text-purple-200 animate-ping "
/>
</a>
@endif
{{-- Ultra Ad --}}
@if (in_array('ultra', $ads))
<a
x-show="ad === 'ultra'"
x-cloak
href="{{ route('pricing') }}"
class="group relative z-0 grid place-items-center overflow-hidden rounded-2xl bg-gradient-to-br from-amber-400 to-orange-500 px-4 py-8 text-center text-pretty transition duration-200 hover:from-amber-300 hover:to-orange-400 hover:ring-1 hover:ring-amber-300"
>
{{-- Icon --}}
<div class="grid size-14 place-items-center rounded-xl bg-white/20 text-white backdrop-blur-sm">
<x-heroicon-s-bolt class="size-8" />
</div>
{{-- Title --}}
<div class="mt-3 text-lg font-bold text-white">
NativePHP Ultra
</div>
{{-- Tagline --}}
<div class="mt-2 text-sm text-amber-50">
All NativePHP plugins, teams & priority support from
<strong class="text-white">${{ config('subscriptions.plans.max.price_monthly') }}/mo</strong>
</div>
{{-- CTA --}}
<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">
Learn More
</div>
{{-- Decorative stars --}}
<x-icons.star
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-amber-200 animate-ping "
/>
<x-icons.star
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-orange-200 animate-spin "
/>
<x-icons.star
class="absolute bottom-12 right-6 z-10 w-2.5 text-amber-100 animate-pulse "
/>
</a>
@endif
{{-- The Vibes Ad --}}
@if (in_array('vibes', $ads))
<a
x-show="ad === 'vibes'"
x-cloak
href="{{ route('the-vibes') }}"
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"
>
{{-- Background image --}}
<img
src="{{ Vite::asset('resources/images/the-vibes/what-is-vibes.webp') }}"
alt=""
aria-hidden="true"
class="absolute inset-0 -z-10 size-full object-cover blur-[1px] contrast-75 brightness-65"
loading="lazy"
/>
{{-- Title --}}
<div class="z-10 text-lg font-bold text-white drop-shadow">
The Vibes
</div>
{{-- Tagline --}}
<div class="z-10 mt-2 text-sm text-violet-100 drop-shadow">
The unofficial Laracon US
<strong class="text-white">Day 3</strong>
</div>
{{-- CTA --}}
<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">
Grab Your Spot
</div>
{{-- Scarcity Label --}}
<div class="z-10 mt-2 text-xs text-violet-100 drop-shadow">
Only 100 tickets!
</div>
{{-- Decorative stars --}}
<x-icons.star
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-violet-300 animate-ping "
/>
<x-icons.star
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-indigo-300 animate-spin "
/>
</a>
@endif
{{-- Masterclass Ad --}}
@if (in_array('masterclass', $ads))
<a
x-show="ad === 'masterclass'"
x-cloak
href="{{ route('course') }}"
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"
>
{{-- Icon --}}
<div class="grid size-14 place-items-center rounded-xl bg-white/20 text-white backdrop-blur-sm">
<x-heroicon-s-academic-cap class="size-8" />
</div>
{{-- Title --}}
<div class="mt-3 text-lg font-bold text-white">
The Masterclass
</div>
{{-- Tagline --}}
<div class="mt-2 text-sm text-emerald-50">
Go from zero to
<strong class="text-white">published app</strong>
<br />
in no time
</div>
{{-- CTA --}}
<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">
Learn More
</div>
{{-- Early Bird Label --}}
<div class="mt-2 text-xs text-emerald-100">
Early Bird Pricing
</div>
{{-- Decorative stars --}}
<x-icons.star
class="absolute top-4 right-3 z-10 w-3 -rotate-7 text-emerald-200 animate-ping "
/>
<x-icons.star
class="absolute top-8 left-4 z-10 w-2 rotate-12 text-teal-200 animate-spin "
/>
<x-icons.star
class="absolute bottom-12 right-6 z-10 w-2.5 text-emerald-100 animate-pulse "
/>
</a>
@endif
</div>