badge for switch implemented
All checks were successful
Restart Docker Container on Production / build (pull_request) Successful in 3m29s
All checks were successful
Restart Docker Container on Production / build (pull_request) Successful in 3m29s
This commit is contained in:
parent
5076367282
commit
eaadb96157
@ -1,33 +1,33 @@
|
|||||||
@using RBLFeederCommon.Enums
|
@using RBLFeederCommon.Enums
|
||||||
@using RBLNews.Shared.Models
|
@using RBLNews.Shared.Models
|
||||||
|
|
||||||
|
<div class="swb-container">
|
||||||
<Switch Class="mt-2" Value="this._filter" Label="@this.Text" ValueExpression="() => this._filter" ValueChanged="SwitchChanged"/>
|
<Switch Class="mt-2" Value="this._filter" Label="@this.Text" ValueExpression="() => this._filter" ValueChanged="SwitchChanged"/>
|
||||||
|
<span class="swb-badge">@(this.Count)</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
||||||
private bool _filter = true;
|
private bool _filter = true;
|
||||||
|
|
||||||
[Parameter]
|
[Parameter] public RssFeedSources Source { get; set; }
|
||||||
public RssFeedSources Source { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter] public string Text { get; set; } = "";
|
||||||
public string Text { get; set; } = "";
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter] public bool ShowCount { get; set; }
|
||||||
public bool ShowCount { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter] public int Count { get; set; }
|
||||||
public int Count { get; set; }
|
|
||||||
|
[Parameter] public EventCallback<FilterFeedEventArg> OnFilterChanged { get; set; }
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public EventCallback<FilterFeedEventArg> OnFilterChanged { get; set; }
|
|
||||||
|
|
||||||
Task SwitchChanged(bool value)
|
Task SwitchChanged(bool value)
|
||||||
{
|
{
|
||||||
this._filter = value;
|
this._filter = value;
|
||||||
|
|
||||||
OnFilterChanged.InvokeAsync(new FilterFeedEventArg
|
OnFilterChanged.InvokeAsync(
|
||||||
|
new FilterFeedEventArg
|
||||||
{
|
{
|
||||||
Source = this.Source,
|
Source = this.Source,
|
||||||
Value = value
|
Value = value
|
||||||
@ -36,4 +36,5 @@
|
|||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -37,9 +37,9 @@ else
|
|||||||
<section id="feeds-list">
|
<section id="feeds-list">
|
||||||
@foreach (FeedGroupVM feedGrp in FeedGroups)
|
@foreach (FeedGroupVM feedGrp in FeedGroups)
|
||||||
{
|
{
|
||||||
<h1>
|
<h2>
|
||||||
<Icon Name="IconName.Calendar2Event"/> @feedGrp.PublishDate.ToLocalTime().ToString("dd.MM.yyyy")
|
<Icon Name="IconName.Calendar2Event"/> @feedGrp.PublishDate.ToLocalTime().ToString("dd.MM.yyyy")
|
||||||
</h1>
|
</h2>
|
||||||
@foreach (FeedVM feed in feedGrp.Feeds)
|
@foreach (FeedVM feed in feedGrp.Feeds)
|
||||||
{
|
{
|
||||||
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-7 col-xl-5">
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-7 col-xl-5">
|
||||||
|
|||||||
@ -3,6 +3,10 @@ rot: #DD0741
|
|||||||
schrift: #4b4b4b
|
schrift: #4b4b4b
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #4b4b4b;
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Nanum Myeongjo", serif !important;
|
font-family: "Nanum Myeongjo", serif !important;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@ -13,6 +17,13 @@ schrift: #4b4b4b
|
|||||||
#feeds-page {
|
#feeds-page {
|
||||||
color: #4b4b4b;
|
color: #4b4b4b;
|
||||||
}
|
}
|
||||||
|
#feeds-list {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#filter {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
color: #4b4b4b;
|
color: #4b4b4b;
|
||||||
@ -31,11 +42,12 @@ schrift: #4b4b4b
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav .container-fluid {
|
.container-fluid {
|
||||||
padding-right: 0 !important;
|
padding-right: 0 !important;
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
nav .top-row {
|
nav .top-row {
|
||||||
height: 1.8rem;
|
height: 1.8rem;
|
||||||
background-color: rgb(221, 7, 65);
|
background-color: rgb(221, 7, 65);
|
||||||
@ -59,21 +71,20 @@ nav .top-row {
|
|||||||
/*}*/
|
/*}*/
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
color: #fff;
|
color: #eee;
|
||||||
background-color: #f75581;
|
background-color: #f75581;
|
||||||
border-color: #DD0741;
|
border-color: #DD0741;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary:hover {
|
.btn-primary:hover {
|
||||||
color: inherit;
|
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
border-color: inherit;
|
border-color: #4b4b4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-primary {
|
.btn-outline-primary {
|
||||||
color: #f75581;
|
color: #4b4b4b;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-color: #DD0741;
|
border-color: #4b4b4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-primary:hover {
|
.btn-outline-primary:hover {
|
||||||
@ -107,7 +118,6 @@ nav .top-row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
@ -189,8 +199,6 @@ nav .top-row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 45%;
|
top: 45%;
|
||||||
@ -263,6 +271,26 @@ nav .top-row {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swb-container {
|
||||||
|
position: relative;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swb-badge {
|
||||||
|
position: absolute;
|
||||||
|
top: -5px;
|
||||||
|
/*height:20px;*/
|
||||||
|
min-width: 20px;
|
||||||
|
z-index: 999;
|
||||||
|
background-color: #DD0741;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 8px 2px;
|
||||||
|
border-radius: 18px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.7em;
|
||||||
|
color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*html, body {
|
/*html, body {
|
||||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user