diff --git a/src/components/SectionHeader.astro b/src/components/SectionHeader.astro new file mode 100644 index 0000000..59165b9 --- /dev/null +++ b/src/components/SectionHeader.astro @@ -0,0 +1,71 @@ +--- +interface Props { + title: string; + link?: { + href: string; + text: string; + }; +} + +const { title, link } = Astro.props; +--- + +
+

+ {title} +

+ {link && ( + + {link.text} related content + + + )} +
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index 0b32ece..c74f2a1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,7 @@ --- import Layout from '../layouts/Layout.astro'; import Icon from '../components/Icon.astro'; +import SectionHeader from '../components/SectionHeader.astro'; import testimonials from '../data/testimonials.json'; import { getPublishedBlogPosts } from '../lib/blog'; @@ -107,14 +108,10 @@ const duration2 = (row2.length / 2 * pixelsPerItem) / pixelsPerSecond;
-
-

- What People Say -

- View all community shoutouts - - -
+
{row1.map((t) => ( @@ -155,9 +152,7 @@ const duration2 = (row2.length / 2 * pixelsPerItem) / pixelsPerSecond;
-

- Quick Start -

+
@@ -619,9 +614,7 @@ const duration2 = (row2.length / 2 * pixelsPerItem) / pixelsPerSecond;
-

- What It Does -

+
@@ -658,9 +651,7 @@ const duration2 = (row2.length / 2 * pixelsPerItem) / pixelsPerSecond;
-

- Works With Everything -

+
{integrationPills.map((p) => ( @@ -678,9 +669,7 @@ const duration2 = (row2.length / 2 * pixelsPerItem) / pixelsPerSecond;
-

- Featured In -

+