Skip to content

Commit

Permalink
Update formatting on branding page.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed May 11, 2021
1 parent f315a48 commit 38bd21b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Server/Components/ColorPicker.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div>
<div>Color Sample:</div>
<div class="color-sample mb-4" style="background-color:@($"rgb({Red},{Green},{Blue})")"></div>
<div class="color-sample mb-2" style="background-color:@($"rgb({Red},{Green},{Blue})")"></div>

<div>Red</div>
<input type="range" min="0" max="255" class="form-control red-picker" @bind="Red" />
Expand Down
22 changes: 11 additions & 11 deletions Server/Pages/Branding.razor
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,35 @@ else
<EditForm OnValidSubmit="HandleValidSubmit" Model="_inputModel">
<DataAnnotationsValidator />

<div class="form-group mb-4">
<label class="font-weight-bold">Product Name</label>
<div class="form-group mb-5">
<label class="text-info font-weight-bold">Product Name</label>
<InputText class="form-control" @bind-Value="_inputModel.ProductName" />
<ValidationMessage For="() => _inputModel.ProductName" />
</div>

@if (!string.IsNullOrWhiteSpace(_base64Icon))
{
<div class="form-group mb-4">
<label class="font-weight-bold">Current Icon</label>
<label class="text-info font-weight-bold">Current Icon</label>
<br />
<img class="img-fluid" src="data:image/png;base64,@_base64Icon" />
</div>
}

<div class="form-group mb-4">
<label class="font-weight-bold"></label>
<div class="form-group mb-5">
<label class="text-info font-weight-bold">New Icon</label>
<InputFile type="file" accept="image/png" class="form-control" OnChange="IconUploadInputChanged" />
</div>
<div class="form-group mb-4">
<label class="font-weight-bold">Title Foreground</label>
<div class="form-group mb-5">
<label class="text-info font-weight-bold">Title Foreground</label>
<ColorPicker @bind-Color="_inputModel.TitleForegroundColor" />
</div>
<div class="form-group mb-4">
<label class="font-weight-bold">Title Background</label>
<div class="form-group mb-5">
<label class="text-info font-weight-bold">Title Background</label>
<ColorPicker @bind-Color="_inputModel.TitleBackgroundColor" />
</div>
<div class="form-group mb-2">
<label class="font-weight-bold">Button Color</label>
<div class="form-group mb-5">
<label class="text-info font-weight-bold">Button Color</label>
<ColorPicker @bind-Color="_inputModel.TitleButtonColor" />
</div>
<div class="form-group text-right">
Expand Down

0 comments on commit 38bd21b

Please sign in to comment.