---
import type { Config, Sections } from '@/types/data';
import Head from '@/web/head/head.astro';

export interface Props extends Config {
  sections: Sections;
}

const { meta, i18n, sections } = Astro.props;
---

<!DOCTYPE html>
<html lang={i18n.locale.code} class="scroll-smooth">
  <Head meta={meta} sections={sections} />
  <body class="flex justify-center overflow-x-hidden bg-gray-50 dark:bg-gray-900 xl:relative xl:left-7">
    <slot />
  </body>
</html>
