Skip to content

Commit df88437

Browse files
SRWieZsimonhamp
authored andcommitted
wip
1 parent 6e8e20f commit df88437

15 files changed

+211
-118
lines changed

resources/css/app.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ nav > ul > li > ul {
4949
& > li {
5050
@apply font-normal;
5151

52-
a {
52+
& a {
5353
@apply w-full block;
5454
@apply py-1.5;
5555
@apply border-l pl-3 dark:border-white/10;
@@ -177,7 +177,7 @@ nav > ul > li > ul {
177177
}
178178

179179
.DocSearch-Button-Placeholder {
180-
@apply dark:text-white/60 pr-56 text-xs;
180+
@apply dark:text-white/60 pr-44 text-xs;
181181
}
182182

183183
.DocSearch-Button-Keys {

resources/views/components/banner.blade.php renamed to resources/views/components/hearder-banner.blade.php

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
@props(['hasMenu' => false])
12
<div class="sticky top-0 z-50
23
text-white blur-background bg-gray-50/85 dark:bg-gray-800/85
34
border-b border-gray-100 dark:border-0
45
">
56

67
<div class="hidden lg:block">
7-
<x-alert/>
8+
<x-alert/>
89
</div>
910
<div class="
1011
relative flex top-0 left-0 z-50
@@ -21,16 +22,32 @@ class="inline-flex items-center gap-3 transition rounded hover:text-white/80 foc
2122
<span class="sr-only">NativePHP</span>
2223
</a>
2324
<div id="docsearch"></div>
24-
25+
<a class="group
26+
text-sm bg-purple-500 border-purple-600
27+
dark:border-purple-500 dark:bg-purple-700
28+
hover:bg-purple-600 dark:hover:bg-purple-800
29+
px-4 py-1.5
30+
border rounded-md
31+
font-medium
32+
text-white
33+
hidden lg:block" href="{{route('early-adopter')}}">
34+
<div class="group-hover:animate-none animate-pulse flex items-center gap-2">
35+
<x-icons.party-popper class="size-4"/>
36+
{{-- <x-icons.sparkles class="size-4"/>--}}
37+
{{-- <x-icons.device-mobile-phone class="size-4"/>--}}
38+
<span>Early Adopter Program</span>
39+
</div>
40+
</a>
2541
<div class="hidden lg:flex items-center space-x-5">
42+
2643
<a href="https://bsky.app/profile/nativephp.bsky.social" title="Bluesky">
27-
<x-icons.bluesky class="size-5 text-black dark:invert hover:text-[#00aaa6] hover:invert-0" />
44+
<x-icons.bluesky class="size-5 text-black dark:invert hover:text-[#00aaa6] hover:invert-0"/>
2845
</a>
2946

3047
<a href="https://discord.gg/X62tWNStZK" title="Go to discord server">
3148
<x-icons.discord class="size-5 dark:fill-white hover:fill-[#00aaa6]"/>
3249
</a>
33-
50+
3451
<a href="https://opencollective.com/nativephp" title="NativePHP on LinkedIn">
3552
<x-icons.opencollective class="size-5 text-black dark:invert hover:text-[#00aaa6] hover:invert-0"/>
3653
</a>
@@ -40,14 +57,22 @@ class="inline-flex items-center gap-3 transition rounded hover:text-white/80 foc
4057
</a>
4158
</div>
4259
<div class="lg:hidden flex justify-end pl-4">
43-
<button type="button" class="" @click="showDocsNavigation = !showDocsNavigation">
44-
<div x-show="!showDocsNavigation">
45-
<x-icons.menu class="w-6 h-6 text-teal-600 dark:text-red-300"/>
46-
</div>
47-
<div x-show="showDocsNavigation">
48-
<x-icons.close class="w-6 h-6 text-teal-600"/>
49-
</div>
50-
</button>
60+
@if($hasMenu)
61+
<button type="button" class="" @click="showDocsNavigation = !showDocsNavigation">
62+
<div x-show="!showDocsNavigation">
63+
<x-icons.menu class="w-6 h-6 text-teal-600 dark:text-teal-300"/>
64+
</div>
65+
<div x-show="showDocsNavigation">
66+
<x-icons.close class="w-6 h-6 text-teal-600"/>
67+
</div>
68+
</button>
69+
@else
70+
<a href="{{route('docs')}}" class="text-teal-600 hover:text-teal-800 dark:text-teal-400 dark:hover:text-teal-200
71+
flex items-center gap-1">
72+
<x-icons.book-text class="size-5"/>
73+
<span class="text-md hidden sm:inline">Documentation</span>
74+
</a>
75+
@endif
5176
</div>
5277
</div>
5378
</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-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>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<svg {{ $attributes }} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
2+
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3" />
3+
</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-party-popper"><path d="M5.8 11.3 2 22l10.7-3.79"/><path d="M4 3h.01"/><path d="M22 8h.01"/><path d="M15 2h.01"/><path d="M22 20h.01"/><path d="m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10"/><path d="m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17"/><path d="m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7"/><path d="M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z"/></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-sparkles"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/></svg>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<x-layout :hasMenu="! empty($sidebarLeft)">
2+
<main class="overflow-hidden lg:flex lg:flex-1 lg:flex-col">
3+
4+
<div class="max-w-8xl mx-auto px-4 sm:px-6 md:px-8">
5+
<main class="overflow-hidden lg:flex lg:flex-1 lg:flex-col">
6+
@if(!empty($sidebarLeft))
7+
<x-sidebar-left-navigation>
8+
{{ $sidebarLeft }}
9+
</x-sidebar-left-navigation>
10+
@endif
11+
12+
13+
<div class="lg:pl-[19.5rem]">
14+
<div class="max-w-3xl mx-auto pt-4 sm:pt-6 xl:max-w-none xl:ml-0 xl:mr-[15.5rem] xl:pr-16">
15+
16+
@if(!empty($sidebarRight))
17+
<x-sidebar-right>
18+
{{ $sidebarRight }}
19+
</x-sidebar-right>
20+
@endif
21+
22+
{{ $slot }}
23+
24+
<x-footer/>
25+
</div>
26+
</div>
27+
</main>
28+
</div>
29+
</main>
30+
</x-layout>

resources/views/components/layout.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
x-data="{ showDocsNavigation: false }"
2828
>
2929

30-
<x-banner />
30+
<x-hearder-banner :hasMenu="$hasMenu ?? false" />
3131
{{ $slot }}
3232
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
3333
<script type="text/javascript">

resources/views/components/link-button.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
font-medium
33
border border-gray-300 dark:border-gray-700 rounded-lg
44
px-4 py-2
5+
text-black dark:text-white
56
hover:text-[#00aaa6] hover:border-[#00aaa6]/25
67
flex items-center gap-2
78
text-sm

resources/views/components/sidebar-left.blade.php renamed to resources/views/components/sidebar-left-navigation.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
dark:text-gray-200
1313
">
1414
<nav class="flex flex-col flex-1">
15-
{!! $navigation !!}
15+
{!! $slot !!}
1616
</nav>
1717
</div>
1818

@@ -25,7 +25,7 @@
2525
x-transition:leave-start="translate-y-0 opacity-100"
2626
x-transition:leave-end="translate-y-1 opacity-0"
2727
class="fixed top-12 left-0 z-40 w-full h-screen pt-10 pb-16 overflow-y-auto bg-white dark:bg-gray-700 mt-2 px-4 border-b border-[#00aaa6] border-opacity-50 dark:border-opacity-90">
28-
{!! $navigation !!}
28+
{!! $slot !!}
2929

3030

3131
<div class="my-16 flex items-center justify-center space-x-6">

0 commit comments

Comments
 (0)