import { BannerEditor } from '@/components/content/banner-editor';
import { BlockPicker } from '@/components/content/block-picker';
import { FindProductEditor } from '@/components/content/find-product-editor';
import {
  AboutBlockEditor,
  CalculatorBlockEditor,
  InspireBlockEditor,
  ProductsBlockEditor,
  SimulatorBlockEditor,
} from '@/components/content/home-blocks-editor';
import { Stack, Text, Title } from '@mantine/core';

export default function HomePage() {
  return (
    <Stack gap="xl">
      <Stack gap="sm">
        <Text c="var(--mantine-color-orange-deep)" fw={700} size="xs" tt="uppercase">
          Home
        </Text>
        <Title order={1} size="h2">
          Página inicial
        </Title>
        <Text c="var(--mantine-color-muted)" maw={680} size="md">
          Escolha um bloco para editar.
        </Text>
      </Stack>
      <BlockPicker
        blocks={[
          { title: 'Bloco - Banner', editor: <BannerEditor /> },
          { title: 'Bloco - Encontre o produto', editor: <FindProductEditor /> },
          { title: 'Bloco - Sobre a Hidrotintas', editor: <AboutBlockEditor /> },
          { title: 'Bloco - Nossos produtos', editor: <ProductsBlockEditor /> },
          { title: 'Bloco - Simulador de ambientes', editor: <SimulatorBlockEditor /> },
          { title: 'Bloco - Calculadora de rendimento', editor: <CalculatorBlockEditor /> },
          { title: 'Bloco - Inspire-se', editor: <InspireBlockEditor /> },
        ]}
      />
    </Stack>
  );
}
