Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 65 additions & 39 deletions src/components/ProductFeatures.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const entries = Object.entries(plan);
<a href={value.link}>{value.title}</a>
</p>
)}
{Object.entries(value.properties).map(([_, value]: [string, any]) => (
{Object.values(value.properties).map((value: any) => (
<p>
<strong
set:html={marked.parseInline(
Expand All @@ -51,52 +51,78 @@ const entries = Object.entries(plan);
<p>{value.summary}</p>
)}
<ul>
<li>
<strong>Free: </strong>
<Fragment
set:html={marked.parseInline(value.free.toString())}
/>
</li>
{value.free && (
<li>
<strong>Free: </strong>
<Fragment
set:html={marked.parseInline(value.free.toString())}
/>
</li>
)}
{additional_descriptions && (
<>
{value.lite ||
(value.free && (
<li>
<strong>Lite: </strong>
{value.lite ? (
<Fragment
set:html={marked.parseInline(value.lite.toString())}
/>
) : (
<Fragment
set:html={marked.parseInline(value.free.toString())}
/>
)}
</li>
))}
</>
)}
{value.pro && (
<li>
<strong>Lite: </strong>
{value.lite ? (
<Fragment
set:html={marked.parseInline(value.lite.toString())}
/>
) : (
<Fragment
set:html={marked.parseInline(value.free.toString())}
/>
)}
<strong>Pro: </strong>
<Fragment
set:html={marked.parseInline(value.pro.toString())}
/>
</li>
)}
<li>
<strong>Pro: </strong>
<Fragment set:html={marked.parseInline(value.pro.toString())} />
</li>
{additional_descriptions && (
<>
{value.pro_plus ||
(value.pro && (
<li>
<strong>Pro Plus: </strong>
{value.pro_plus ? (
<Fragment
set:html={marked.parseInline(
value.pro_plus.toString(),
)}
/>
) : (
<Fragment
set:html={marked.parseInline(value.pro.toString())}
/>
)}
</li>
))}
</>
)}
{value.biz && (
<li>
<strong>Business: </strong>
<Fragment
set:html={marked.parseInline(value.biz.toString())}
/>
</li>
)}
{value.ent && (
<li>
<strong>Pro Plus: </strong>
{value.pro_plus ? (
<Fragment
set:html={marked.parseInline(value.pro_plus.toString())}
/>
) : (
<Fragment
set:html={marked.parseInline(value.pro.toString())}
/>
)}
<strong>Enterprise: </strong>
<Fragment
set:html={marked.parseInline(value.ent.toString())}
/>
</li>
)}
<li>
<strong>Business: </strong>
<Fragment set:html={marked.parseInline(value.biz.toString())} />
</li>
<li>
<strong>Enterprise: </strong>
<Fragment set:html={marked.parseInline(value.ent.toString())} />
</li>
</ul>
</p>
))}
Expand Down
Loading