diff --git a/Otakians/Pages/Index.razor b/Otakians/Pages/Index.razor index bfdadd3..7f079c8 100644 --- a/Otakians/Pages/Index.razor +++ b/Otakians/Pages/Index.razor @@ -16,9 +16,18 @@ } + + + + Damn + + + +Show Overlay + - @for (int i = 0; i < 100; i++) + @for (int i = 0; i < 25; i++) { int postId = (LoadedImages.Count > i) ? LoadedImages[i] : GetRandomImageNumber(); @@ -41,6 +50,7 @@ public string Text { get; set; } = "????"; public string ButtonText { get; set; } = "Click Me"; public int ButtonClicked { get; set; } + public bool isOverlayVisible = false; void ButtonOnClick() { @@ -49,6 +59,12 @@ ButtonText = "Click Me Again"; } + public void OpenOverlay() + { + isOverlayVisible = true; + StateHasChanged(); + } + List LoadedImages = new List(); private Random random = new Random();