Skip to content

Commit b82f870

Browse files
committed
Fix Sponsor link
1 parent 848bb18 commit b82f870

File tree

5 files changed

+150
-44
lines changed

5 files changed

+150
-44
lines changed

resources/views/components/mobile-menu.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class="flex flex-1 flex-col items-start text-xl"
180180
$isHomeActive = request()->routeIs('welcome*');
181181
$isMobileActive = request()->routeIs('early-adopter*');
182182
$isDocsActive = request()->is('docs*');
183-
$isSponsorActive = request()->is('docs/*/getting‐started/sponsoring*');
183+
$isSponsorActive = request()->routeIs('sponsoring*');
184184
@endphp
185185

186186
{{-- Home Link --}}
@@ -267,7 +267,7 @@ class="gsap-mobile-menu-divider h-0.5 w-full rounded-full bg-current opacity-5"
267267
{{-- Sponsor Link --}}
268268
<div class="gsap-mobile-menu-link w-full">
269269
<a
270-
href="/docs/1/getting‐started/sponsoring"
270+
href="/sponsor"
271271
@class([
272272
'flex items-center justify-between py-3 transition duration-200',
273273
'font-medium' => $isSponsorActive,

resources/views/components/navigation-bar.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark
248248
})
249249
}
250250
"
251-
href="/docs/1/getting-started/sponsoring"
251+
href="/sponsor"
252252
class="relative bg-linear-to-tr from-violet-600 to-violet-300 bg-clip-text font-medium text-transparent dark:from-violet-500 dark:to-white/80"
253253
aria-label="Sponsor NativePHP"
254254
title="Support NativePHP development"

resources/views/docs/desktop/1/getting-started/sponsoring.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

