Filtered the images and normalized them. Added dynamic page titles

This commit is contained in:
BOT Alex 2023-05-29 05:02:22 +02:00
parent 663b7a26e8
commit e7550fcf54
275 changed files with 21 additions and 6 deletions

View File

@ -14,4 +14,8 @@
<PackageReference Include="MudBlazor" Version="6.2.5" /> <PackageReference Include="MudBlazor" Version="6.2.5" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\images\Non-AnimeImages\" />
</ItemGroup>
</Project> </Project>

View File

@ -6,6 +6,8 @@
@inject ISnackbar Snackbar @inject ISnackbar Snackbar
@inject MessageService messageService @inject MessageService messageService
<PageTitle>Chatting</PageTitle>
<style> <style>
.bottom-start { .bottom-start {
display: flex; display: flex;

View File

@ -3,6 +3,7 @@
@inject Blazored.LocalStorage.ILocalStorageService localStorage @inject Blazored.LocalStorage.ILocalStorageService localStorage
@inject DataCollectorService DCollector @inject DataCollectorService DCollector
<PageTitle>Cookies!</PageTitle>
<MudOverlay ZIndex="1400" DarkBackground="true" Visible=true Style="backdrop-filter:blur(5px)"> <MudOverlay ZIndex="1400" DarkBackground="true" Visible=true Style="backdrop-filter:blur(5px)">
<MudCard> <MudCard>

View File

@ -1,5 +1,7 @@
@page "/FAQ" @page "/FAQ"
<PageTitle>FAQ-ing</PageTitle>
<MudContainer> <MudContainer>
<MudText Typo="Typo.h1" Class="my-10" Align="Align.Center">Fequently Asked Questions</MudText> <MudText Typo="Typo.h1" Class="my-10" Align="Align.Center">Fequently Asked Questions</MudText>
</MudContainer> </MudContainer>

View File

@ -1,11 +1,13 @@
@page "/" @page "/"
@inject NavigationManager NavManager @inject NavigationManager NavManager
<PageTitle>Indexing</PageTitle>
<h1>2nd loading... Please wait</h1> <h1>2nd loading... Please wait</h1>
@code { @code {
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
//await DCollector.PushDataToAnalytics(); NavManager.NavigateTo("/Posts");
} }
} }

View File

@ -3,7 +3,7 @@
@inject NavigationManager NavManager @inject NavigationManager NavManager
<PageTitle>MudBlazorTime!</PageTitle> <PageTitle>Posts!</PageTitle>
<style> <style>
/* Hide scrollbar */ /* Hide scrollbar */
@ -128,7 +128,7 @@
private Random random = new Random(); private Random random = new Random();
const bool useFoodImages = true; const bool useFoodImages = true;
const int numImagesAnime = 399; const int numImagesAnime = 399;
const int numImages = 399; const int numImages = 239;
Post GetRandomPost() Post GetRandomPost()
{ {
int selectedPostNum; int selectedPostNum;
@ -146,13 +146,13 @@
} }
string GetImage(int imageIndex) static string GetImage(int imageIndex)
{ {
if (!useFoodImages) if (!useFoodImages)
return $@"\images\AnimeImages\AnimeImage ({imageIndex}).jpeg"; return $@"\images\AnimeImages\AnimeImage ({imageIndex}).jpeg";
else else
return $@"\images\Non-AnimeImages\Food ({imageIndex}).jpeg"; return $@"\images\Non-AnimeImages\FoodImage ({imageIndex}).jpeg";
} }
protected override void OnAfterRender(bool firstRender) protected override void OnAfterRender(bool firstRender)
@ -196,7 +196,7 @@
public int Id { get; set; } public int Id { get; set; }
public int ImageIndex { get => Id; } public int ImageIndex { get => Id; }
public string ImagePath { get => $@"\images\AnimeImages\AnimeImage ({ImageIndex}).jpeg"; } public string ImagePath { get => GetImage(ImageIndex); }
private string publisher = "Unknown"; private string publisher = "Unknown";
public string Publisher public string Publisher

View File

@ -1,5 +1,7 @@
@page "/Privacy" @page "/Privacy"
<PageTitle>Legal stuff</PageTitle>
<style> <style>
.unreadable { .unreadable {
font-family: 'Comic Sans MS' font-family: 'Comic Sans MS'

View File

@ -1,5 +1,7 @@
@page "/TOS" @page "/TOS"
<PageTitle>Legal stuff</PageTitle>
<style> <style>
.unreadable{ .unreadable{
font-family: 'Comic Sans MS' font-family: 'Comic Sans MS'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Some files were not shown because too many files have changed in this diff Show More