diff --git a/src/components/CenteredPanel.astro b/src/components/CenteredPanel.astro new file mode 100644 index 0000000..a400954 --- /dev/null +++ b/src/components/CenteredPanel.astro @@ -0,0 +1,13 @@ +--- +interface Props { + text: string +} + +const { text } = Astro.props +--- + +
+

+ {text} +

+
diff --git a/src/components/SectionTitle.astro b/src/components/SectionTitle.astro new file mode 100644 index 0000000..d6c3fe1 --- /dev/null +++ b/src/components/SectionTitle.astro @@ -0,0 +1,9 @@ +--- +interface Props { + title: string +} + +const { title } = Astro.props +--- + +

{title}

diff --git a/src/components/home/SectionMain.astro b/src/components/home/SectionMain.astro index d2104d8..c63a121 100644 --- a/src/components/home/SectionMain.astro +++ b/src/components/home/SectionMain.astro @@ -1,5 +1,6 @@ --- import { texts } from '../../i18n/home' +import CenteredPanel from '../CenteredPanel.astro' interface Props { lang: string @@ -9,8 +10,8 @@ const { lang } = Astro.props const t = texts[lang as keyof typeof texts] --- -
-
+
+

@@ -32,13 +33,7 @@ const t = texts[lang as keyof typeof texts]

-
-

-

- {t['index.message']} -

-

-
+