[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>

View File

@@ -14,6 +14,8 @@ export interface YogaPrice {
price?: number;
icon?: { data: Media };
image?: { data: Media };
pricePostfix?: string;
description?: string;
};
}
export interface YogaPrice_Plain {
@@ -25,6 +27,8 @@ export interface YogaPrice_Plain {
price?: number;
icon?: Media_Plain;
image?: Media_Plain;
pricePostfix?: string;
description?: string;
}
export interface YogaPrice_NoRelations {
@@ -36,6 +40,8 @@ export interface YogaPrice_NoRelations {
price?: number;
icon?: number;
image?: number;
pricePostfix?: string;
description?: string;
}
export interface YogaPrice_AdminPanelLifeCycle {
@@ -47,4 +53,6 @@ export interface YogaPrice_AdminPanelLifeCycle {
price?: number;
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
pricePostfix?: string;
description?: string;
}

View File

@@ -13,6 +13,7 @@ export interface YogaSingleService {
image?: { data: Media };
imageAlt?: string;
name?: string;
article?: string;
locale: string;
localizations?: { data: YogaSingleService[] };
};
@@ -25,6 +26,7 @@ export interface YogaSingleService_Plain {
image?: Media_Plain;
imageAlt?: string;
name?: string;
article?: string;
locale: string;
localizations?: YogaSingleService_Plain[];
}
@@ -37,6 +39,7 @@ export interface YogaSingleService_NoRelations {
image?: number;
imageAlt?: string;
name?: string;
article?: string;
locale: string;
localizations?: YogaSingleService[];
}
@@ -49,6 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
image?: AdminPanelRelationPropertyModification<Media_Plain>;
imageAlt?: string;
name?: string;
article?: string;
locale: string;
localizations?: YogaSingleService[];
}