added staging banner
This commit is contained in:
@@ -40,6 +40,9 @@ templ Layout(title string) {
|
||||
id="main-content"
|
||||
class="flex flex-col h-screen"
|
||||
>
|
||||
if devInfo.StagingBanner {
|
||||
@stagingBanner()
|
||||
}
|
||||
@Navbar()
|
||||
if previewRole != nil {
|
||||
@previewModeBanner(previewRole)
|
||||
@@ -57,6 +60,12 @@ templ Layout(title string) {
|
||||
</html>
|
||||
}
|
||||
|
||||
templ stagingBanner() {
|
||||
<div class="bg-peach text-crust text-center text-xs font-bold py-1 tracking-wider uppercase">
|
||||
Staging Environment - For Testing Only
|
||||
</div>
|
||||
}
|
||||
|
||||
// Preview mode banner (private helper)
|
||||
templ previewModeBanner(previewRole *db.Role) {
|
||||
<div class="bg-yellow/20 border-b border-yellow/40 px-4 py-3">
|
||||
|
||||
Reference in New Issue
Block a user