refactor: extract sections

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-04 19:28:07 +03:00
parent 18001a918f
commit 56f6ce41c1
17 changed files with 139 additions and 116 deletions

View File

@@ -1,8 +1,17 @@
import type { ComponentProps } from 'react'
import { CategoryPage } from '../components/CategoryPage'
import { CategoryPageHero } from '../sections/CategoryPageHero'
import { Vendors } from '../sections/Vendors'
export type CategoryViewProps = Pick<ComponentProps<typeof CategoryPage>, 'title' | 'description' | 'vendors'>
export type CategoryViewProps = {
title?: string
description?: string
} & ComponentProps<typeof Vendors>
export function CategoryView({ title, description, vendors }: CategoryViewProps) {
return <CategoryPage title={title} description={description} vendors={vendors} />
return (
<div className="min-h-screen bg-gray-50">
<CategoryPageHero badge="Каталог решений" title={title} description={description} />
<Vendors vendors={vendors} />
</div>
)
}

View File

@@ -1,10 +1,10 @@
import { useEffect, useState } from 'react'
import { Hero } from '../components/Hero'
import { Services } from '../components/Services'
import { Solutions } from '../components/Solutions'
import { Cases } from '../components/Cases'
import { About } from '../components/About'
import { Contact } from '../components/Contact'
import { Hero } from '../sections/Hero'
import { Services } from '../sections/Services'
import { Solutions } from '../sections/Solutions'
import { Cases } from '../sections/Cases'
import { About } from '../sections/About'
import { Contact } from '../sections/Contact'
import { ContactModal } from '../components/ContactModal'
import { scrollToHashTarget } from '../lib/scrollToHash'