-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add the Navbar page (#87)
* components(navbar): takes full-width of the parent container * components(navbar): nits * fix(docs): small adjustments on some of the pages and components * dosc(preview-code): add the `Class` parameter * feat(docs): add the Navbar page * docs(navbar): update API component references
- Loading branch information
1 parent
030de4f
commit 91345fc
Showing
40 changed files
with
625 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/LumexUI.Docs.Client/Pages/Components/Divider/Examples/Usage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Blurred.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<LumexNavbar Blurred="@false" | ||
Bordered="@true" | ||
Sticky="@true"> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/blurred#" | ||
Color="@ThemeColor.None"> | ||
Home | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/blurred#" | ||
Color="@ThemeColor.None"> | ||
About | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexNavbarItem> | ||
<LumexButton Size="@Size.Small" | ||
Color="@ThemeColor.Primary" | ||
Variant="@Variant.Flat"> | ||
Log In | ||
</LumexButton> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
</LumexNavbar> |
33 changes: 33 additions & 0 deletions
33
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Bordered.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<LumexNavbar Bordered="@true" | ||
Sticky="@true"> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/bordered#" | ||
Color="@ThemeColor.None"> | ||
Home | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/bordered#" | ||
Color="@ThemeColor.None"> | ||
About | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexNavbarItem> | ||
<LumexButton Size="@Size.Small" | ||
Color="@ThemeColor.Primary" | ||
Variant="@Variant.Flat"> | ||
Log In | ||
</LumexButton> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
</LumexNavbar> |
32 changes: 32 additions & 0 deletions
32
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Brand.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<LumexNavbar> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/brand#" | ||
Color="@ThemeColor.None"> | ||
Home | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/brand#" | ||
Color="@ThemeColor.None"> | ||
About | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexNavbarItem> | ||
<LumexButton Size="@Size.Small" | ||
Color="@ThemeColor.Primary" | ||
Variant="@Variant.Flat"> | ||
Log In | ||
</LumexButton> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
</LumexNavbar> |
53 changes: 53 additions & 0 deletions
53
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/CustomStyles.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<LumexNavbar Bordered="@true" | ||
Sticky="@true" | ||
Classes="@_navbarClasses"> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/custom-styles#" | ||
Color="@ThemeColor.None"> | ||
Home | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/custom-styles#" | ||
Color="@ThemeColor.None"> | ||
About | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexTextbox Type="@InputType.Search" | ||
Color="@ThemeColor.Info" | ||
Variant="@InputVariant.Flat" | ||
Size="@Size.Small" | ||
Placeholder="Type to search..." | ||
Classes="@_inputClasses"> | ||
<StartContent> | ||
<LumexIcon Icon="@Icons.Rounded.Search" /> | ||
</StartContent> | ||
</LumexTextbox> | ||
</LumexNavbarContent> | ||
</LumexNavbar> | ||
|
||
@code { | ||
private NavbarSlots _navbarClasses = new() | ||
{ | ||
Root = "border-b-2 border-sky-100", | ||
Brand = "bg-clip-text bg-gradient-to-r from-sky-900 to-sky-600 text-transparent", | ||
Content = "gap-3", | ||
Item = "px-4 py-1.5 rounded-lg text-sky-600 bg-sky-50 font-medium" | ||
}; | ||
|
||
private InputFieldSlots _inputClasses = new() | ||
{ | ||
Root = "max-w-full sm:max-w-[10rem] h-8", | ||
Input = "text-tiny" | ||
}; | ||
} |
34 changes: 34 additions & 0 deletions
34
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Height.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<LumexNavbar Height="3rem" | ||
Bordered="@true" | ||
Sticky="@true"> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/height#" | ||
Color="@ThemeColor.None"> | ||
Home | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/height#" | ||
Color="@ThemeColor.None"> | ||
About | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexNavbarItem> | ||
<LumexButton Size="@Size.Small" | ||
Color="@ThemeColor.Primary" | ||
Variant="@Variant.Flat"> | ||
Log In | ||
</LumexButton> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
</LumexNavbar> |
49 changes: 49 additions & 0 deletions
49
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Menu.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<LumexNavbar> | ||
<LumexNavbarContent> | ||
<LumexNavbarMenuToggle Class="sm:hidden" /> | ||
<LumexNavbarBrand> | ||
<span class="font-bold text-xl"> | ||
Lumex<span class="font-normal">UI</span> | ||
</span> | ||
</LumexNavbarBrand> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Class="hidden sm:flex"> | ||
@foreach( var link in _navItems ) | ||
{ | ||
<LumexNavbarItem> | ||
<LumexLink Href="/examples/navbar/menu#" | ||
Color="@ThemeColor.None"> | ||
@link | ||
</LumexLink> | ||
</LumexNavbarItem> | ||
} | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarContent Align="@Align.End"> | ||
<LumexNavbarItem> | ||
<LumexButton Size="@Size.Small" | ||
Color="@ThemeColor.Primary" | ||
Variant="@Variant.Flat"> | ||
Log In | ||
</LumexButton> | ||
</LumexNavbarItem> | ||
</LumexNavbarContent> | ||
|
||
<LumexNavbarMenu> | ||
@foreach( var link in _navItems ) | ||
{ | ||
<LumexNavbarMenuItem> | ||
<LumexLink Color="@ThemeColor.None">@link</LumexLink> | ||
</LumexNavbarMenuItem> | ||
} | ||
</LumexNavbarMenu> | ||
</LumexNavbar> | ||
|
||
@code { | ||
private string[] _navItems = [ | ||
"Home", | ||
"About", | ||
"Contact" | ||
]; | ||
} |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/Blurred.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/blurred" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.Blurred /> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/Bordered.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/bordered" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.Bordered /> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/Brand.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/brand" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.Brand /> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/CustomStyles.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/custom-styles" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.CustomStyles /> |
17 changes: 17 additions & 0 deletions
17
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/ExampleLayout.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@inherits LayoutComponentBase | ||
@layout MainLayout | ||
|
||
@Body | ||
|
||
<article class="p-6 space-y-4"> | ||
<h1 class="text-center text-2xl font-bold mb-2">A Cool Story</h1> | ||
<p> | ||
Jake was preparing his morning smoothie when he accidentally added his dog Max’s kibble instead of chia seeds. Halfway through blending, he realized his mistake. Curious and not wanting to waste food, he decided to take a small sip. To his surprise, Max watched him with a puzzled expression. | ||
</p> | ||
<p> | ||
The next morning, as a joke, Jake made two breakfasts—one for himself with kibble and another for Max with chia seeds. He posted the swap on social media, and people loved it. Encouraged by the reaction, Jake started experimenting with different smoothie flavors, incorporating kibble in creative ways. | ||
</p> | ||
<p> | ||
His new vlog, 'Kibble Kitchen,' featured him taste-testing these unusual recipes and capturing Max’s reactions. The concept went viral, and Jake and Max quickly became a sensation. Before long, they landed a sponsorship from a pet food company, turning their accidental smoothie swap into a full-fledged business. Together, they became an influencer duo, delighting fans with their daily breakfast adventures. | ||
</p> | ||
</article> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/Height.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/height" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.Height /> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/MaxWidth.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/max-width" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples._MaxWidth /> |
5 changes: 5 additions & 0 deletions
5
docs/LumexUI.Docs.Client/Pages/Components/Navbar/Examples/Pages/Menu.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@page "/examples/navbar/menu" | ||
@layout ExampleLayout | ||
@rendermode InteractiveWebAssembly | ||
|
||
<LumexUI.Docs.Client.Pages.Components.Navbar.Examples.Menu /> |
Oops, something went wrong.