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" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\images\Non-AnimeImages\" />
</ItemGroup>
</Project>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,7 @@
@page "/TOS"
<PageTitle>Legal stuff</PageTitle>
<style>
.unreadable{
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