diff --git a/src/components/Archive.astro b/src/components/Archive.astro new file mode 100644 index 0000000..e69de29 diff --git a/src/components/BurgerMenu.astro b/src/components/BurgerMenu.astro new file mode 100644 index 0000000..6c63b8b --- /dev/null +++ b/src/components/BurgerMenu.astro @@ -0,0 +1,453 @@ +--- +// BurgerMenu.astro +import { fetchMenu } from '@api/menu'; + +interface Props { + colorMenuId: number; + standardMenuId: number; + submenuId: number; +} + +const { colorMenuId, standardMenuId, submenuId } = Astro.props; + +// Получаем все меню +const colorMenu = await fetchMenu({ id: colorMenuId }); +const standardMenu = await fetchMenu({ id: standardMenuId }); +const submenu = await fetchMenu({ id: submenuId }); +--- + +
+ + + + + + + diff --git a/src/components/ContentGrid.astro b/src/components/ContentGrid.astro index 1d3f9ab..aaad6d4 100644 --- a/src/components/ContentGrid.astro +++ b/src/components/ContentGrid.astro @@ -58,12 +58,11 @@ function shouldBeLarge(index: number, columns: number): boolean { ---