diff --git a/src/components/ImageSection.astro b/src/components/ImageSection.astro index 2e1a2fe..bba112f 100644 --- a/src/components/ImageSection.astro +++ b/src/components/ImageSection.astro @@ -1,24 +1,30 @@ --- -interface SectionProps { +interface Props { imgUrl: string; imgAlt: string; title: string; description: string; note: string; + centered?: boolean; } -const { imgUrl, imgAlt, title, description, note } = Astro.props; -import '../styles/components/ImageSection.scss' +const { + imgUrl, + imgAlt, + title, + description, + note, + centered = false, +} = Astro.props; +import "../styles/components/ImageSection.scss"; --- -
-
-

{title}

-
- {imgAlt} -

{description}

-
-
-

{note}

-
+
+

{title}

+
+ {imgAlt} +

{description}

+
+
+

{note}

diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index b0f70a3..648e64f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,8 +1,8 @@ --- import Footer from "@components/Footer.astro"; import NavBar from "@components/NavBar.astro"; -import '../styles/Layout.scss'; -import '../styles/GlobalLayout.css' +import "../styles/Layout.scss"; +import "../styles/GlobalLayout.css"; --- @@ -20,9 +20,7 @@ import '../styles/GlobalLayout.css' -
- -
+