Skip to content

Commit 92e3fdf

Browse files
committed
More tweaks
1 parent 6f3fbed commit 92e3fdf

File tree

6 files changed

+51
-40
lines changed

6 files changed

+51
-40
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<footer class="justify-end p-12 md:px-0 text-sm text-center md:text-xs space-y-4">
2+
<p>
3+
© {{ date('Y') }} NativePHP.
4+
</p>
5+
<p>
6+
NativePHP is a copyright of and maintained by <a href="https://twitter.com/marcelpociot">Marcel Pociot</a>
7+
and <a href="https://twitter.com/simonhamp">Simon Hamp</a>.
8+
</p>
9+
<p>
10+
Logo by <a href="https://twitter.com/caneco" target="_blank">Caneco</a>.
11+
</p>
12+
13+
</footer>

resources/views/components/layout.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77

8-
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
8+
<link rel="icon" href="{{ asset('favicon.svg') }}" type="image/svg+xml">
99

1010
{!! SEOMeta::generate() !!}
1111
{!! OpenGraph::generate() !!}
1212
{!! Twitter::generate() !!}
13-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"/></pre></li>
13+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"/>
1414
<link rel="preconnect" href="https://fonts.bunny.net" />
1515
<link
1616
href="https://fonts.bunny.net/css?family=be-vietnam-pro:700|inter:400,500,600|rubik:400,700"

resources/views/docs/1/getting-started/introduction.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,3 @@ NativePHP wouldn't be possible without the following projects and the hard work
7979
- [Laravel](https://laravel.com)
8080
- [Symfony](https://symfony.com)
8181
- [Static PHP CLI](https://github.com/crazywhalecc/static-php-cli/)
82-
83-
NativePHP is a copyright of and maintained by [Marcel Pociot](https://twitter.com/marcelpociot) and
84-
[Simon Hamp](https://twitter.com/simonhamp).

resources/views/docs/index.blade.php

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
11
<x-layout>
22

3-
<main class="relative px-4 lg:pt-16 mx-auto mb-64 max-w-7xl">
4-
@include('docs.navigation')
5-
6-
<div class="lg:pl-[20rem] lg:pt-4">
7-
<div class="max-w-3xl mx-auto xl:max-w-none xl:ml-0 xl:mr-[15.5rem] xl:pr-16">
8-
9-
<div class="flex items-center px-6 py-4 mb-8 space-x-4 text-lg text-red-800 border-2 border-red-500 bg-red-50 dark:text-white dark:bg-red-800">
10-
<span class="text-5xl">⚠️</span>
11-
<span>
12-
NativePHP is currently in <em class="font-bold">alpha</em>. We do not recommend distributing
13-
production releases of your applications yet.
14-
</span>
15-
</div>
16-
17-
<div class="text-5xl font-bold tracking-tight mb-4 text-[#00aaa6]">
18-
{{$title}}
19-
</div>
20-
21-
@if (count($tableOfContents) > 0)
22-
<ul class="mt-8 space-y-2">
23-
@foreach($tableOfContents as $item)
24-
<li class="@if($item['level'] == 2) before:content-['#'] font-medium text-gray-800 dark:text-gray-200 @else before:content-['##'] @endif before:text-[#00aaa6] @if($item['level'] == 3) ml-4 @endif">
25-
<a href="#{{ $item['anchor'] }}">{{ $item['title'] }}</a>
26-
</li>
27-
@endforeach
28-
</ul>
29-
@endif
30-
31-
<div class="mt-12 prose dark:prose-invert">
32-
{!! $content !!}
3+
<main class="relative px-4 lg:pt-16 mx-auto max-w-7xl min-h-screen flex flex-col">
4+
<div class="lg:flex gap-8 flex-1 mb-64">
5+
@include('docs.navigation')
6+
7+
<div class="lg:pt-4">
8+
<div class="max-w-3xl mx-auto xl:max-w-none xl:ml-0 xl:mr-[15.5rem] xl:pr-16">
9+
10+
<div class="flex items-center px-6 py-4 mb-8 space-x-4 text-lg text-red-800 border-2 border-red-500 bg-red-50 dark:text-white dark:bg-red-800">
11+
<span class="text-5xl">⚠️</span>
12+
<span>
13+
NativePHP is currently in <em class="font-bold">alpha</em>. We do not recommend distributing
14+
production releases of your applications yet.
15+
</span>
16+
</div>
17+
18+
<div class="text-5xl font-bold tracking-tight mb-4 text-[#00aaa6]">
19+
{{$title}}
20+
</div>
21+
22+
@if (count($tableOfContents) > 0)
23+
<ul class="mt-8 space-y-2">
24+
@foreach($tableOfContents as $item)
25+
<li class="@if($item['level'] == 2) before:content-['#'] font-medium text-gray-800 dark:text-gray-200 @else before:content-['##'] @endif before:text-[#00aaa6] @if($item['level'] == 3) ml-4 @endif">
26+
<a href="#{{ $item['anchor'] }}">{{ $item['title'] }}</a>
27+
</li>
28+
@endforeach
29+
</ul>
30+
@endif
31+
32+
<div class="mt-12 prose dark:prose-invert">
33+
{!! $content !!}
34+
</div>
3335
</div>
3436
</div>
3537
</div>
38+
39+
<x-footer />
3640
</main>
3741

3842

resources/views/docs/navigation.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="hidden lg:block absolute z-20 w-[18rem] inset-0 top-24 left-[max(0px,calc(50%-45rem))] right-auto ">
1+
<div class="hidden lg:block relative z-20 w-[18rem] inset-0 top-24 left-[max(0px,calc(50%-45rem))] right-auto ">
22
<div class="sticky top-0 w-full border-r border-[#00aaa6] border-opacity-10 dark:border-opacity-90 pt-8 pb-12 pl-4">
33
<nav class="flex flex-col flex-1">
44
{!! $navigation !!}

resources/views/welcome.blade.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@
5858
</div>
5959
</header>
6060

61-
<footer class="justify-end p-12 md:px-0">
62-
<small class="block text-sm text-center md:text-xs"{{ date('Y') }} NativePHP</small>
63-
</footer>
64-
61+
<x-footer />
6562
</main>
6663

6764
</body>

0 commit comments

Comments
 (0)