Skip to content

Commit 2259af5

Browse files
committed
Cleanup
1 parent ceb52e6 commit 2259af5

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

resources/views/_partials/_search.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
name="search"
1212
id="search"
1313
class="nav-search block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:border-blue-300 focus:ring-blue-500 sm:text-sm transition duration-150 ease-in-out"
14-
placeholder="Search for threads..."
14+
placeholder="Search for threads and articles..."
1515
/>
1616
<template x-if="results">
1717
<div x-transition:enter="transition ease-out duration-100" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95" class="search mt-1 origin-top-right absolute right-0 rounded-md shadow-lg z-10">

resources/views/forum/_tags.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="mt-3 space-y-2" aria-labelledby="tags-menu">
66
<a
77
href="{{ route('forum', ['filter' => $filter]) }}"
8-
class="group flex items-center px-2.5 py-1 text-sm font-medium text-gray-600 hover:bg-white {{ (! isset($activeTag) ? 'bg-white text-lio-500 border-lio-500 border-l-2' : '') }}"
8+
class="group flex items-center px-2.5 py-1 text-sm font-medium text-gray-600 hover:bg-white {{ ! isset($activeTag) ? 'bg-white text-lio-500 border-lio-500 border-l-2' : '' }}"
99
>
1010
<span class="truncate">
1111
All

resources/views/home.blade.php

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@
1212
<h2 class="text-4xl tracking-tight leading-10 font-extrabold text-gray-900 sm:leading-none">
1313
The Laravel Community Portal
1414
</h2>
15+
1516
<p class="mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-2xl">
1617
The Laravel portal for problem solving, knowledge sharing and community building. <strong>Join {{ $totalUsers }} other artisans.</strong>
1718
</p>
19+
1820
<div class="mt-5 max-w-lg mx-auto sm:flex sm:justify-center md:mt-8">
1921
@if (Auth::guest())
2022
<div class="rounded-md shadow">
2123
<a href="{{ route('register') }}" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-lio-600 hover:bg-lio-500 focus:outline-none-500 transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10">
2224
Join the Community
2325
</a>
2426
</div>
27+
2528
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
2629
<a href="{{ route('forum') }}" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-lio-500 bg-white hover:text-lio-600 focus:outline-none transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10">
2730
Visit the Forum
@@ -33,6 +36,7 @@
3336
Start a Thread
3437
</a>
3538
</div>
39+
3640
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
3741
<a href="{{ route('articles.create') }}" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-lio-600 hover:bg-lio-500 focus:outline-none transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10">
3842
Share an Article
@@ -51,7 +55,10 @@
5155

5256
<div class="border-b bg-gray-100">
5357
<div class="container mx-auto py-12 px-4">
54-
<h2 class="text-4xl text-gray-800 mb-12 text-center">Laravel.io in numbers</h2>
58+
<h2 class="text-4xl text-gray-800 mb-12 text-center">
59+
Laravel.io in numbers
60+
</h2>
61+
5562
<div class="flex flex-wrap w-full md:w-2/3 mx-auto justify-center">
5663
<div class="w-full md:w-1/3 h-48 flex justify-center mb-4">
5764
<div class="flex flex-col items-center text-center">
@@ -63,18 +70,22 @@
6370
</div>
6471
</div>
6572
</div>
73+
6674
<div class="w-full md:w-1/3 h-48 flex justify-center mb-4">
6775
<div class="flex flex-col items-center text-center">
6876
<x-heroicon-o-document-report class="text-lio-500 w-32"/>
77+
6978
<div class="text-gray-800 uppercase mt-4">
7079
<span class="text-2xl block">{{ $totalThreads }}</span>
7180
<span class="text-gray-600">threads</span>
7281
</div>
7382
</div>
7483
</div>
84+
7585
<div class="w-full md:w-1/3 h-48 flex justify-center">
7686
<div class="flex flex-col items-center text-center">
7787
<x-heroicon-o-clock class="text-lio-500 w-32"/>
88+
7889
<div class="text-gray-800 uppercase mt-4">
7990
<span class="text-2xl block">{{ $resolutionTime }} days</span>
8091
<span class="text-gray-600">average resolution</span>
@@ -88,20 +99,25 @@
8899
<div class="border-b bg-white text-gray-700">
89100
<div class="container mx-auto py-12 px-4">
90101
<h2 class="text-4xl text-center">Need help?</h2>
102+
91103
<div class="text-xl text-center mb-8 text-gray-700">
92104
Search for the solution
93105
</div>
106+
94107
<div class="w-full md:w-1/2 mx-auto relative mb-8">
95108
<form action="{{ route('forum') }}" method="GET">
96109
<input type="search" class="rounded-full border-gray-300 border-2 w-full p-3 text-xl bg-gray-100" placeholder="Search for threads..." name="search">
110+
97111
<button type="submit" class="absolute top-0 right-0 w-10 h-10 my-2 mx-3">
98112
<x-heroicon-o-search class="w-full"/>
99113
</button>
100114
</form>
101115
</div>
116+
102117
<div class="flex flex-col items-center">
103118
<div class="text-lg text-center mb-8 text-gray-700">
104119
Can't find what you're looking for?
120+
105121
<a href="{{ route('threads.create') }}" class="text-lio-700">
106122
Create a new thread
107123
</a>
@@ -113,9 +129,11 @@
113129
<div class="border-b">
114130
<div class="container mx-auto py-12 px-4">
115131
<h2 class="text-4xl text-center text-gray-800">You can help others</h2>
132+
116133
<div class="text-xl text-center mb-8 text-gray-800">
117134
Take a look at the latest unresolved threads
118135
</div>
136+
119137
<div class="flex flex-wrap mb-8">
120138
@foreach ($latestThreads as $latestThread)
121139
<div class="flex w-full md:w-1/3">
@@ -125,6 +143,7 @@
125143
{{ $latestThread->subject() }}
126144
</h3>
127145
</a>
146+
128147
<div class="flex mb-4 md:mb-0">
129148
@include('forum.threads.info.avatar', ['user' => $latestThread->author()])
130149

@@ -137,6 +156,7 @@
137156
</div>
138157
@endforeach
139158
</div>
159+
140160
<div class="flex justify-center">
141161
<a href="{{ route('forum') }}" class="button button-primary button-big">
142162
See all threads
@@ -155,18 +175,21 @@
155175
<span class="text-xl">Laravel</span>
156176
</a>
157177
</div>
178+
158179
<div class="w-1/2 md:w-1/4 mb-4">
159180
<a href="https://laracasts.com">
160181
<img src="{{ asset('images/laracasts.png') }}" alt="Laracasts logo" title="Laracasts" class="w-16 mx-auto mb-4">
161182
<span class="text-xl">Laracasts</span>
162183
</a>
163184
</div>
185+
164186
<div class="w-1/2 md:w-1/4 mb-4">
165187
<a href="https://laravel-news.com">
166188
<img src="{{ asset('images/laravel-news.png') }}" alt="Laravel News logo" title="Laravel News" class="w-16 mx-auto mb-4">
167189
<span class="text-xl">Laravel News</span>
168190
</a>
169191
</div>
192+
170193
<div class="w-1/2 md:w-1/4 mb-4">
171194
<a href="https://www.laravelpodcast.com">
172195
<img src="{{ asset('images/podcast.jpg') }}" alt="Laravel Podcast logo" title="Laravel Podcast" class="w-16 mx-auto mb-4">

0 commit comments

Comments
 (0)