Skip to content

Commit 88014ba

Browse files
committed
Tweak contact card example on intro page
1 parent a5144ab commit 88014ba

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/source/docs/what-is-tailwind.blade.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ Here's an example of a contact card component built with Tailwind without writin
3131

3232
@component('_partials.code-sample', ['class' => 'bg-grey-lighter py-8'])
3333
<div class="bg-white mx-auto max-w-sm shadow-lg rounded-lg overflow-hidden">
34-
<div class="flex items-center px-6 py-4">
35-
<div class="mr-4">
36-
<img class="h-24 rounded-full" src="https://avatars2.githubusercontent.com/u/4323180?s=400&u=4962a4441fae9fba5f0f86456c6c506a21ffca4f&v=4" alt="">
37-
</div>
38-
<div class="flex-grow">
34+
<div class="sm:flex sm:items-center px-6 py-4">
35+
<img class="block h-16 sm:h-24 rounded-full mx-auto mb-4 sm:mb-0 sm:mr-4 sm:ml-0" src="https://avatars2.githubusercontent.com/u/4323180?s=400&u=4962a4441fae9fba5f0f86456c6c506a21ffca4f&v=4" alt="">
36+
<div class="text-center sm:text-left sm:flex-grow">
3937
<div class="mb-4">
4038
<p class="text-xl leading-tight">Adam Wathan</p>
4139
<p class="text-sm leading-tight text-grey-dark">Developer at NothingWorks Inc.</p>
@@ -48,16 +46,16 @@ Here's an example of a contact card component built with Tailwind without writin
4846
</div>
4947
@slot('code')
5048
<div class="bg-white mx-auto max-w-sm shadow-lg rounded-lg overflow-hidden">
51-
<div class="flex items-center px-6 py-4">
52-
<div class="mr-4">
53-
<img class="h-24 rounded-full" src="https://avatars2.githubusercontent.com/u/4323180?s=400&u=4962a4441fae9fba5f0f86456c6c506a21ffca4f&v=4" alt="">
54-
</div>
55-
<div>
49+
<div class="sm:flex sm:items-center px-6 py-4">
50+
<img class="block h-16 sm:h-24 rounded-full mx-auto mb-4 sm:mb-0 sm:mr-4 sm:ml-0" src="https://avatars2.githubusercontent.com/u/4323180?s=400&u=4962a4441fae9fba5f0f86456c6c506a21ffca4f&v=4" alt="">
51+
<div class="text-center sm:text-left sm:flex-grow">
5652
<div class="mb-4">
57-
<p class="text-xl leading-tight text-black">Adam Wathan</p>
53+
<p class="text-xl leading-tight">Adam Wathan</p>
5854
<p class="text-sm leading-tight text-grey-dark">Developer at NothingWorks Inc.</p>
5955
</div>
60-
<button class="text-xs font-semibold rounded-full px-4 py-1 leading-normal bg-white border border-purple text-purple hover:bg-purple hover:text-white">Message</button>
56+
<div>
57+
<button class="text-xs font-semibold rounded-full px-4 py-1 leading-normal bg-white border border-purple text-purple hover:bg-purple hover:text-white">Message</button>
58+
</div>
6159
</div>
6260
</div>
6361
</div>

0 commit comments

Comments
 (0)