This commit initializes the project with a basic Next.js setup, including: - Integration of `tailwindcss` and `tw-animate-css` for styling. - Definition of a comprehensive color palette using CSS variables for both light and dark themes, supporting a theming system. - Implementation of a custom `aurora` keyframe animation. - Configuration of global CSS styles for `border` and `body` elements. - Setup of `next.config.ts` with image optimization, performance enhancements, and security headers (X-Frame-Options, X-Content-Type-Options, Referrer-Policy). - Update of `package.json` to include new dependencies for UI components (`class-variance-authority`, `clsx`, `lucide-react`, `motion`, `tailwind-merge`, `tailwindcss-animate`) and development tools (`@biomejs/biome`, `@tailwindcss/postcss`, `tw-animate-css`). - Refinement of `app/layout.tsx` to include comprehensive metadata for SEO (title, description, keywords, authors, Open Graph, Twitter cards, robots), preconnect/dns-prefetch links for external resources, favicon, manifest, and mobile app meta tags. - Restructuring of `app/page.tsx` to use dynamic imports for various sections (Hero, About, Skills, Experience, Projects, Contact, WorkModalities) to improve performance, and integration of `Squares` component for background effects. This foundational commit prepares the application for further development by establishing a robust and performant base.
79 lines
2.2 KiB
TypeScript
79 lines
2.2 KiB
TypeScript
import dynamic from "next/dynamic";
|
|
import { Header } from "./components/Header";
|
|
import { Squares } from "@/components/magicui/squares";
|
|
import { WorkModalities } from "./components/WorkModalities"; // Importar WorkModalities
|
|
|
|
// Lazy load components for better performance
|
|
const Hero = dynamic(() => import("./components/Hero"), {
|
|
loading: () => (
|
|
<div className="min-h-screen flex items-center justify-center">
|
|
<div className="animate-pulse text-white">Carregando...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
const About = dynamic(() => import("./components/About"), {
|
|
loading: () => (
|
|
<div className="py-20 px-4 text-center">
|
|
<div className="animate-pulse text-white">Carregando seção...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
const Skills = dynamic(() => import("./components/Skills"), {
|
|
loading: () => (
|
|
<div className="py-20 px-4 text-center">
|
|
<div className="animate-pulse text-white">Carregando habilidades...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
const Experience = dynamic(() => import("./components/Experience"), {
|
|
loading: () => (
|
|
<div className="py-20 px-4 text-center">
|
|
<div className="animate-pulse text-white">Carregando experiência...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
const Projects = dynamic(() => import("./components/Projects"), {
|
|
loading: () => (
|
|
<div className="py-20 px-4 text-center">
|
|
<div className="animate-pulse text-white">Carregando projetos...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
const Contact = dynamic(() => import("./components/Contact"), {
|
|
loading: () => (
|
|
<div className="py-20 px-4 text-center">
|
|
<div className="animate-pulse text-white">Carregando contato...</div>
|
|
</div>
|
|
),
|
|
});
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div className="min-h-screen bg-black text-white relative">
|
|
<Squares
|
|
direction="diagonal"
|
|
speed={0.5}
|
|
borderColor="#374151"
|
|
hoverFillColor="#1e40af"
|
|
squareSize={30}
|
|
className="absolute inset-0 opacity-30"
|
|
/>
|
|
<Header />
|
|
<main className="relative z-10">
|
|
<Hero />
|
|
<About />
|
|
<Skills />
|
|
<Experience />
|
|
<Projects />
|
|
<WorkModalities /> {/* Adicionar WorkModalities aqui */}
|
|
<Contact />
|
|
</main>
|
|
</div>
|
|
);
|
|
}
|