Skip to content

Commit f000978

Browse files
authored
Merge pull request #1219 from hydephp/compatible-view-cleanups
Format Blade HTML
2 parents c70e912 + 3357539 commit f000978

33 files changed

+246
-253
lines changed

_pages/404.blade.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,34 @@
1818
<!-- Error page and illustration by LaravelCollective: https://github.com/LaravelCollective/errors (License MIT) --->
1919

2020
<body class="antialiased font-sans">
21-
<div class="md:flex min-h-screen">
22-
<div class="w-full md:w-1/2 bg-white flex items-center justify-center">
23-
<div class="max-w-sm m-8">
24-
<div class="text-black text-5xl md:text-15xl font-black">
25-
404
26-
</div>
27-
28-
<div class="w-16 h-1 bg-purple-light my-3 md:my-6"></div>
29-
30-
<p class="text-grey-darker text-2xl md:text-3xl font-light mb-8 leading-normal">
31-
Sorry, the page you are looking for could not be found.
32-
</p>
33-
34-
<a href="{{ config('hyde.url') ?? '/' }}">
35-
<button
36-
class="bg-transparent text-grey-darkest font-bold uppercase tracking-wide py-3 px-6 border-2 border-grey-light hover:border-grey rounded-lg">
37-
Go Home
38-
</button>
39-
</a>
21+
<div class="md:flex min-h-screen">
22+
<div class="w-full md:w-1/2 bg-white flex items-center justify-center">
23+
<div class="max-w-sm m-8">
24+
<div class="text-black text-5xl md:text-15xl font-black">
25+
404
4026
</div>
4127

28+
<div class="w-16 h-1 bg-purple-light my-3 md:my-6"></div>
29+
30+
<p class="text-grey-darker text-2xl md:text-3xl font-light mb-8 leading-normal">
31+
Sorry, the page you are looking for could not be found.
32+
</p>
33+
34+
<a href="{{ config('hyde.url') ?? '/' }}">
35+
<button
36+
class="bg-transparent text-grey-darkest font-bold uppercase tracking-wide py-3 px-6 border-2 border-grey-light hover:border-grey rounded-lg">
37+
Go Home
38+
</button>
39+
</a>
4240
</div>
4341

44-
<div class="relative pb-full md:flex md:pb-0 md:min-h-screen w-full md:w-1/2">
45-
<div style="background-image: url('https://cdn.jsdelivr.net/gh/LaravelCollective/[email protected]/src/publish/svg/404.svg');"
46-
class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
47-
</div>
42+
</div>
43+
44+
<div class="relative pb-full md:flex md:pb-0 md:min-h-screen w-full md:w-1/2">
45+
<div style="background-image: url('https://cdn.jsdelivr.net/gh/LaravelCollective/[email protected]/src/publish/svg/404.svg');"
46+
class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
4847
</div>
4948
</div>
49+
</div>
5050
</body>
5151
</html>

_pages/index.blade.php

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -30,58 +30,57 @@
3030
</head>
3131

3232
<body class="antialiased overflow-x-hidden min-w-screen min-h-screen flex flex-col app-gradient">
33-
<main class="my-auto px-6 pb-12 antialiased app-gradient-dark">
34-
<div class="mx-auto max-w-7xl">
35-
<!-- Main Hero Content -->
36-
<div class="container max-w-lg px-4 py-32 mx-auto text-left md:max-w-none md:text-center">
37-
<h1
38-
class="text-5xl font-extrabold leading-10 tracking-tight text-left text-gray-100 md:text-center sm:leading-none md:text-6xl lg:text-7xl">
39-
<span class="block text-4xl md:text-5xl mb-4 sm:mb-0">You're running on </span><span
40-
class="relative mt-2 text-transparent bg-clip-text bg-gradient-to-br logo-gradient md:inline-block drop-shadow-2xl tracking-normal">HydePHP</span>
41-
</h1>
42-
<div class="mx-auto mt-8 sm:mt-4 text-gray-200 md:mt-8 md:max-w-2xl md:text-center">
43-
<section aria-label="About Hyde">
44-
<p class="lg:text-lg">
45-
Leap into the future of static HTML blogs and documentation with the tools you already know and love.
46-
Made with Tailwind, Laravel, and Coffee.
47-
</p>
48-
</section>
49-
50-
<section aria-label="About this page">
51-
<p class="mt-4 mb-4">
52-
This is the default homepage stored as index.blade.php, however you can publish any of the built-in views using the following command:
53-
54-
<!-- Syntax highlighted by torchlight.dev -->
55-
<pre style="margin-top: 1.5rem; margin-bottom: 1.5rem;"><code data-theme="material-theme-palenight" data-lang="bash" class="torchlight" style="background-color: #292D3E; padding: 0.5rem 1rem; border-radius: 0.25rem;"><span style="color: #FFCB6B;">php hyde</span> <span style="color: #C3E88D;">publish:homepage</span></code></pre>
56-
</p>
57-
</section>
33+
<main class="my-auto px-6 pb-12 antialiased app-gradient-dark">
34+
<div class="mx-auto max-w-7xl">
35+
<!-- Main Hero Content -->
36+
<div class="container max-w-lg px-4 py-32 mx-auto text-left md:max-w-none md:text-center">
37+
<h1
38+
class="text-5xl font-extrabold leading-10 tracking-tight text-left text-gray-100 md:text-center sm:leading-none md:text-6xl lg:text-7xl">
39+
<span class="block text-4xl md:text-5xl mb-4 sm:mb-0">You're running on </span><span
40+
class="relative mt-2 text-transparent bg-clip-text bg-gradient-to-br logo-gradient md:inline-block drop-shadow-2xl tracking-normal">HydePHP</span>
41+
</h1>
42+
<div class="mx-auto mt-8 sm:mt-4 text-gray-200 md:mt-8 md:max-w-2xl md:text-center">
43+
<section aria-label="About Hyde">
44+
<p class="lg:text-lg">
45+
Leap into the future of static HTML blogs and documentation with the tools you already know and love.
46+
Made with Tailwind, Laravel, and Coffee.
47+
</p>
48+
</section>
5849

