|
12 | 12 | <h2 class="text-4xl tracking-tight leading-10 font-extrabold text-gray-900 sm:leading-none">
|
13 | 13 | The Laravel Community Portal
|
14 | 14 | </h2>
|
| 15 | + |
15 | 16 | <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">
|
16 | 17 | The Laravel portal for problem solving, knowledge sharing and community building. <strong>Join {{ $totalUsers }} other artisans.</strong>
|
17 | 18 | </p>
|
| 19 | + |
18 | 20 | <div class="mt-5 max-w-lg mx-auto sm:flex sm:justify-center md:mt-8">
|
19 | 21 | @if (Auth::guest())
|
20 | 22 | <div class="rounded-md shadow">
|
21 | 23 | <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">
|
22 | 24 | Join the Community
|
23 | 25 | </a>
|
24 | 26 | </div>
|
| 27 | + |
25 | 28 | <div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
|
26 | 29 | <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">
|
27 | 30 | Visit the Forum
|
|
33 | 36 | Start a Thread
|
34 | 37 | </a>
|
35 | 38 | </div>
|
| 39 | + |
36 | 40 | <div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
|
37 | 41 | <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">
|
38 | 42 | Share an Article
|
|
51 | 55 |
|
52 | 56 | <div class="border-b bg-gray-100">
|
53 | 57 | <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 | + |
55 | 62 | <div class="flex flex-wrap w-full md:w-2/3 mx-auto justify-center">
|
56 | 63 | <div class="w-full md:w-1/3 h-48 flex justify-center mb-4">
|
57 | 64 | <div class="flex flex-col items-center text-center">
|
|
63 | 70 | </div>
|
64 | 71 | </div>
|
65 | 72 | </div>
|
| 73 | + |
66 | 74 | <div class="w-full md:w-1/3 h-48 flex justify-center mb-4">
|
67 | 75 | <div class="flex flex-col items-center text-center">
|
68 | 76 | <x-heroicon-o-document-report class="text-lio-500 w-32"/>
|
| 77 | + |
69 | 78 | <div class="text-gray-800 uppercase mt-4">
|
70 | 79 | <span class="text-2xl block">{{ $totalThreads }}</span>
|
71 | 80 | <span class="text-gray-600">threads</span>
|
72 | 81 | </div>
|
73 | 82 | </div>
|
74 | 83 | </div>
|
| 84 | + |
75 | 85 | <div class="w-full md:w-1/3 h-48 flex justify-center">
|
76 | 86 | <div class="flex flex-col items-center text-center">
|
77 | 87 | <x-heroicon-o-clock class="text-lio-500 w-32"/>
|
| 88 | + |
78 | 89 | <div class="text-gray-800 uppercase mt-4">
|
79 | 90 | <span class="text-2xl block">{{ $resolutionTime }} days</span>
|
80 | 91 | <span class="text-gray-600">average resolution</span>
|
|
88 | 99 | <div class="border-b bg-white text-gray-700">
|
89 | 100 | <div class="container mx-auto py-12 px-4">
|
90 | 101 | <h2 class="text-4xl text-center">Need help?</h2>
|
| 102 | + |
91 | 103 | <div class="text-xl text-center mb-8 text-gray-700">
|
92 | 104 | Search for the solution
|
93 | 105 | </div>
|
| 106 | + |
94 | 107 | <div class="w-full md:w-1/2 mx-auto relative mb-8">
|
95 | 108 | <form action="{{ route('forum') }}" method="GET">
|
96 | 109 | <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 | + |
97 | 111 | <button type="submit" class="absolute top-0 right-0 w-10 h-10 my-2 mx-3">
|
98 | 112 | <x-heroicon-o-search class="w-full"/>
|
99 | 113 | </button>
|
100 | 114 | </form>
|
101 | 115 | </div>
|
| 116 | + |
102 | 117 | <div class="flex flex-col items-center">
|
103 | 118 | <div class="text-lg text-center mb-8 text-gray-700">
|
104 | 119 | Can't find what you're looking for?
|
| 120 | + |
105 | 121 | <a href="{{ route('threads.create') }}" class="text-lio-700">
|
106 | 122 | Create a new thread
|
107 | 123 | </a>
|
|
113 | 129 | <div class="border-b">
|
114 | 130 | <div class="container mx-auto py-12 px-4">
|
115 | 131 | <h2 class="text-4xl text-center text-gray-800">You can help others</h2>
|
| 132 | + |
116 | 133 | <div class="text-xl text-center mb-8 text-gray-800">
|
117 | 134 | Take a look at the latest unresolved threads
|
118 | 135 | </div>
|
| 136 | + |
119 | 137 | <div class="flex flex-wrap mb-8">
|
120 | 138 | @foreach ($latestThreads as $latestThread)
|
121 | 139 | <div class="flex w-full md:w-1/3">
|
|
125 | 143 | {{ $latestThread->subject() }}
|
126 | 144 | </h3>
|
127 | 145 | </a>
|
| 146 | + |
128 | 147 | <div class="flex mb-4 md:mb-0">
|
129 | 148 | @include('forum.threads.info.avatar', ['user' => $latestThread->author()])
|
130 | 149 |
|
|
137 | 156 | </div>
|
138 | 157 | @endforeach
|
139 | 158 | </div>
|
| 159 | + |
140 | 160 | <div class="flex justify-center">
|
141 | 161 | <a href="{{ route('forum') }}" class="button button-primary button-big">
|
142 | 162 | See all threads
|
|
155 | 175 | <span class="text-xl">Laravel</span>
|
156 | 176 | </a>
|
157 | 177 | </div>
|
| 178 | + |
158 | 179 | <div class="w-1/2 md:w-1/4 mb-4">
|
159 | 180 | <a href="https://laracasts.com">
|
160 | 181 | <img src="{{ asset('images/laracasts.png') }}" alt="Laracasts logo" title="Laracasts" class="w-16 mx-auto mb-4">
|
161 | 182 | <span class="text-xl">Laracasts</span>
|
162 | 183 | </a>
|
163 | 184 | </div>
|
| 185 | + |
164 | 186 | <div class="w-1/2 md:w-1/4 mb-4">
|
165 | 187 | <a href="https://laravel-news.com">
|
166 | 188 | <img src="{{ asset('images/laravel-news.png') }}" alt="Laravel News logo" title="Laravel News" class="w-16 mx-auto mb-4">
|
167 | 189 | <span class="text-xl">Laravel News</span>
|
168 | 190 | </a>
|
169 | 191 | </div>
|
| 192 | + |
170 | 193 | <div class="w-1/2 md:w-1/4 mb-4">
|
171 | 194 | <a href="https://www.laravelpodcast.com">
|
172 | 195 | <img src="{{ asset('images/podcast.jpg') }}" alt="Laravel Podcast logo" title="Laravel Podcast" class="w-16 mx-auto mb-4">
|
|
0 commit comments