8000 EAP · SRWieZ/fork-nativephp.com@a08ba72 · GitHub
[go: up one dir, main page]

Skip to content

Commit a08ba72

Browse files
committed
EAP
1 parent 6e8e20f commit a08ba72

27 files changed

+426
-178
lines changed

resources/assets/background-pattern-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/assets/background-pattern.svg

Lines changed: 1 addition & 0 deletions
Loading

resources/css/app.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
backdrop-filter: blur(20px);
1212
}
1313

14+
.background-pattern {
15+
background-image: url('../assets/background-pattern.svg');
16+
}
17+
18+
@media(prefers-color-scheme: dark) {
19+
.background-pattern {
20+
background-image: url('../assets/background-pattern-dark.svg');
21+
}
22+
}
23+
1424

1525
/* Whole menu */
1626
nav ul {
@@ -49,7 +59,7 @@ nav > ul > li > ul {
4959
& > li {
5060
@apply font-normal;
5161

52-
a {
62+
& a {
5363
@apply w-full block;
5464
@apply py-1.5;
5565
@apply border-l pl-3 dark:border-white/10;
@@ -177,7 +187,7 @@ nav > ul > li > ul {
177187
}
178188

179189
.DocSearch-Button-Placeholder {
180-
@apply dark:text-white/60 pr-56 text-xs;
190+
@apply dark:text-white/60 pr-44 text-xs;
181191
}
182192

183193
.DocSearch-Button-Keys {
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<div class="flex items-center justify-center bg-teal-500 p-2 text-center text-sm text-white text-balance">
1+
<div class="flex items-center justify-center bg-teal-500 p-2 text-center text-md text-white text-balance transition-all ease-out duration-500 -translate-y-[100%]"
2+
x-init="$el.classList.add('-translate-y-0')">
23
<a href="/newsletter" onclick="fathom.trackEvent('alert_click');">
3-
📲&nbsp;&nbsp;Excited for NativePHP for iOS and Android? Sign up for the newsletter &rightarrow;
4+
📲&nbsp;&nbsp;Excited for NativePHP for iOS and Android? <u>Sign up for the newsletter &rightarrow;</u>
45
</a>
56
</div>

resources/views/components/banner.blade.php

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<a {{ $attributes->class(['group
2+
inline-block
3+
text-sm bg-purple-500 border-purple-600
4+
dark:border-purple-500 dark:bg-purple-700
5+
hover:bg-purple-600 dark:hover:bg-purple-800
6+
px-4 py-1.5
7+
border rounded-md
8+
font-medium
9+
text-white
10+
']) }} href="{{route('early-adopter')}}">
11+
<div class="group-hover:animate-none flex items-center gap-2"
12+
x-data="{earlyAnimated: $persist(false)}"
13+
x-init="setTimeout(() => {earlyAnimated = true}, 6000)"
14+
x-bind:class="!earlyAnimated ? 'animate-pulse' : ''"
15+
x-on:click="earlyAnimated = false"
16+
>
17+
18+
<x-icons.party-popper class="size-4"/>
19+
{{-- <x-icons.sparkles class="size-4"/>--}}
20+
{{-- <x-icons.device-mobile-phone class="size-4"/>--}}
21+
<span>Soon on iOS!</span>
22+
</div>
23+
</a>

resources/views/components/footer.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
Logo by <a href="https://twitter.com/caneco" target="_blank">Caneco</a>.
1212
</p>
1313
</div>
14-
14+
1515
<div class="flex items-center justify-center space-x-6">
16-
<x-social-networks-all/>
16+
<x-social-networks-all/>
1717
</div>
1818
</footer>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
@props(['hasMenu' => false])
2+
<div class="sticky top-0 z-50
3+
text-white blur-background bg-gray-50/85 dark:bg-gray-800/85
4+
border-b border-gray-100 dark:border-0
5+
">
6+
7+
<div class="hidden lg:block">
8+
<x-alert/>
9+
</div>
10+
11+
<div class="relative flex top-0 left-0 z-50
12+
md:grid md:grid-cols-4
13+
items-center justify-between gap-6 px-6 py-3
14+
mx-auto max-w-8xl
15+
sm:py-4">
16+
<a
17+
href="/"
18+
class="inline-flex items-center transition rounded hover:text-white/80 focus:outline-none
19+
max-md:w-32
20+
focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-red-600"
21+
>
22+
<img src="{{ asset('logo.svg') }}" class="h-8 dark:hidden">
23+
<img src="{{ asset('logo-dark.svg') }}" class="hidden h-8 dark:block">
24+
<span class="sr-only">NativePHP</span>
25+
</a>
26+
27+
<div class="flex-1 md:col-span-2 lg:mx-16 xl:mx-32">
28+
<div id="docsearch"></div>
29+
</div>
30+
31+
<div class="hidden lg:flex items-center justify-end space-x-5">
32+
33+
<a href="https://bsky.app/profile/nativephp.bsky.social" title="Bluesky">
34+
<x-icons.bluesky class="size-5 text-black dark:invert hover:text-[#00aaa6] hover:invert-0"/>
35+
</a>
36+
37+
<a href="https://discord.gg/X62tWNStZK" title="Go to discord server">
38+
<x-icons.discord class="size-5 text-black dark:text-white hover:text-[#00aaa6]"/>
39+
</a>
40+
41+
<a href="https://opencollective.com/nativephp" title="NativePHP on LinkedIn">
42+
<x-icons.opencollective class="size-5 text-black dark:invert hover:text-[#00aaa6] hover:invert-0"/>
43+
</a>
44+
45+
<a href="https://github.com/nativephp" title="Source code of NativePHP">
46+
<x-icons.github class="size-5 dark:fill-white hover:fill-[#00aaa6]"/>
47+
</a>
48+
</div>
49+
<div class="lg:hidden flex justify-end pl-4">
50+
@if($hasMenu)
51+
<button type="button" class="" @click="showDocsNavigation = !showDocsNavigation">
52+
<div x-show="!showDocsNavigation">
53+
<x-icons.menu class="w-6 h-6 text-teal-600 dark:text-teal-300"/>
54+
</div>
55+
<div x-show="showDocsNavigation">
56+
<x-icons.close class="w-6 h-6 text-teal-600"/>
57+
</div>
58+
</button>
59+
@else
60+
<a href="{{route('docs')}}" class="text-teal-600 hover:text-teal-800 dark:text-teal-400 dark:hover:text-teal-200
61+
flex items-center gap-1">
62+
<x-icons.book-text class="size-5"/>
63+
<span class="text-md hidden sm:inline">Documentation</span>
64+
</a>
65+
@endif
66+
</div>
67+
</div>
68+
</div>
69+
<div class="block lg:hidden">
70+
<x-alert/>
71+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<svg {{$attributes}} xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-text"><path d="M12 7v14"/><path d="M16 12h2"/><path d="M16 8h2"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/><path d="M6 12h2"/><path d="M6 8h2"/></svg>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<svg {{$attributes}} xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-text"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><path d="M8 11h8"/><path d="M8 7h6"/></svg>

0 commit comments

Comments
 (0)
0