59-
<div class="mt-4 md:mt-8 text-white">
60-
<span class="sr-only">Resources for getting started</span>
61-
<ul class="flex flex-wrap justify-center list-none" style="padding: 0;">
62-
<li>
63-
<a href="https://hydephp.com/docs/master" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
64-
Documentation
65-
</a>
66-
</li>
67-
<li>
68-
<a href="https://hydephp.com/docs/master/getting-started" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
69-
Getting Started
70-
</a>
71-
</li>
72-
<li>
50+
<section aria-label="About this page">
51+
<p class="mt-4 mb-4">
52+
This is the default homepage stored as index.blade.php, however you can publish any of the built-in views using the following command:
7353

74-
<a href="https://github.com/hydephp/hyde" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
75-
GitHub Source Code
76-
</a>
77-
</li>
78-
</ul>
79-
</div>
54+
<!-- Syntax highlighted by torchlight.dev -->
55+
<pre style="margin-top: 1.5rem; margin-bottom: 1.5rem;"><code data-theme="material-theme-palenight" data-lang="bash" class="torchlight" style="background-color: #292D3E; padding: 0.5rem 1rem; border-radius: 0.25rem;"><span style="color: #FFCB6B;">php hyde</span> <span style="color: #C3E88D;">publish:homepage</span></code></pre>
56+
</p>
57+
</section>
58+
59+
<div class="mt-4 md:mt-8 text-white">
60+
<span class="sr-only">Resources for getting started</span>
61+
<ul class="flex flex-wrap justify-center list-none" style="padding: 0;">
62+
<li>
63+
<a href="https://hydephp.com/docs/master" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
64+
Documentation
65+
</a>
66+
</li>
67+
<li>
68+
<a href="https://hydephp.com/docs/master/getting-started" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
69+
Getting Started
70+
</a>
71+
</li>
72+
<li>
73+
74+
<a href="https://github.com/hydephp/hyde" class="uppercase font-bold text-sm flex text-center m-2 mx-3">
75+
GitHub Source Code
76+
</a>
77+
</li>
78+
</ul>
8079
</div>
8180
</div>
82-
<!-- End Main Hero Content -->
8381
</div>
84-
</main>
82+
<!-- End Main Hero Content -->
83+
</div>
84+
</main>
8585
</body>
86-
8786
</html>

packages/framework/resources/views/components/article-excerpt.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@
4646
class="text-indigo-500 hover:underline font-medium">
4747
Read post</a>
4848
</footer>
49-
</article>
49+
</article>

packages/framework/resources/views/components/breadcrumbs.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
@endforeach
1414
</ol>
1515
</nav>
16-
@endif
16+
@endif

packages/framework/resources/views/components/docs/mobile-navigation.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
@include('hyde::components.docs.sidebar-toggle-button')
1717
</li>
1818
</ul>
19-
</nav>
19+
</nav>

packages/framework/resources/views/components/docs/search-widget.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class="prose dark:prose-invert bg-white dark:bg-gray-800 z-50 p-4 rounded-lg ov
3333
<button @click="searchWindowOpen = false" title="Close search window" class="opacity-75 hover:opacity-100"
3434
aria-label="Close search window">
3535
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
36-
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
36+
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
3737
</svg>
3838
</button>
3939
</header>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div id="sidebar-brand" class="flex items-center justify-between h-16 py-4 px-2">
2-
<strong class="px-2">
3-
@if(DocumentationPage::home())
4-
<a href="{{ DocumentationPage::home() }}">
5-
{{ config('docs.sidebar.header', 'Documentation') }}
6-
</a>
7-
@else
8-
{{ config('docs.sidebar.header', 'Documentation') }}
9-
@endif
10-
</strong>
11-
<x-hyde::navigation.theme-toggle-button class="opacity-75 hover:opacity-100"/>
2+
<strong class="px-2">
3+
@if(DocumentationPage::home())
4+
<a href="{{ DocumentationPage::home() }}">
5+
{{ config('docs.sidebar.header', 'Documentation') }}
6+
</a>
7+
@else
8+
{{ config('docs.sidebar.header', 'Documentation') }}
9+
@endif
10+
</strong>
11+
<x-hyde::navigation.theme-toggle-button class="opacity-75 hover:opacity-100"/>
1212
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<p>
2-
<a href="{{ Hyde::relativeLink('index.html') }}">Back to home page</a>
2+
<a href="{{ Hyde::relativeLink('index.html') }}">Back to home page</a>
33
</p>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a {{ $attributes->merge(['href' => $href]) }}>{!! $slot !!}</a>
1+
<a {{ $attributes->merge(['href' => $href]) }}>{!! $slot !!}</a>

packages/framework/resources/views/components/navigation/dropdown.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
@endif
1818
</ul>
1919
</div>
20-
</div>
20+
</div>

0 commit comments

Comments
 (0)