nav bar restyle

This commit is contained in:
iTob 2024-09-16 17:01:50 +02:00
parent f484d617d0
commit 0071017fcf
7 changed files with 39 additions and 37 deletions

View File

@ -1 +1,2 @@
cd..
dotnet publish -c Release -r android-arm64 -p:PackageFormat=Apk -f net8.0-android34.0 --sc true dotnet publish -c Release -r android-arm64 -p:PackageFormat=Apk -f net8.0-android34.0 --sc true

View File

@ -42,10 +42,6 @@
<AndroidPackageFormat>apk</AndroidPackageFormat> <AndroidPackageFormat>apk</AndroidPackageFormat>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.26100.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android34.0|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android34.0|AnyCPU'">
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk> <EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
</PropertyGroup> </PropertyGroup>

View File

@ -16,7 +16,7 @@ main {
background-color: #f7f7f7; background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5; border-bottom: 1px solid #d6d5d5;
justify-content: flex-end; justify-content: flex-end;
height: 3.5rem; height: 2rem;
display: flex; display: flex;
align-items: center; align-items: center;
} }

View File

@ -1,25 +1,23 @@
@using RBLNews.Shared.Services @using RBLNews.Shared.Services
@inject IFeedDataService feedDataService @inject IFeedDataService feedDataService
<div class="container-fluid"> <nav class="nav">
<div class="top-row ps-3 navbar navbar-dark"> <div class="container-fluid">
<div class="row"> <div class="top-row ps-3 navbar navbar-dark">
<div class="col-12"> <h4>RBL News auf einen Blick!</h4>
<h3>RBL News auf einen Blick!</h3>
</div> </div>
<div class="top-row ps-3">
@if (FeedDataService.Feeds?.LastUpdate == null)
{
<text>...</text>
}
else
{
<text>Letztes Update @FeedDataService.Feeds?.LastUpdate.ToString("dd.MM.yyyy HH:mm")</text>
}
</div> </div>
</div> </div>
</div> </nav>
<div class="container-fluid">
<div class="top-row ps-3 navbar navbar-dark">
<div class="row">
<div class="col-12">
<Icon Name="IconName.InfoCircle" class="me-2"></Icon>Letztes Update @FeedDataService.Feeds?.LastUpdate.ToString("dd.MM.yyyy HH:mm")
</div>
</div>
</div>
</div>
@* @*
<input type="checkbox" title="Navigation menu" class="navbar-toggler" /> <input type="checkbox" title="Navigation menu" class="navbar-toggler" />
@ -49,10 +47,10 @@
@code { @code {
[Inject] [Inject]
private IFeedDataService FeedDataService { get; set; } private IFeedDataService FeedDataService { get; set; }
protected override void OnInitialized() protected override void OnInitialized()
{ {
FeedDataService.DataChanged= () => StateHasChanged(); FeedDataService.DataChanged = () => StateHasChanged();
} }
} }

View File

@ -11,15 +11,21 @@
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1); background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
} }
.navbar-toggler:checked { .navbar-toggler:checked {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
} }
.top-row { .top-row {
height: 2.5rem; height: 1.8rem;
background-color: rgba(0,0,0,0.4); background-color: rgb(221, 7, 65);
color: #eee !important;
} }
.top-row h1, h2, h3, h4, h5 {
color: #eee !important;
}
.navbar-brand { .navbar-brand {
font-size: 1.1rem; font-size: 1.1rem;
} }
@ -47,8 +53,8 @@
} }
.nav-item { .nav-item {
font-size: 0.9rem; font-size: 0.8rem;
padding-bottom: 0.5rem; padding-bottom: 0.6rem;
} }
.nav-item:first-of-type { .nav-item:first-of-type {

View File

@ -0,0 +1 @@


View File

@ -1,16 +1,16 @@
 
nav .container-fluid {
padding-right: 0px !important;
padding-left: 0px !important;
}
h1, h2, h3, h4, h5, h6, h7 { h1, h2, h3, h4, h5, h6, h7 {
color: rgb(221, 7, 65) !important; color: rgb(221, 7, 65) !important;
text-transform: uppercase; text-transform: uppercase;
} }
.top-row { .list-group-item {
background-color: rgb(221, 7, 65) !important; font-size: 0.8rem !important;
color: #eee !important;
}
.top-row h3 {
color: #eee !important;
} }
.loading { .loading {