From 951f270726c17e25a9f8c2d2c863b3f9e4aa9c30 Mon Sep 17 00:00:00 2001 From: widgeter Date: Wed, 9 Aug 2023 12:34:08 +0200 Subject: [PATCH] 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. +
+ + +