-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55242ed
commit 818a0f8
Showing
26 changed files
with
381 additions
and
179 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
3 changes: 1 addition & 2 deletions
3
...ingAppleConsumer.Components/BlazingAppleConsumer.Components/Components/BadgeSection.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
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
5 changes: 4 additions & 1 deletion
5
...AppleConsumer.Components/BlazingAppleConsumer.Components/Components/CarouselSection.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
22 changes: 22 additions & 0 deletions
22
...zingAppleConsumer.Components/BlazingAppleConsumer.Components/Components/CodePreview.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,22 @@ | ||
@if(Inline) | ||
{ | ||
<strong style="font-family: 'Courier New', monospace;">@Code</strong> | ||
} | ||
else | ||
{ | ||
<div class="small d-flex flex-column mb-2"> | ||
<label class="" for="@($"code-{_id}")">@Label</label> | ||
<div class="code p-2"> | ||
<div class="d-flex flex-row align-items-start justify-content-lg-between"> | ||
<div class="pt-1 pb-1"> | ||
<code id="@($"code-{_id}")" style="white-space: pre;"> | ||
@Code | ||
</code> | ||
</div> | ||
<div class="ps-3"> | ||
<CopyToClipboard Text="@Code" TextColor="#5f7c8a" DefaultButtonClass="btn btn-sm btn-light m-0 p-0" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} |
19 changes: 19 additions & 0 deletions
19
...gAppleConsumer.Components/BlazingAppleConsumer.Components/Components/CodePreview.razor.cs
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,19 @@ | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace BlazingAppleConsumer.Components.Components; | ||
public partial class CodePreview : ComponentBase | ||
{ | ||
private readonly Guid _id = Guid.NewGuid(); | ||
|
||
/// <summary>The code to render.</summary> | ||
[Parameter, EditorRequired] | ||
public string? Code { get; set; } | ||
|
||
/// <summary>The code to render.</summary> | ||
[Parameter] | ||
public string Label { get; set; } = "Usage"; | ||
|
||
/// <summary>Whether this is just an inline reference to code.</summary> | ||
[Parameter] | ||
public bool Inline { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...nsumer.Components/BlazingAppleConsumer.Components/Components/CopyToClipboardSection.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
2 changes: 1 addition & 1 deletion
2
...sumer.Components/BlazingAppleConsumer.Components/Components/DeviceManagementSection.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
2 changes: 1 addition & 1 deletion
2
...gAppleConsumer.Components/BlazingAppleConsumer.Components/Components/DueDateSection.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
19 changes: 5 additions & 14 deletions
19
...zingAppleConsumer.Components/BlazingAppleConsumer.Components/Components/IconSection.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 |
---|---|---|
@@ -1,27 +1,18 @@ | ||
@using BlazingApple.Components.Services; | ||
|
||
<h2>Icons</h2> | ||
<p>BlazingApple offers an API over FontAwesome's Icons, making it really easy to use them in Blazor. | ||
<p> | ||
BlazingApple offers an API over FontAwesome's Icons, making it really easy to use them in Blazor. | ||
For applications that allow user's to choose their <em>own</em> icons, use the | ||
<div class="code"> | ||
<code> | ||
IconChooser | ||
</code> | ||
</div>. | ||
<CodePreview Inline="true" Code="IconChooser" /> component. | ||
</p> | ||
|
||
<h3>Composite Icons</h3> | ||
<p>Icons can also be made as composite icons, where one icon is superimposed over another using the | ||
<div class="code"> | ||
<code> | ||
ChildContent | ||
</code> | ||
</div> | ||
property.</p> | ||
<p>Icons can also be made as composite icons, where one icon is superimposed over another using the <CodePreview Code="ChildContent" Inline="true" /> property.</p> | ||
<Icon I="IconType.Like" style="color:deepskyblue;" AltText="Sort of like"> | ||
<i class="fas fa-exclamation-triangle og-golden-color" style="color:goldenrod;"></i> | ||
</Icon> | ||
|
||
<h2>Icon Chooser</h2> | ||
<div class="code"><code>@("<IconChooser/>")</code></div> | ||
<CodePreview Code="@("<IconChooser />")" />. | ||
<IconChooser /> |
2 changes: 1 addition & 1 deletion
2
...ppleConsumer.Components/BlazingAppleConsumer.Components/Components/PaginatorSection.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
4 changes: 3 additions & 1 deletion
4
...BlazingAppleConsumer.Components/BlazingAppleConsumer.Components/Pages/EmailSafePage.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
Oops, something went wrong.