diff --git a/public/lovable-uploads/7149adf3-440a-491e-83c2-d964a3348cc9.png b/public/lovable-uploads/7149adf3-440a-491e-83c2-d964a3348cc9.png new file mode 100644 index 0000000..f763528 Binary files /dev/null and b/public/lovable-uploads/7149adf3-440a-491e-83c2-d964a3348cc9.png differ diff --git a/src/components/layout/ModernLayout.tsx b/src/components/layout/ModernLayout.tsx index 2e61f93..5281493 100644 --- a/src/components/layout/ModernLayout.tsx +++ b/src/components/layout/ModernLayout.tsx @@ -30,7 +30,11 @@ const Logo = () => { to="/" className="relative z-20 flex items-center space-x-2 py-1 text-sm font-normal text-black" > -
+ Finance Home Logo { to="/" className="relative z-20 flex items-center space-x-2 py-1 text-sm font-normal text-black" > -
+ Finance Home Logo ); }; @@ -127,8 +135,8 @@ export default function ModernLayout({ children }: ModernLayoutProps) { return (
- -
+ +
{open ? : }
@@ -154,7 +162,7 @@ export default function ModernLayout({ children }: ModernLayoutProps) {
-
+
{open && ( )} -
+
{configLinks.map((link, idx) => ( ))} diff --git a/src/components/ui/background-boxes.tsx b/src/components/ui/background-boxes.tsx new file mode 100644 index 0000000..4a77e63 --- /dev/null +++ b/src/components/ui/background-boxes.tsx @@ -0,0 +1,77 @@ + +"use client"; +import React from "react"; +import { motion } from "framer-motion"; +import { cn } from "@/lib/utils"; + +export const BoxesCore = ({ className, ...rest }: { className?: string }) => { + const rows = new Array(150).fill(1); + const cols = new Array(100).fill(1); + let colors = [ + "#3b82f6", + "#1d4ed8", + "#2563eb", + "#1e40af", + "#1e3a8a", + "#312e81", + "#4f46e5", + "#6366f1", + "#8b5cf6", + ]; + const getRandomColor = () => { + return colors[Math.floor(Math.random() * colors.length)]; + }; + + return ( +
+ {rows.map((_, i) => ( + + {cols.map((_, j) => ( + + {j % 2 === 0 && i % 2 === 0 ? ( + + + + ) : null} + + ))} + + ))} +
+ ); +}; + +export const Boxes = React.memo(BoxesCore); diff --git a/src/components/ui/modern-sidebar.tsx b/src/components/ui/modern-sidebar.tsx index 3283782..fe05347 100644 --- a/src/components/ui/modern-sidebar.tsx +++ b/src/components/ui/modern-sidebar.tsx @@ -70,11 +70,11 @@ export const ModernSidebar = ({ ); }; -export const SidebarBody = (props: React.ComponentProps) => { +export const SidebarBody = (props: React.ComponentProps<"div">) => { return ( <> - )} /> + ); }; @@ -83,7 +83,7 @@ export const DesktopSidebar = ({ className, children, ...props -}: React.ComponentProps) => { +}: React.ComponentProps<"div">) => { const { open, setOpen, animate } = useSidebar(); return ( <> diff --git a/src/pages/Auth.tsx b/src/pages/Auth.tsx index 3f192ca..3fa7593 100644 --- a/src/pages/Auth.tsx +++ b/src/pages/Auth.tsx @@ -3,6 +3,8 @@ import { useState, useEffect } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import { Boxes } from "@/components/ui/background-boxes"; +import { cn } from "@/lib/utils"; import LoginForm from '@/components/auth/LoginForm'; import RegisterForm from '@/components/auth/RegisterForm'; import SocialLoginButtons from '@/components/auth/SocialLoginButtons'; @@ -29,10 +31,21 @@ const Auth = () => { }, [location.state]); return ( -
- +
+
+ + + + - Finanças Pessoais +
+ Finance Home Logo + Finance Home +
Gerencie suas finanças de forma simples e eficiente