From 80ecdf31411fa29b1ff122e51f840387e50318c8 Mon Sep 17 00:00:00 2001 From: Erin McLaughlin Date: Fri, 24 Nov 2023 14:45:58 -0500 Subject: [PATCH] longer cursor blink and remove cursor at end command --- PersonalWebsite/Components/TerminalCommand.razor | 9 --------- PersonalWebsite/Components/TerminalCursor.razor.css | 6 +++--- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/PersonalWebsite/Components/TerminalCommand.razor b/PersonalWebsite/Components/TerminalCommand.razor index 7a48a8c..583b7c5 100644 --- a/PersonalWebsite/Components/TerminalCommand.razor +++ b/PersonalWebsite/Components/TerminalCommand.razor @@ -1,9 +1,5 @@ 

> @TypedCommand - @if (ShowCursor) - { - - }

@code { @@ -12,7 +8,6 @@ [Parameter] public EventCallback OnAnimationComplete { get; set; } private string TypedCommand { get; set; } = ""; - private bool ShowCursor { get; set; } protected override async Task OnInitializedAsync() { @@ -32,11 +27,7 @@ await Task.Delay(50); } - ShowCursor = true; - StateHasChanged(); - await Task.Delay(200); - ShowCursor = false; await OnAnimationComplete.InvokeAsync(); } } \ No newline at end of file diff --git a/PersonalWebsite/Components/TerminalCursor.razor.css b/PersonalWebsite/Components/TerminalCursor.razor.css index b0cfd10..f4602f5 100644 --- a/PersonalWebsite/Components/TerminalCursor.razor.css +++ b/PersonalWebsite/Components/TerminalCursor.razor.css @@ -1,8 +1,8 @@ .terminal-cursor { opacity: 1; - -webkit-animation: blink 0.7s infinite; - -moz-animation: blink 0.7s infinite; - animation: blink 0.7s infinite; + -webkit-animation: blink 0.8s infinite; + -moz-animation: blink 0.8s infinite; + animation: blink 0.8s infinite; } @keyframes blink {