From b21275bc9e774bccd0b238ce27cb68a00562a478 Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 8 Jan 2023 15:05:18 -0500 Subject: [PATCH] Fix minimal detail --- src/components/blog/HighlightedPosts.astro | 6 +- src/components/widgets/Features.astro | 86 +++++++++------------- src/pages/index.astro | 55 ++++++++++++-- 3 files changed, 86 insertions(+), 61 deletions(-) diff --git a/src/components/blog/HighlightedPosts.astro b/src/components/blog/HighlightedPosts.astro index a8de544..d95a56e 100644 --- a/src/components/blog/HighlightedPosts.astro +++ b/src/components/blog/HighlightedPosts.astro @@ -9,7 +9,7 @@ export interface Props { allPostsText?: string; allPostsLink?: string | URL; information?: string; - postsIds: string[]; + postIds: string[]; } const { @@ -17,10 +17,10 @@ const { allPostsText = 'View all posts', allPostsLink = getBlogPermalink(), information = await Astro.slots.render('information'), - postsIds = [], + postIds = [], } = Astro.props; -const posts = await findPostsByIds(postsIds); +const posts = await findPostsByIds(postIds); ---
diff --git a/src/components/widgets/Features.astro b/src/components/widgets/Features.astro index ab88f0f..461b7ee 100644 --- a/src/components/widgets/Features.astro +++ b/src/components/widgets/Features.astro @@ -1,61 +1,45 @@ --- import { Icon } from 'astro-icon'; -const items = [ - [ - { - title: 'Astro + Tailwind CSS Integration', - description: - 'A seamless integration between two great frameworks that offer high productivity, performance and versatility.', - icon: 'tabler:brand-tailwind', - }, - { - title: 'Ready-to-use Components', - description: - 'Widgets made with Tailwind CSS ready to be used in Marketing Websites, SaaS, Blogs, Personal Profiles, Small Business...', - icon: 'tabler:components', - }, - { - title: 'Best Practices', - description: - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis, quam nec venenatis lobortis, mi risus tempus nulla.', - icon: 'tabler:list-check', - }, - ], - [ - { - title: 'Excellent Page Speed', - description: - 'Having a good page speed impacts organic search ranking, improves user experience (UI/UX) and increase conversion rates.', - icon: 'tabler:rocket', - }, - { - title: 'Search Engine Optimization (SEO)', - description: - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis, quam nec venenatis lobortis, mi risus tempus nulla.', - icon: 'tabler:arrows-right-left', - }, - { - title: 'Open to new ideas and contributions', - description: - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis, quam nec venenatis lobortis, mi risus tempus nulla.', - icon: 'tabler:bulb', - }, - ], -]; +interface Item { + title: string; + description: string; + icon?: string; +} + +export interface Props { + title?: string; + subtitle?: string; + highlight?: string; + items: Array>; +} + +const { + title = await Astro.slots.render('title'), + subtitle = await Astro.slots.render('subtitle'), + highlight, + items = [], +} = Astro.props; ---
-

Features

-

- What you get with AstroWind -

-

- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque rem aperiam, eaque ipsa - quae. -

+ {highlight &&

} + { + title && ( +

+ ) + } + + { + subtitle && ( +

+ ) + }

{ @@ -70,7 +54,7 @@ const items = [

{title}

-

{description}

+

))} diff --git a/src/pages/index.astro b/src/pages/index.astro index 5df3e95..c5a777c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -21,7 +21,6 @@ const meta = { --- - - + @@ -53,15 +98,13 @@ const meta = { - - - -