[yoga-6] add pricePostfix and price description

This commit is contained in:
Roland Schneider
2025-05-22 08:12:09 +02:00
parent 9dc426bf64
commit 16b6107206
7 changed files with 51 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ export interface Props{
config: YogaPrice_Plain
}
export function PriceItemComponent({config: {header,option1,option2,price,icon, image,buttonText}} : Props){
export function PriceItemComponent({config: {header, description, option1,option2,price,pricePostfix, icon, image,buttonText}} : Props){
// there are some issues with the strapi generated types
const iconFile: StrapiFile = icon as StrapiFile;
const imageFile: StrapiFile = image as StrapiFile;
@@ -28,6 +28,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
</div>
<div className="pricing_plans_box_lower_portion">
<h3>{header}</h3>
<p className={'text-center'}>{description}</p>
<ul className="list-unstyled">
<li>
<i className="fa-solid fa-check" aria-hidden="true"></i>{option1}
@@ -38,7 +39,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
</ul>
<div className="pricing_plans_span_wrapper">
<span className="price">{price} FT</span>
<span className="per_month">/per month</span>
{ pricePostfix && <span className="per_month">{pricePostfix}</span> }
</div>
<div className="btn_wrapper">
<a className="enroll_now_btn text-decoration-none" href="/pricing.html">{buttonText}</a>