From c63ee04783566695d779b7857685912eb8e5c871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyril=20=C5=A0ebek?= Date: Thu, 4 Apr 2024 21:33:47 +0200 Subject: [PATCH] sync --- src/components/About.astro | 13 ++++++++ src/components/AboutModule.astro | 29 ++++++++++++++++++ src/components/Hero.astro | 52 +++++++++++++++++++++----------- src/layouts/SinglePage.astro | 12 ++++++-- src/pages/[lang]/index.astro | 3 +- 5 files changed, 87 insertions(+), 22 deletions(-) create mode 100644 src/components/About.astro create mode 100644 src/components/AboutModule.astro diff --git a/src/components/About.astro b/src/components/About.astro new file mode 100644 index 0000000..54d867c --- /dev/null +++ b/src/components/About.astro @@ -0,0 +1,13 @@ +--- +import SinglePage from "../layouts/SinglePage.astro" + +import { dictionary } from "../i18n/dictionary"; +import AboutModule from "./AboutModule.astro"; +const { title, description } = dictionary[Astro.currentLocale]; +--- + +
+ + + + diff --git a/src/components/AboutModule.astro b/src/components/AboutModule.astro new file mode 100644 index 0000000..bc9fecf --- /dev/null +++ b/src/components/AboutModule.astro @@ -0,0 +1,29 @@ +--- +const { row, flipped, image, alt } = Astro.props; +--- + +
+
+ { + flipped ? ( + <> +
+ +
+
+ {alt} +
+ + ) : ( + <> +
+ {alt} +
+
+ +
+ + ) + } +
+
diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 1b47079..b25d628 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,23 +1,39 @@ --- -import SinglePage from "../layouts/SinglePage.astro" +import SinglePage from "../layouts/SinglePage.astro"; + +import { dictionary } from "../i18n/dictionary"; +const { title, description } = dictionary[Astro.currentLocale]; --- + -
-
- -
- -
- -
-

Lorem Ipsum

-

Lorem ipsum dolor, sit amet consectetur adipisicing elit. A suscipit facilis doloribus, dicta cupiditate sint nisi ad explicabo cumque dolorem quaerat hic aliquid. Iste quia aspernatur nam distinctio, animi dolorum?

-
- -
- - -
+ +
+ + +
+ +
+

+ Lorem Ipsum +

+

+ Lorem ipsum dolor, sit amet consectetur adipisicing elit. A suscipit + facilis doloribus, dicta cupiditate sint nisi ad explicabo cumque + dolorem quaerat hic aliquid. Iste quia aspernatur nam distinctio, + animi dolorum? +

+
+ +
+ +
-
diff --git a/src/layouts/SinglePage.astro b/src/layouts/SinglePage.astro index e5259c2..2021dba 100644 --- a/src/layouts/SinglePage.astro +++ b/src/layouts/SinglePage.astro @@ -1,3 +1,9 @@ -
- -
\ No newline at end of file +
+
+
+ +
+
+
diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index 6c1a13e..ffd06ee 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -1,6 +1,7 @@ --- import MainLayout from "../../layouts/MainLayout.astro"; import Hero from "../../components/Hero.astro"; +import About from "../../components/About.astro"; //@ts-ignore import { dictionary } from "../../i18n/dictionary"; @@ -14,6 +15,6 @@ export async function getStaticPaths() { --- - + \ No newline at end of file