From 219d22d312cd7041c34b7755e6454757b4480f09 Mon Sep 17 00:00:00 2001 From: widgeter Date: Tue, 8 Aug 2023 12:33:13 +0200 Subject: [PATCH 1/3] Include some widgets in about-us page --- src/components/widgets/Hero.astro | 10 -- src/components/widgets/Steps2.astro | 2 +- src/pages/about.astro | 187 +++++++++++++++++++++++++++- src/types.d.ts | 3 +- 4 files changed, 188 insertions(+), 14 deletions(-) diff --git a/src/components/widgets/Hero.astro b/src/components/widgets/Hero.astro index c1426fdeb5..52f47a4790 100644 --- a/src/components/widgets/Hero.astro +++ b/src/components/widgets/Hero.astro @@ -1,16 +1,6 @@ --- import { Icon } from 'astro-icon/components'; import { Picture } from '@astrojs/image/components'; -import { CallToAction } from '~/types'; - -export interface Props { - title?: string; - subtitle?: string; - content?: string; - callToAction?: string | CallToAction; - callToAction2?: string | CallToAction; - image?: string | any; // TODO: find HTMLElementProps -} const { title = await Astro.slots.render('title'), diff --git a/src/components/widgets/Steps2.astro b/src/components/widgets/Steps2.astro index f930e710df..ae1360000b 100644 --- a/src/components/widgets/Steps2.astro +++ b/src/components/widgets/Steps2.astro @@ -1,6 +1,6 @@ --- import { Icon } from 'astro-icon/components'; -import type { CallToAction } from '~/components/widgets/CallToAction.astro'; +import { CallToAction } from '~/types'; interface Item { title: string; diff --git a/src/pages/about.astro b/src/pages/about.astro index 6cbaa35c66..003ffa1cc4 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -1,11 +1,194 @@ --- +import Features2 from '~/components/widgets/Features2.astro'; +import Features3 from '~/components/widgets/Features3.astro'; +import Hero from '~/components/widgets/Hero.astro'; +import Stats from '~/components/widgets/Stats.astro'; +import Steps2 from '~/components/widgets/Steps2.astro'; import Layout from '~/layouts/PageLayout.astro'; const metadata = { - title: "About us", + title: 'About us', }; --- - About us + + + + + Elevate your online presence with our
+ Beautiful Website Templates +
+ + + Donec efficitur, ipsum quis congue luctus, mauris magna convallis mauris, eu auctor nisi lectus non augue. Donec + quis lorem non massa vulputate efficitur ac at turpis. Sed tincidunt ex a nunc convallis, et lobortis nisi tempus. + Suspendisse vitae nisi eget tortor luctus maximus sed non lectus. + +
+ + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/types.d.ts b/src/types.d.ts index 6361d53e3b..da9df3b1c6 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -178,7 +178,8 @@ export interface Collapse { // WIDGETS export interface Hero extends Headline, Widget { - image?: Image; + content?: string; + image?: string | unknown; callToAction1?: CallToAction; callToAction2?: CallToAction; isReversed?: boolean; From 0fb8de34cbea6bcbfb95bd5b47b664db4f832ca0 Mon Sep 17 00:00:00 2001 From: widgeter Date: Tue, 8 Aug 2023 13:09:35 +0200 Subject: [PATCH 2/3] Modify Features3 when they are consecutive --- src/components/widgets/Features3.astro | 13 +++++++++++-- src/pages/about.astro | 2 ++ src/types.d.ts | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/Features3.astro b/src/components/widgets/Features3.astro index ea2575ee6f..ab8fd5911c 100644 --- a/src/components/widgets/Features3.astro +++ b/src/components/widgets/Features3.astro @@ -12,6 +12,8 @@ const { image, items = [], columns, + isBeforeContent, + isAfterContent, id, isDark = false, @@ -20,7 +22,14 @@ const { } = Astro.props as Features; --- - +