Skip to content

Commit 313201b

Browse files
committed
Re-arrange sections
1 parent 8c727ae commit 313201b

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

resources/views/home.blade.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,36 @@
5353
<!-- /Head section -->
5454

5555
<!-- Banner ad -->
56-
<section class="container mx-auto mt-10 lg:mt-40 lg:px-16">
56+
<section class="container mx-auto mt-12 lg:mt-24 lg:px-16">
5757
<div class="px-4 lg:px-10">
5858
@include('layouts._ads._footer')
5959
</div>
6060
</section>
6161
<!-- /Banner ad -->
6262

63+
<!-- Popular articles -->
64+
<section class="mt-12 container mx-auto px-4 lg:mt-24 lg:px-16">
65+
<div class="flex flex-col items-center mb-8 lg:flex-row lg:mb-16">
66+
<h2 class="w-full text-3xl font-bold text-gray-900 mb-2 lg:text-4xl lg:w-1/2 lg:mb-0">
67+
Popular articles
68+
</h2>
69+
<p class="w-full text-gray-800 text-lg lg:w-1/2">
70+
Have a look a the latest shared articles by our community members
71+
</p>
72+
</div>
73+
74+
<x-articles.featured :articles="$latestArticles" />
75+
76+
<div class="flex justify-center">
77+
<x-buttons.primary-cta href="{{ route('articles') }}" class="w-full lg:w-auto">
78+
View all articles
79+
</x-buttons.primary-cta>
80+
</div>
81+
</section>
82+
<!-- /Popular articles -->
83+
6384
<!-- Search -->
64-
<section class="mt-10 lg:mt-16">
85+
<section class="mt-12 lg:mt-24">
6586
<div class="bg-lio-500 text-white -skew-y-1">
6687
<div class="container mx-auto skew-y-1">
6788
<div class="flex flex-col items-center py-10 text-center lg:py-20">
@@ -108,7 +129,7 @@ class="p-4 pl-10 text-gray-600 rounded w-full border-gray-100"
108129
<!-- /Search -->
109130

110131
<!-- Help others -->
111-
<section class="mt-14 container mx-auto lg:mt-36 lg:px-16">
132+
<section class="mt-12 container mx-auto lg:mt-24 lg:px-16">
112133
<div class="px-4 lg:px-0">
113134
<div class="flex flex-col lg:flex-row items-center mb-4 lg:mb-12">
114135
<h2 class="w-full text-3xl font-bold text-gray-900 lg:w-1/2 lg:text-4xl">
@@ -157,25 +178,4 @@ class="p-4 pl-10 text-gray-600 rounded w-full border-gray-100"
157178
</div>
158179
</section>
159180
<!-- /Laravel.io in numbers -->
160-
161-
<!-- Popular articles -->
162-
<section class="my-12 container mx-auto px-4 lg:my-40 lg:px-16">
163-
<div class="flex flex-col items-center mb-8 lg:flex-row lg:mb-16">
164-
<h2 class="w-full text-3xl font-bold text-gray-900 mb-2 lg:text-4xl lg:w-1/2 lg:mb-0">
165-
Popular articles
166-
</h2>
167-
<p class="w-full text-gray-800 text-lg lg:w-1/2">
168-
Have a look a the latest shared articles by our community members
169-
</p>
170-
</div>
171-
172-
<x-articles.featured :articles="$latestArticles" />
173-
174-
<div class="flex justify-center">
175-
<x-buttons.primary-cta href="{{ route('articles') }}" class="w-full lg:w-auto">
176-
View all articles
177-
</x-buttons.primary-cta>
178-
</div>
179-
</section>
180-
<!-- /Popular articles -->
181181
@endsection

resources/views/layouts/_ads/_footer.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<img class="md:hidden mx-auto w-full" style="max-width:300px" src="{{ asset("/images/showcase/{$banner['image']}-small.png") }}" alt="{{ $banner['alt'] }}">
99
</a>
1010

11-
<x-ads.cta primary class="mt-4 md:mt-12">
11+
<x-ads.cta primary class="mt-4">
1212
Your banner here too?
1313
</x-ads.cta>

resources/views/layouts/_footer.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<section class="mb-14 lg:mb-40">
1+
<section class="mt-12 lg:mt-40">
22
@include('layouts._sponsors')
33
</section>
44

5-
<div class="bg-gray-900 text-white">
5+
<div class="bg-gray-900 text-white mt-14 lg:mt-40">
66
<div class="container mx-auto pt-7 pb-8 lg:pt-20 lg:px-16">
77
<div class="mx-4 md:mx-0">
88
<div class="flex flex-col pb-8 mb-8 border-b lg:pb-16 border-gray-800 lg:flex-row">

0 commit comments

Comments
 (0)