From 6ba3a3418a082b915a83324b4dea0dce79da8e92 Mon Sep 17 00:00:00 2001 From: widgeter Date: Wed, 9 Aug 2023 11:49:25 +0200 Subject: [PATCH 1/2] Include title in some widgets --- src/components/widgets/Steps2.astro | 6 +++--- src/pages/about.astro | 7 +++++-- src/pages/landing/mobile-app.astro | 8 +++++--- src/pages/landing/startup.astro | 1 + 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/widgets/Steps2.astro b/src/components/widgets/Steps2.astro index 68e2981..9482ff1 100644 --- a/src/components/widgets/Steps2.astro +++ b/src/components/widgets/Steps2.astro @@ -28,14 +28,14 @@ const { tagline={tagline} callToAction={callToAction} classes={{ - container: 'text-left mb-4 md:mb-8', + container: 'text-center md:text-left mb-4 md:mb-8', title: 'mb-4 text-3xl lg:text-4xl font-bold font-heading', subtitle: 'mb-8 text-xl text-muted dark:text-slate-400', // ...((classes?.headline as {}) ?? {}), }} /> -
+
{ typeof callToAction === 'string' ? ( @@ -52,7 +52,7 @@ const { }
-
+
    { items && items.length diff --git a/src/pages/about.astro b/src/pages/about.astro index bc256e2..b75f2cd 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -30,6 +30,7 @@ const metadata = { Date: Wed, 9 Aug 2023 12:34:08 +0200 Subject: [PATCH 2/2] Add WidgetWrapper and Headline in Content widget --- src/components/widgets/Content.astro | 50 +++++++++++++--------------- src/pages/about.astro | 4 +-- src/pages/index.astro | 17 +++++++--- src/pages/landing/mobile-app.astro | 8 ++--- src/pages/landing/saas.astro | 38 ++++++++++++++------- 5 files changed, 67 insertions(+), 50 deletions(-) diff --git a/src/components/widgets/Content.astro b/src/components/widgets/Content.astro index 7417285..3da7f75 100644 --- a/src/components/widgets/Content.astro +++ b/src/components/widgets/Content.astro @@ -2,6 +2,8 @@ import { Icon } from 'astro-icon/components'; import { Picture } from '@astrojs/image/components'; import type { Content } from '~/types'; +import Headline from '../ui/Headline.astro'; +import WidgetWrapper from '../ui/WidgetWrapper.astro'; const { title = await Astro.slots.render('title'), @@ -12,34 +14,30 @@ const { image = await Astro.slots.render('image'), isReversed = false, isAfterContent = false, + + id, + isDark = false, + classes = {}, + bg = await Astro.slots.render('bg'), } = Astro.props as Content; --- -
    -
    - { - (title || subtitle || tagline) && ( -
    - {tagline && ( -

    - )} - {title && ( -

    - )} - - {subtitle && ( -

    - )} -

    - ) - } -
    + +
    @@ -88,4 +86,4 @@ const {
    -
    + diff --git a/src/pages/about.astro b/src/pages/about.astro index b75f2cd..67cc440 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -121,7 +121,7 @@ const metadata = { AstroWind is a free, customizable and production-ready template for Astro 2.0 + Tailwind CSS. - AstroWind: Production-ready. - Suitable for Startups, Small Business, SaaS websites, Professional Portfolios, Marketing websites, Landing Pages & Blogs. + AstroWind: Production-ready. + Suitable for Startups, Small Business, SaaS websites, Professional Portfolios, Marketing websites, Landing Pages + & Blogs. @@ -80,7 +81,7 @@ const metadata = { { title: 'Search Engine Optimization (SEO)', description: - 'SEO lies in its ability to enhance a website\'s visibility, driving organic traffic and enabling it to reach a wider audience.', + "SEO lies in its ability to enhance a website's visibility, driving organic traffic and enabling it to reach a wider audience.", icon: 'tabler:arrows-right-left', }, { @@ -124,6 +125,10 @@ const metadata = { Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te euismod tacimates. + + +
    +
    @@ -155,7 +160,11 @@ const metadata = { src: import('~/assets/images/vintage.jpg'), alt: 'Vintage Image', }} - /> + > + +
    +
    + diff --git a/src/pages/landing/mobile-app.astro b/src/pages/landing/mobile-app.astro index fdca4ff..5bd925c 100644 --- a/src/pages/landing/mobile-app.astro +++ b/src/pages/landing/mobile-app.astro @@ -60,7 +60,7 @@ const metadata = { - -
    -
    - + /> diff --git a/src/pages/landing/saas.astro b/src/pages/landing/saas.astro index a49f154..52c3329 100644 --- a/src/pages/landing/saas.astro +++ b/src/pages/landing/saas.astro @@ -20,12 +20,12 @@ const metadata = { {...headerData} actions={[ { - type: "ghost", + type: 'ghost', text: 'Login', href: '#', }, { - type: "primary", + type: 'primary', text: 'Sign Up', href: '#', }, @@ -48,11 +48,11 @@ const metadata = { AstroWind is a free, customizable and production-ready template for Astro 2.0 + + Tailwind CSS. - AstroWind: Production-ready. Suitable for Startups, - Small Business, Sass Websites, Professional Portfolios, Marketing Websites, Landing Pages & Blogs. + AstroWind: Production-ready. Suitable for + Startups, Small Business, Sass Websites, Professional Portfolios, Marketing Websites, Landing Pages & Blogs. @@ -84,14 +84,19 @@ const metadata = { >

    Ad vix debet docendi

    - Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te euismod - tacimates. + Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te + euismod tacimates. +
    + + +

    Ad vix debet docendi

    - Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te euismod - tacimates. + Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te + euismod tacimates. +
    + + +
    @@ -125,6 +134,7 @@ const metadata = {

    Ad vix debet docendi

    - Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te euismod - tacimates. + Ne dicta praesent ocurreret has, diam theophrastus at pro. Eos etiam regione ut, persius eripuit quo id. Sit te + euismod tacimates. +
    + + +