resources/views/sponsoring.blade.php

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
<x-layout title="Sponsoring">
2+
{{-- Hero --}}
3+
<section
4+
class="mx-auto mt-10 w-full max-w-3xl px-5 md:mt-14"
5+
aria-labelledby="article-title"
6+
>
7+
<header class="relative grid place-items-center text-center">
8+
{{-- Blurred circle - Decorative --}}
9+
<div
10+
class="absolute right-1/2 top-0 -z-30 h-60 w-60 translate-x-1/2 rounded-full blur-[150px] md:w-80 dark:bg-slate-500/50"
11+
aria-hidden="true"
12+
></div>
13+
14+
{{-- Primary Heading --}}
15+
<h1
16+
id="article-title"
17+
x-init="
18+
() => {
19+
motion.inView($el, (element) => {
20+
motion.animate(
21+
$el,
22+
{
23+
opacity: [0, 1],
24+
x: [-5, 0],
25+
},
26+
{
27+
duration: 0.7,
28+
ease: motion.easeOut,
29+
},
30+
)
31+
})
32+
}
33+
"
34+
class="mt-8 text-3xl font-extrabold will-change-transform sm:text-4xl"
35+
>
36+
Support NativePHP
37+
</h1>
38+
</header>
39+
40+
{{-- Divider --}}
41+
<div
42+
x-init="
43+
() => {
44+
motion.inView($el, (element) => {
45+
motion.animate(
46+
$el,
47+
{
48+
opacity: [0, 1],
49+
x: [5, 0],
50+
},
51+
{
52+
duration: 0.7,
53+
ease: motion.easeOut,
54+
},
55+
)
56+
})
57+
}
58+
"
59+
class="flex items-center pb-3 pt-3.5 will-change-transform"
60+
aria-hidden="true"
61+
>
62+
<div
63+
class="size-1.5 rotate-45 bg-gray-200/90 dark:bg-[#242734]"
64+
></div>
65+
<div class="h-0.5 w-full bg-gray-200/90 dark:bg-[#242734]"></div>
66+
<div
67+
class="size-1.5 rotate-45 bg-gray-200/90 dark:bg-[#242734]"
68+
></div>
69+
</div>
70+
71+
{{-- Content --}}
72+
<article
73+
x-init="
74+
() => {
75+
motion.inView($el, (element) => {
76+
motion.animate(
77+
$el,
78+
{
79+
opacity: [0, 1],
80+
y: [5, 0],
81+
},
82+
{
83+
duration: 0.7,
84+
ease: motion.easeOut,
85+
},
86+
)
87+
})
88+
}
89+
"
90+
class="prose mt-2 max-w-none text-gray-600 will-change-transform dark:text-gray-400 dark:prose-headings:text-white"
91+
aria-labelledby="article-title"
92+
>
93+
<p>
94+
NativePHP is an organization backed by a team of dedicated employees, maintainers, and contributors who commit their time to
95+
ensure its continued development and improvement. Currently, we operate two major projects: NativePHP for Mobile and
96+
NativePHP for Desktop. Together, we can continue to grow NativePHP and ensure it remains a valuable tool for the community.
97+
</p>
98+
99+
<h2>NativePHP for Mobile</h2>
100+
101+
<p>
102+
If you're interested in NativePHP for Mobile, you can <a href="/mobile">purchase a license</a>, which is the best way you can
103+
support both projects of the NativePHP organization. These funds are used to cover the costs of development, infrastructure,
104+
and community initiatives for both projects.
105+
</p>
106+
107+
<h2>NativePHP for Desktop</h2>
108+
109+
<p>
110+
NativePHP for Desktop is a free, open source project available under MIT license. We encourage and appreciate any
111+
contributions to the project, whether it's through code, documentation, spreading the word, or a financial sponsorship.
112+
We provide the following ways of making an easy financial contribution:
113+
</p>
114+
115+
<ul>
116+
<li><a href="https://github.com/nativephp/laravel?sponsor=1">GitHub Sponsors</a></li>
117+
<li><a href="https://opencollective.com/nativephp">OpenCollective</a></li>
118+
</ul>
119+
120+
<p>
121+
All contributions are welcome, at any amount, as a one-off payment or on a recurring schedule. These funds are used to
122+
support the maintainers of the Desktop project.
123+
</p>
124+
125+
<p>
126+
All monthly sponsors above $10/month will be bestowed the <b>Sponsor</b> role on the NativePHP
127+
<a href="https://discord.gg/X62tWNStZK">Discord</a>, granting access to private channels, early access to new releases, and
128+
discounts on future premium services.
129+
</p>
130+
131+
<h2>Corporate Partners</h2>
132+
133+
<p>
134+
If your organization is using NativePHP, we strongly encourage you to consider a Corporate Sponsorship. This level of
135+
support will provide your team with the added benefits of increased levels of support, hands-on help directly from the
136+
maintainers of NativePHP and promotion of your brand as a supporter of cutting-edge open source work.
137+
</p>
138+
139+
<p>
140+
For more details, please view our <a href="/partners">partners page</a> or email us at <a href="mailto:[email protected]?subject=Corporate%20Sponsorship">[email protected]</a>.
141+
</p>
142+
</article>
143+
</section>
144+
</x-layout>

routes/web.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
*/
1717

1818
Route::redirect('/newsletter', 'https://simonhamp.mailcoach.app/nativephp');
19-
Route::redirect('/sponsor', '/docs/1/getting-started/sponsoring');
2019
Route::redirect('/phpverse-2025', 'https://lp.jetbrains.com/phpverse-2025');
20+
Route::redirect('/docs/1/getting-started/sponsoring', '/sponsor');
21+
Route::redirect('/docs/desktop/1/getting-started/sponsoring', '/sponsor');
2122

2223
Route::view('/', 'welcome')->name('welcome');
2324
Route::view('/blog', 'blog')->name('blog');
@@ -30,6 +31,7 @@
3031
Route::view('privacy-policy', 'privacy-policy');
3132
Route::view('terms-of-service', 'terms-of-service');
3233
Route::view('partners', 'partners')->name('partners');
34+
Route::view('sponsor', 'sponsoring')->name('sponsoring');
3335

3436
Route::redirect('/docs/{version}/{page?}', '/docs/mobile/{version}/{page?}')
3537
->where('page', '(.*)')

0 commit comments

Comments
 (0)