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/public/oriyo_bg.jpeg b/public/oriyo_bg.jpeg new file mode 100644 index 0000000..77ed27a Binary files /dev/null and b/public/oriyo_bg.jpeg differ 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/app/layout.tsx b/src/app/layout.tsx index 60d2721..6fcee9d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -22,7 +22,12 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - +
Сотрудников
Литров топлива в месяц
{t('home.about.description2')}
- {t('home.about.features.quality.description')} -
-- {t('home.about.features.equipment.description')} -
-- {t('home.about.features.staff.description')} -
-{t(description)}
+
diff --git a/src/widgets/cta-section.tsx b/src/widgets/cta-section.tsx
index 67df7e3..9faa576 100644
--- a/src/widgets/cta-section.tsx
+++ b/src/widgets/cta-section.tsx
@@ -1,14 +1,15 @@
'use client';
+import Link from 'next/link';
+
import { useLanguage } from '@/shared/language';
import { Button } from '@/shared/shadcn-ui/button';
-import Link from 'next/link';
export const CtaSection = () => {
const { t } = useLanguage();
return (
-
diff --git a/src/widgets/footer.tsx b/src/widgets/footer.tsx
index 773cd42..f09e22c 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/header/ui/index.tsx b/src/widgets/header/ui/index.tsx
index 9baef64..71197f0 100644
--- a/src/widgets/header/ui/index.tsx
+++ b/src/widgets/header/ui/index.tsx
@@ -5,7 +5,7 @@ import Link from 'next/link';
import { Logo } from '@/shared/assets/logo';
import { useLanguage } from '@/shared/language';
-import { LanguageSwitcher } from '@/shared/language/ui/language-switcher';
+// import { LanguageSwitcher } from '@/shared/language/ui/language-switcher';
import { Button } from '@/shared/shadcn-ui/button';
import { DesktopNav } from './desktop-nav';
@@ -19,10 +19,10 @@ export function Header() {