Skip to content

Commit f7978b2

Browse files
committed
Show partners on mobile
1 parent 6c755ec commit f7978b2

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

resources/views/article.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,11 @@ class="prose max-w-none grow text-gray-600 dark:text-gray-400 dark:prose-heading
101101
{{-- Sidebar --}}
102102
<x-blog.sidebar />
103103
</div>
104+
105+
{{-- Mobile partner card --}}
106+
<div class="mt-5 min-[850px]:hidden">
107+
<x-sponsors.lists.docs.featured-sponsors />
108+
<a href="/partners" class="mt-3 block text-center text-xs text-gray-500 transition hover:text-gray-800 dark:text-gray-400 dark:hover:text-white">Become a Partner</a>
109+
</div>
104110
</section>
105111
</x-layout>

resources/views/blog.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ class="flex grow flex-col gap-5"
112112
{{-- Sidebar --}}
113113
<x-blog.sidebar />
114114
</div>
115+
116+
{{-- Mobile partner card --}}
117+
<div class="mt-5 min-[850px]:hidden">
118+
<x-sponsors.lists.docs.featured-sponsors />
119+
<a href="/partners" class="mt-3 block text-center text-xs text-gray-500 transition hover:text-gray-800 dark:text-gray-400 dark:hover:text-white">Become a Partner</a>
120+
</div>
115121
{{-- Pagination --}}
116122
<nav
117123
class="flex items-center justify-between gap-5 pt-2.5"

resources/views/components/docs-layout.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
{{-- Main content --}}
2020
<div class="mt-3">{{ $slot }}</div>
21+
22+
{{-- Mobile partner card --}}
23+
<div class="mt-5 xl:hidden">
24+
<x-sponsors.lists.docs.featured-sponsors />
25+
<a href="/partners" class="mt-3 block text-center text-xs text-gray-500 transition hover:text-gray-800 dark:text-gray-400 dark:hover:text-white">Become a Partner</a>
26+
</div>
2127
</article>
2228

2329
{{-- Right sidebar --}}

resources/views/components/sponsors/lists/docs/featured-sponsors.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
href="{{ $partner['url'] }}"
4747
title="Learn more about {{ $partner['name'] }}"
4848
aria-label="Visit {{ $partner['name'] }} website"
49-
class="flex w-full shrink-0 flex-col items-center gap-2 rounded-2xl bg-gray-100 px-5 py-4 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
49+
class="mx-auto flex w-full max-w-64 shrink-0 flex-col items-center gap-2 rounded-2xl bg-gray-100 px-5 py-4 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
5050
rel="noopener sponsored"
5151
>
5252
<div class="flex w-full items-center justify-center px-2">

0 commit comments

Comments
 (0)