Include title in some widgets

This commit is contained in:
widgeter
2023-08-09 11:49:25 +02:00
parent d7e372ed4b
commit 6ba3a3418a
4 changed files with 14 additions and 8 deletions

View File

@ -28,14 +28,14 @@ const {
tagline={tagline} tagline={tagline}
callToAction={callToAction} callToAction={callToAction}
classes={{ 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', title: 'mb-4 text-3xl lg:text-4xl font-bold font-heading',
subtitle: 'mb-8 text-xl text-muted dark:text-slate-400', subtitle: 'mb-8 text-xl text-muted dark:text-slate-400',
// ...((classes?.headline as {}) ?? {}), // ...((classes?.headline as {}) ?? {}),
}} }}
/> />
<div class="w-full"> <div class="w-full text-center md:text-left">
{ {
typeof callToAction === 'string' ? ( typeof callToAction === 'string' ? (
<Fragment set:html={callToAction} /> <Fragment set:html={callToAction} />
@ -52,7 +52,7 @@ const {
} }
</div> </div>
</div> </div>
<div class="w-full lg:w-1/2 px-8 sm:px-0"> <div class="w-full lg:w-1/2 px-0">
<ul class="space-y-10"> <ul class="space-y-10">
{ {
items && items.length items && items.length

View File

@ -30,6 +30,7 @@ const metadata = {
<!-- Stats Widget ****************** --> <!-- Stats Widget ****************** -->
<Stats <Stats
title="Statistics about us"
stats={[ stats={[
{ title: 'Offices', amount: '4' }, { title: 'Offices', amount: '4' },
{ title: 'Employees', amount: '248' }, { title: 'Employees', amount: '248' },
@ -174,7 +175,8 @@ const metadata = {
<!-- Features2 Widget ************** --> <!-- Features2 Widget ************** -->
<Features2 <Features2
tagline="Our locations" title="Our locations"
tagline="Find us"
columns={4} columns={4}
items={[ items={[
{ {
@ -199,7 +201,8 @@ const metadata = {
<!-- Features2 Widget ************** --> <!-- Features2 Widget ************** -->
<Features2 <Features2
tagline="Technical Support" title="Technical Support"
tagline="Contact us"
columns={2} columns={2}
items={[ items={[
{ {

View File

@ -60,8 +60,9 @@ const metadata = {
<!-- Features3 Widget ************** --> <!-- Features3 Widget ************** -->
<Features3 <Features3
subtitle="Tired of spending hours crafting documents from scratch? Our app offers an innovative solution. With a wide array of professionally designed templates, you can now create stunning documents in minutes. Save time, achieve a polished look, and customize templates to fit your style. Join thousands of satisfied users who've transformed their documents effortlessly. Explore our templates now and experience the difference." title="How to use our app"
tagline="Step-by-step guide on how to use our app" subtitle="Tired of spending hours crafting documents from scratch? Our app offers an innovative solution. With a wide array of professionally designed templates, you can now create stunning documents in minutes. Explore our templates now and experience the difference."
tagline="Step-by-step guide"
columns={2} columns={2}
items={[ items={[
{ {
@ -182,6 +183,7 @@ const metadata = {
<!-- Stats Widget ****************** --> <!-- Stats Widget ****************** -->
<Stats <Stats
title="Statistics of our app"
stats={[ stats={[
{ amount: '20K', icon: 'tabler:download' }, { amount: '20K', icon: 'tabler:download' },
{ amount: '18.5K', icon: 'tabler:users' }, { amount: '18.5K', icon: 'tabler:users' },
@ -192,7 +194,7 @@ const metadata = {
<!-- Testimonials Widget *********** --> <!-- Testimonials Widget *********** -->
<Testimonials <Testimonials
tagline="What our users say about us?" title="What our users say?"
testimonials={[ testimonials={[
{ {
testimonial: testimonial:

View File

@ -57,6 +57,7 @@ const metadata = {
<!-- Stats Widget ****************** --> <!-- Stats Widget ****************** -->
<Stats <Stats
title="Our statistics"
stats={[ stats={[
{ title: 'Templates', amount: '56' }, { title: 'Templates', amount: '56' },
{ title: 'Downloads', amount: '182K' }, { title: 'Downloads', amount: '182K' },