diff --git a/package.json b/package.json index 75dd634..ffa29fc 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "sonner": "^2.0.3", "tailwind-merge": "^3.2.0", "tailwindcss-animate": "^1.0.7", + "tailwindcss-animated": "^2.0.0", "tw-animate-css": "^1.2.6", "zod": "^3.24.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 430bf8d..9c7face 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,6 +95,9 @@ importers: tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@4.1.4) + tailwindcss-animated: + specifier: ^2.0.0 + version: 2.0.0(tailwindcss@4.1.4) tw-animate-css: specifier: ^1.2.6 version: 1.2.6 @@ -2538,6 +2541,11 @@ packages: peerDependencies: tailwindcss: '>=3.0.0 || insiders' + tailwindcss-animated@2.0.0: + resolution: {integrity: sha512-anNNGpxNgjydD8p1lcJjxxH+XbjW6KR8Xs29owTrbcf3tOJ6IRblpyFob43HBkfxFJJTAfFQqugoEG2b1EsR0A==} + peerDependencies: + tailwindcss: '>=3.1.0 || >=4.0.0' + tailwindcss@4.1.4: resolution: {integrity: sha512-1ZIUqtPITFbv/DxRmDr5/agPqJwF69d24m9qmM1939TJehgY539CtzeZRjbLt5G6fSy/7YqqYsfvoTEw9xUI2A==} @@ -5138,6 +5146,10 @@ snapshots: dependencies: tailwindcss: 4.1.4 + tailwindcss-animated@2.0.0(tailwindcss@4.1.4): + dependencies: + tailwindcss: 4.1.4 + tailwindcss@4.1.4: {} tapable@2.2.1: {} diff --git a/src/app/globals.css b/src/app/globals.css index 2090000..52b2213 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,5 +1,6 @@ @import 'tailwindcss'; -@import "tw-animate-css"; +@import 'tw-animate-css'; +@import 'tailwindcss-animated'; @custom-variant dark (&:is(.dark *)); @@ -49,7 +50,7 @@ --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.577 0.245 27.325) ; + --primary: oklch(0.577 0.245 27.325); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); @@ -120,49 +121,3 @@ @apply bg-background text-foreground; } } - -.tracking-in-expand { - animation: tracking-in-expand 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both; -} - -@keyframes tracking-in-expand { - 0% { - letter-spacing: -0.5em; - opacity: 0; - } - 40% { - opacity: 0.6; - } - 100% { - opacity: 1; - } -} - - -.heartbeat { - animation: heartbeat 1.5s ease-in-out infinite both; -} - -@keyframes heartbeat { - from { - transform: scale(1); - transform-origin: center center; - animation-timing-function: ease-out; - } - 10% { - transform: scale(0.91); - animation-timing-function: ease-in; - } - 17% { - transform: scale(0.98); - animation-timing-function: ease-out; - } - 33% { - transform: scale(0.87); - animation-timing-function: ease-in; - } - 45% { - transform: scale(1); - animation-timing-function: ease-out; - } -} \ No newline at end of file diff --git a/src/widgets/footer.tsx b/src/widgets/footer.tsx index a61091f..471c1fb 100644 --- a/src/widgets/footer.tsx +++ b/src/widgets/footer.tsx @@ -5,8 +5,6 @@ import Link from 'next/link'; import { useLanguage } from '@/shared/language'; -import '.././app/globals.css'; - export const Footer = () => { const { t } = useLanguage(); diff --git a/src/widgets/hero-section.tsx b/src/widgets/hero-section.tsx index 5b40ed2..c4f6fb7 100644 --- a/src/widgets/hero-section.tsx +++ b/src/widgets/hero-section.tsx @@ -2,11 +2,10 @@ import { MapPin } from 'lucide-react'; import Image from 'next/image'; -import '../../src/app/globals.css' +import Link from 'next/link'; import { useLanguage } from '@/shared/language'; import { Button } from '@/shared/shadcn-ui/button'; -import Link from 'next/link'; export const HeroSection = () => { const { t } = useLanguage(); @@ -25,7 +24,7 @@ export const HeroSection = () => {