feat: add plug and organization
This commit is contained in:
+37
-3
@@ -1,13 +1,47 @@
|
||||
import { ThemeToggle } from "@/modules/theme-changer/ui/Theme.toggle";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useAuth } from "@/modules/auth/hooks/useAuth";
|
||||
|
||||
export const HomePage = () => {
|
||||
const navigate = useNavigate();
|
||||
const { logout } = useAuth();
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{ backgroundColor: "var(--bg-primary)" }}
|
||||
className="min-h-screen flex items-center justify-center p-4"
|
||||
className="min-h-screen p-4"
|
||||
>
|
||||
<ThemeToggle />
|
||||
Домашняя
|
||||
<div className="flex justify-between items-center mb-8">
|
||||
<ThemeToggle />
|
||||
<div className="flex gap-4">
|
||||
<button
|
||||
onClick={() => navigate("/organization")}
|
||||
className="px-4 py-2 rounded-lg font-medium transition-all"
|
||||
style={{
|
||||
backgroundColor: "var(--accent)",
|
||||
color: "var(--button-primary-text)",
|
||||
}}
|
||||
>
|
||||
Управление организацией
|
||||
</button>
|
||||
<button
|
||||
onClick={logout}
|
||||
className="px-4 py-2 rounded-lg font-medium transition-all"
|
||||
style={{
|
||||
backgroundColor: "var(--button-danger)",
|
||||
color: "var(--button-danger-text)",
|
||||
}}
|
||||
>
|
||||
Выйти
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-center">
|
||||
<h1 className="text-2xl" style={{ color: "var(--text-primary)" }}>
|
||||
Добро пожаловать в IPS Manager
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user