From fd416a48e631b6cb76bdb43d63920e179858148b Mon Sep 17 00:00:00 2001 From: Chuck Adams Date: Fri, 24 Jan 2025 11:37:20 -0700 Subject: [PATCH] feat(ui): add stability warning banner on non-prod systems --- resources/views/home.blade.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 1db0bb9..47fe7be 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -47,6 +47,20 @@ @endif + + @if (!app()->isProduction()) +
+

+ Warning: + This is a development server, and the stability of the platform is not guaranteed. It may be reset + from time to time without warning, requiring you to re-register and generate new API keys. +

+

+ Email cannot be sent by this server, and thus password resets can only be performed by a site administrator. + Warnings about verifying your account email can be ignored for the time being. +

+
+ @endif @endsection @@ -86,10 +100,6 @@ justify-content: space-evenly; } - main.homepage nav li { - margin-top: 1em; - } - main.homepage a { text-decoration: none; color: darkcyan; @@ -98,5 +108,9 @@ main.homepage a:hover { color: deepskyblue; } + + main.homepage .warning { + background-color: lightyellow; + } @endsection