feat: set up basic project structure and initial styling

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.
This commit is contained in:
¨evandrodevbr¨ committed 2025-09-02 22:30:47 -03:00
1 parent ca9e70a53e
commit 90cf3c73ad
37 files changed
+3898 -118

No files matched your search

+71 -96
View File
@@ -1,103 +1,78 @@
import Image from "next/image";
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="font-sans grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20">
<main className="flex flex-col gap-[32px] row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="font-mono list-inside list-decimal text-sm/6 text-center sm:text-left">
<li className="mb-2 tracking-[-.01em]">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] font-mono font-semibold px-1 py-0.5 rounded">
app/page.tsx
</code>
.
</li>
<li className="tracking-[-.01em]">
Save and see your changes instantly.
</li>
</ol>
<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
<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>
<footer className="row-start-3 flex gap-[24px] flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
</div>
);
}