From ee3cd96573fddebdd138218c7bc70ead404dfbd2 Mon Sep 17 00:00:00 2001 From: Jewgeni Lewash Date: Sat, 6 Apr 2024 22:07:26 +0200 Subject: [PATCH] refactor(index): add featuresection component --- src/components/FeatureSection.astro | 29 ++++++ src/pages/index.astro | 152 ++++++++-------------------- 2 files changed, 73 insertions(+), 108 deletions(-) create mode 100644 src/components/FeatureSection.astro diff --git a/src/components/FeatureSection.astro b/src/components/FeatureSection.astro new file mode 100644 index 0000000..7492e8c --- /dev/null +++ b/src/components/FeatureSection.astro @@ -0,0 +1,29 @@ +--- +import { Image } from 'astro:assets'; + +interface Props { + title: string; + description: string; + image: ImageMetadata; + isReversed?: boolean; +} + +const { title, description, image, isReversed = false } = Astro.props; +--- + +
+
+
+ {title} +
+
+

+ {title} +

+

+ {description} +

+
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro index f33d2a4..74bd9d7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,14 +1,47 @@ --- -import { Image } from 'astro:assets'; import { Icon } from 'astro-icon/components'; import BaseLayout from '@/layouts/BaseLayout.astro'; import Heading from '@/components/ui/Heading.astro'; +import FeatureSection from '@/components/FeatureSection.astro'; import index1 from '@/assets/images/index-1.png'; import index2 from '@/assets/images/index-2.png'; import index3 from '@/assets/images/index-3.png'; import index4 from '@/assets/images/index-4.png'; import index5 from '@/assets/images/index-5.png'; + +const features = [ + { + title: 'Revolutionize Website Development', + description: + 'Astro Deploy revolutionizes development with Astro.js 4 and Docker for scalable solutions.', + image: index1, + }, + { + title: 'Accelerate Website Development with Astro Deploy', + description: + 'Astro Deploy expedites website development with pre-configured Astro.js boilerplate, Docker, and Tailwind CSS, enabling businesses to launch their online presence swiftly and engage customers effectively.', + image: index2, + }, + { + title: 'Docker Integration', + description: + 'The Docker integration ensures smooth deployment and scalability of your Astro.js 4 project. Embrace containerization technology to streamline your development process and enhance efficiency.', + image: index3, + }, + { + title: 'Tailwind CSS Styling', + description: + 'Utilizing the power of Tailwind CSS, crafting visually appealing designs that are responsive and user-friendly. Bring your vision to life with customizable styles that reflect your brand identity.', + image: index4, + }, + { + title: 'MDX Blog Setup', + description: + "Enhance your website's content management capabilities with MDX Blog integration. Set up an MDX-powered blog for seamless content creation and management, empowering you to engage your audience effectively.", + image: index5, + }, +]; --- -
-
-
- Abstract Tech -
-
-

- Revolutionize Website Development -

-

- Astro Deploy revolutionizes development with Astro.js 4 and Docker for scalable solutions. -

-
-
-
- -
-
-
- Abstract Tech -
-
-

- Accelerate Website Development with Astro Deploy -

-

- Astro Deploy expedites website development with pre-configured Astro.js boilerplate, - Docker, and Tailwind CSS, enabling businesses to launch their online presence swiftly and - engage customers effectively. -

-
-
-
- -
-
-
- Abstract Tech -
-
-

- Docker Integration -

-

- The Docker integration ensures smooth deployment and scalability of your Astro.js 4 - project. Embrace containerization technology to streamline your development process and - enhance efficiency. -

-
-
-
- -
-
-
- Abstract Tech -
-
-

- Tailwind CSS Styling -

-

- Utilizing the power of Tailwind CSS, crafting visually appealing designs that are - responsive and user-friendly. Bring your vision to life with customizable styles that - reflect your brand identity. -

-
-
-
- -
-
-
- Abstract Tech -
-
-

- MDX Blog Setup -

-

- Enhance your website's content management capabilities with MDX Blog integration. Set up - an MDX-powered blog for seamless content creation and management, empowering you to engage - your audience effectively. -

-
-
-
+ { + features.map((feature, index) => ( + + )) + }