feat: add visual theme indicators and fix logo colors for dev/staging environments

This commit is contained in:
2026-04-26 17:06:45 +09:30
parent d8828d64f2
commit 9cba8b4829
6 changed files with 139 additions and 22 deletions
@@ -3,11 +3,13 @@ import { SidebarProvider } from "@/components/ui/sidebar";
import { AppSidebar } from "@/components/navigation/AppSidebar";
import { TopBar } from "@/components/navigation/TopBar";
import ApiDevTools from "@/components/dev/ApiDevTools";
import { ThemeIndicator } from "@/components/branding/ThemeIndicator";
export default function AuthenticatedLayout() {
return (
<SidebarProvider>
<div className="min-h-screen flex w-full bg-background">
<ThemeIndicator />
<div className="min-h-screen flex w-full bg-background pt-8">
<AppSidebar />
<div className="flex-1 flex flex-col min-w-0">
<TopBar />
+12 -8
View File
@@ -1,16 +1,17 @@
import { Link, Outlet, useLocation } from "react-router-dom";
import { SecuirdLogo as GatehouseLogo } from "@/components/branding/SecuirdLogo";
import { ThemeIndicator } from "@/components/branding/ThemeIndicator";
import { Button } from "@/components/ui/button";
import { config } from "@/config";
import { cn } from "@/lib/utils";
import {
Shield,
Key,
CreditCard,
Play,
Lock,
Menu,
X
Shield,
Key,
CreditCard,
Play,
Lock,
Menu,
X
} from "lucide-react";
import { useState } from "react";
@@ -29,8 +30,11 @@ const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
return (
<div className="min-h-screen bg-background flex flex-col">
{/* Theme indicator banner for dev/staging */}
<ThemeIndicator />
{/* Header */}
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<header className="sticky top-8 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 marketing-header">
<nav className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div className="flex h-16 items-center justify-between">
{/* Logo */}
+6 -2
View File
@@ -1,15 +1,19 @@
import { Outlet, Link } from "react-router-dom";
import { SecuirdLogo } from "@/components/branding/SecuirdLogo";
import { ThemeIndicator } from "@/components/branding/ThemeIndicator";
import { config } from "@/config";
export default function PublicLayout() {
return (
<div className="min-h-screen bg-background flex flex-col">
{/* Theme indicator banner for dev/staging */}
<ThemeIndicator />
{/* Subtle gradient background */}
<div className="fixed inset-0 bg-gradient-to-br from-background via-background to-secondary/30 pointer-events-none" />
{/* Header */}
<header className="relative z-10 w-full py-6 px-4">
{/* Header with theme-colored border */}
<header className="relative z-10 w-full py-6 px-4 marketing-header">
<div className="max-w-md mx-auto">
<Link to="/" className="flex items-center gap-2.5 justify-center">
<SecuirdLogo size="md" />