Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stability warning banner on non-prod systems #144

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@
@endif
</ul>
</nav>

@if (!app()->isProduction())
<div class="warning message">
<p>
<strong>Warning:</strong>
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.
</p>
<p>
Email <em>cannot</em> 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.
</p>
</div>
@endif
</main>
@endsection

Expand Down Expand Up @@ -86,10 +100,6 @@
justify-content: space-evenly;
}

main.homepage nav li {
margin-top: 1em;
}

main.homepage a {
text-decoration: none;
color: darkcyan;
Expand All @@ -98,5 +108,9 @@
main.homepage a:hover {
color: deepskyblue;
}

main.homepage .warning {
background-color: lightyellow;
}
</style>
@endsection
Loading