Skip to content

Commit

Permalink
Fontawesome demos update #346
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 committed Sep 26, 2023
1 parent b5d84b9 commit 9347527
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 8 deletions.
26 changes: 19 additions & 7 deletions BlazorBootstrap.Demo.RCL/Pages/Icons/IconDocumentation.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,35 @@
<SectionHeading Size="HeadingSize.H2" Text="Sizes" PageUrl="@pageUrl" HashTagName="sizes" />
<Demo Type="typeof(Icon_Demo_02_Sizes)" />

<SectionHeading Size="HeadingSize.H2" Text="Font awesome icons" PageUrl="@pageUrl" HashTagName="font-awesome-icons" />
<div class="mb-3">
In the following example, we used <b>Font Awesome 6.4.2</b> free version icons. For Font Awesome setup, please follow the Font Awesome website.
</div>
<Demo Type="typeof(Icon_Demo_03_Font_Awesome_Icons)" />

<SectionHeading Size="HeadingSize.H2" Text="Colors" PageUrl="@pageUrl" HashTagName="colors" />
<Demo Type="typeof(Icon_Demo_03_Colors)" />
<Demo Type="typeof(Icon_Demo_04_Colors)" />

<SectionHeading Size="HeadingSize.H2" Text="Inline text with icon" PageUrl="@pageUrl" HashTagName="inline-text-with-icon" />
<Demo Type="typeof(Icon_Demo_04_Inline_Text_With_Icon)" />
<Demo Type="typeof(Icon_Demo_05_Inline_Text_With_Icon)" />

<SectionHeading Size="HeadingSize.H2" Text="Link with icon" PageUrl="@pageUrl" HashTagName="link-with-icon" />
<Demo Type="typeof(Icon_Demo_05_Link_With_Icon)" />
<Demo Type="typeof(Icon_Demo_06_A_Link_With_Icon)" />

<SectionHeading Size="HeadingSize.H2" Text="Link with custom icon" PageUrl="@pageUrl" HashTagName="link-with-custom-icon" />
<Demo Type="typeof(Icon_Demo_06_Link_With_Custom_Icon)" />
<Demo Type="typeof(Icon_Demo_06_B_Link_With_Custom_Icon)" />

<SectionHeading Size="HeadingSize.H2" Text="Button with icon and text" PageUrl="@pageUrl" HashTagName="button-with-icon-and-text" />
<Demo Type="typeof(Icon_Demo_07_Button_With_Icon_And_Text)" />
<Demo Type="typeof(Icon_Demo_07_A_Button_With_Icon_And_Text)" />

<SectionHeading Size="HeadingSize.H2" Text="Button with icon only" PageUrl="@pageUrl" HashTagName="button-with-icon-only" />
<Demo Type="typeof(Icon_Demo_08_Button_With_Icon_Only)" />
<Demo Type="typeof(Icon_Demo_07_B_Button_With_Icon_Only)" />

<SectionHeading Size="HeadingSize.H2" Text="Button with font awesome icon" PageUrl="@pageUrl" HashTagName="button-with-font-awesome-icon" />
<div class="mb-3">
In the following example, we used <b>Font Awesome 6.4.2</b> free version icons. For Font Awesome setup, please follow the Font Awesome website.
</div>
<Demo Type="typeof(Icon_Demo_07_C_Button_With_Font_Awesome_Icon)" />

<SectionHeading Size="HeadingSize.H2" Text="Icon with tooltip" PageUrl="@pageUrl" HashTagName="icon-with-tooltip" />
<Demo Type="typeof(Icon_Demo_09_Tooltip)" />
Expand All @@ -44,4 +56,4 @@
private string title = "Blazor Icon Component";
private string description = "Blazor Bootstrap icon component will display an icon from any icon font.";
private string imageUrl = "https://i.imgur.com/273TamX.png";
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Icon Name="IconName.Alarm" />
<Icon Name="IconName.AlarmFill" />
<Icon Name="IconName.Window" />
<Icon Name="IconName.Apple" />
<Icon Name="IconName.Apple" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x1" />
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x2" />
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x3" />
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x4" />
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x5" />
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x6" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Button Color="ButtonColor.Secondary" TooltipTitle="Compare code">
<Icon CustomIconName="fa-solid fa-code-compare"/>
</Button>
<Button Color="ButtonColor.Secondary" TooltipTitle="Create pull request">
<Icon CustomIconName="fa-solid fa-code-pull-request" />
</Button>
2 changes: 2 additions & 0 deletions BlazorBootstrap.Demo.WebAssembly/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" />
<link href="css/demo.css" rel="stylesheet" />
<link href="BlazorBootstrap.Demo.WebAssembly.styles.css" rel="stylesheet" />
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/42379982c2.js" crossorigin="anonymous"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-60QGZHW8TG"></script>
Expand Down

0 comments on commit 9347527

Please sign in to comment.