|
1 | 1 | @page "/shield-badge" |
2 | 2 | @inject IStringLocalizer<ShieldBadges> Localizer |
3 | 3 |
|
4 | | -<h3>@Localizer["ShieldBadgeTitle"]</h3> |
5 | | -<h4>@Localizer["ShieldBadgeIntro"]</h4> |
| 4 | +<h3>@Localizer["Title"]</h3> |
| 5 | +<h4>@Localizer["SubTitle"]</h4> |
6 | 6 |
|
7 | 7 | <DemoBlock Title="@Localizer["ShieldBadgeNormalTitle"]" |
8 | 8 | Introduction="@Localizer["ShieldBadgeNormalIntro"]" |
9 | 9 | Name="Normal"> |
10 | | - <ShieldBadge Icon="fa-solid fa-flag" Label="download" Text="12M"></ShieldBadge> |
| 10 | + <section ignore> |
| 11 | + <div class="row form-inline g-3"> |
| 12 | + <div class="col-12 col-sm-4"> |
| 13 | + <BootstrapInputGroup> |
| 14 | + <BootstrapInputGroupLabel DisplayText="Icon" Width="96"></BootstrapInputGroupLabel> |
| 15 | + <BootstrapInput @bind-Value="@_icon"></BootstrapInput> |
| 16 | + </BootstrapInputGroup> |
| 17 | + </div> |
| 18 | + <div class="col-12 col-sm-4"> |
| 19 | + <BootstrapInputGroup> |
| 20 | + <BootstrapInputGroupLabel DisplayText="IconColor" Width="96"></BootstrapInputGroupLabel> |
| 21 | + <ColorPicker @bind-Value="@_iconColor"></ColorPicker> |
| 22 | + </BootstrapInputGroup> |
| 23 | + </div> |
| 24 | + <div class="col-12 col-sm-4"> |
| 25 | + </div> |
| 26 | + <div class="col-12 col-sm-4"> |
| 27 | + <BootstrapInputGroup> |
| 28 | + <BootstrapInputGroupLabel DisplayText="Label" Width="96"></BootstrapInputGroupLabel> |
| 29 | + <BootstrapInput @bind-Value="@_label"></BootstrapInput> |
| 30 | + </BootstrapInputGroup> |
| 31 | + </div> |
| 32 | + <div class="col-12 col-sm-4"> |
| 33 | + <BootstrapInputGroup> |
| 34 | + <BootstrapInputGroupLabel DisplayText="LabelColor" Width="96"></BootstrapInputGroupLabel> |
| 35 | + <ColorPicker @bind-Value="@_labelColor"></ColorPicker> |
| 36 | + </BootstrapInputGroup> |
| 37 | + </div> |
| 38 | + <div class="col-12 col-sm-4"> |
| 39 | + <BootstrapInputGroup> |
| 40 | + <BootstrapInputGroupLabel DisplayText="LabelBgColor" Width="96"></BootstrapInputGroupLabel> |
| 41 | + <ColorPicker @bind-Value="@_labelBackgroundColor"></ColorPicker> |
| 42 | + </BootstrapInputGroup> |
| 43 | + </div> |
| 44 | + <div class="col-12 col-sm-4"> |
| 45 | + <BootstrapInputGroup> |
| 46 | + <BootstrapInputGroupLabel DisplayText="Text" Width="96"></BootstrapInputGroupLabel> |
| 47 | + <BootstrapInput @bind-Value="@_text"></BootstrapInput> |
| 48 | + </BootstrapInputGroup> |
| 49 | + </div> |
| 50 | + <div class="col-12 col-sm-4"> |
| 51 | + <BootstrapInputGroup> |
| 52 | + <BootstrapInputGroupLabel DisplayText="TextColor" Width="96"></BootstrapInputGroupLabel> |
| 53 | + <ColorPicker @bind-Value="@_textColor"></ColorPicker> |
| 54 | + </BootstrapInputGroup> |
| 55 | + </div> |
| 56 | + <div class="col-12 col-sm-4"> |
| 57 | + <BootstrapInputGroup> |
| 58 | + <BootstrapInputGroupLabel DisplayText="TextBgColor" Width="96"></BootstrapInputGroupLabel> |
| 59 | + <ColorPicker @bind-Value="@_textBackgroundColor"></ColorPicker> |
| 60 | + </BootstrapInputGroup> |
| 61 | + </div> |
| 62 | + <div class="col-12 col-sm-4"> |
| 63 | + <BootstrapInputGroup> |
| 64 | + <BootstrapInputGroupLabel DisplayText="Radius" Width="96"></BootstrapInputGroupLabel> |
| 65 | + <Slider @bind-Value="@_radius" Min="0" Max="10"></Slider> |
| 66 | + </BootstrapInputGroup> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + </section> |
| 70 | + <ShieldBadge Icon="@_icon" IconColor="@_iconColor" |
| 71 | + Label="download" LabelColor="@_labelColor" LabelBackgroundColor="@_labelBackgroundColor" |
| 72 | + Text="12M" TextColor="@_textColor" TextBackgroundColor="@_textBackgroundColor" |
| 73 | + Radius="@_radius"></ShieldBadge> |
11 | 74 | </DemoBlock> |
12 | | - |
13 | | - |
|
0 commit comments