Skip to content

Commit 065bf3d

Browse files
committed
Add responsive header nav example
1 parent 4b345d6 commit 065bf3d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/source/docs/examples/navigation.blade.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,38 @@ title: "Navigation"
3838
</ul>
3939
@endcomponent
4040

41+
## Responsive Header
42+
43+
@component('_partials.code-sample')
44+
<nav class="flex items-center justify-between flex-wrap bg-teal p-6">
45+
<div class="flex items-center flex-no-shrink text-white mr-6">
46+
<svg class="h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
47+
<span class="font-semibold text-xl tracking-tight">Tailwind CSS</span>
48+
</div>
49+
<div class="block lg:hidden">
50+
<button class="flex items-center px-3 py-2 border rounded text-teal-lighter border-teal-light hover:text-white hover:border-white">
51+
<svg class="h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
52+
</button>
53+
</div>
54+
<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
55+
<div class="text-sm lg:flex-grow">
56+
<a href="#header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
57+
Docs
58+
</a>
59+
<a href="#header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
60+
Examples
61+
</a>
62+
<a href="#header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white">
63+
Blog
64+
</a>
65+
</div>
66+
<div>
67+
<a href="#" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal hover:bg-white mt-4 lg:mt-0">Download</a>
68+
</div>
69+
</div>
70+
</nav>
71+
@endcomponent
72+
4173
## Tabs
4274

4375
@component('_partials.code-sample')

0 commit comments

Comments
 (0)