From 438702c360b0e8173d5d130afac14d7d8451cbfc Mon Sep 17 00:00:00 2001 From: BunyodL Date: Sun, 20 Apr 2025 19:09:00 +0500 Subject: [PATCH] refactor: divide page components to sections --- src/app/layout.tsx | 11 +- src/app/page.tsx | 692 +----------------- src/features/map/index.ts | 3 + .../map/ui}/gas-station-map.tsx | 0 src/widgets/about-section.tsx | 82 +++ src/widgets/charity-section.tsx | 60 ++ src/widgets/cta-section.tsx | 30 + src/widgets/footer.tsx | 154 ++++ src/widgets/header.tsx | 67 ++ src/widgets/hero-section.tsx | 45 ++ src/widgets/map-section.tsx | 34 + src/widgets/partners-section.tsx | 53 ++ src/widgets/promotions-section.tsx | 31 + .../components => widgets}/stats-section.tsx | 4 +- src/widgets/vacancies-section.tsx | 152 ++++ 15 files changed, 742 insertions(+), 676 deletions(-) create mode 100644 src/features/map/index.ts rename src/{shared/components => features/map/ui}/gas-station-map.tsx (100%) create mode 100644 src/widgets/about-section.tsx create mode 100644 src/widgets/charity-section.tsx create mode 100644 src/widgets/cta-section.tsx create mode 100644 src/widgets/footer.tsx create mode 100644 src/widgets/header.tsx create mode 100644 src/widgets/hero-section.tsx create mode 100644 src/widgets/map-section.tsx create mode 100644 src/widgets/partners-section.tsx create mode 100644 src/widgets/promotions-section.tsx rename src/{shared/components => widgets}/stats-section.tsx (95%) create mode 100644 src/widgets/vacancies-section.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 122bca7..2965486 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,8 +1,11 @@ import type { Metadata } from 'next'; -import { Geist, Geist_Mono, Inter } from 'next/font/google'; +import { Inter } from 'next/font/google'; import { Providers } from '@/shared/providers/providers'; +import { Footer } from '@/widgets/footer'; +import { Header } from '@/widgets/header'; + import './globals.css'; const inter = Inter({ subsets: ['latin', 'cyrillic'] }); @@ -21,7 +24,11 @@ export default function RootLayout({ return ( - {children} + +
+ {children} +