Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to Pricing Compare Box #2561

Merged
merged 4 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions components/blocks/Table/table.template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const tableTemplate: Template = {
}),
},
fields: [
{ name: 'isReccomended', label: 'Is Reccomended?', type: 'boolean' },
{ name: 'columnHeader', label: 'Column Header', type: 'string' },
{ name: 'columnByLine', label: 'Column By-Line', type: 'string'},
{ name: 'columnHeaderLink', label: 'Column Link', type: 'string'},
Expand Down
14 changes: 7 additions & 7 deletions components/blocks/Table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const TableHeader = ({ data, scrollData }) => {
{/* Remaining Columns Titles */}
{data.columnItems?.map((headerItem, index) => (
<div key={index}>
<div className="text-center font-bold text-gray-700 underline decoration-dotted">
<div className={`text-center font-bold ${headerItem.isReccomended ? 'text-orange-600' : 'text-gray-700'} underline decoration-dotted`}>
<Link href={`${headerItem.columnHeaderLink}`}>
{headerItem.columnHeader}
{headerItem.columnHeader} {headerItem.isReccomended ? '⭐️' : ''}
</Link>
</div>
<div className="text-center font-light text-xs text-slate-400">
Expand Down Expand Up @@ -80,10 +80,10 @@ const TableBox = ({ data, index }) => {
{data.rowItems?.map((row, rowIndex) => (
<div
key={rowIndex}
className="grid grid-cols-[1fr,30px,repeat(5,minmax(150px,1fr))] h-[50px] px-6 hover:bg-cyan-400/5 bg-slate-50 snap-start group"
className="grid grid-cols-[1fr,30px,repeat(5,minmax(150px,1fr))] h-[50px] px-6 hover:bg-sky-50 bg-slate-50 snap-start group"
>
<div className="flex bg-slate-50 items-center sticky left-0 snap-start group-hover:bg-transparent">
<div className="px-4 py-2 whitespace-nowrap font-medium flex items-center">
<div className="flex bg-slate-50 items-center sticky left-0 snap-start group-hover:bg-sky-50">
<div className="pl-2 py-2 whitespace-nowrap font-medium flex items-center">
{row.rowHeader}
{row.rowDescription && (
<div
Expand All @@ -103,9 +103,9 @@ const TableBox = ({ data, index }) => {
</div>
</div>
{/* Sticky void column */}
<div className="sticky left-[175px] z-10">
<div className="sticky left-[179px] z-10">
{scrollData && scrollData.scrollLeft > 80 && (
<div className="w-[30px] h-full bg-gradient-to-r from-slate-50 via-slate-50/80 to-transparent"></div>
<div className="w-[30px] h-full bg-gradient-to-r from-slate-50 via-slate-50/80 to-transparent group-hover:from-sky-50 group-hover:via-sky-50/80"></div>
)}
</div>

Expand Down
41 changes: 21 additions & 20 deletions content/blocksPages/pricing.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@
"columnHeaderLink": "https://app.tina.io/register?origin=https://app.tina.io"
},
{
"isReccomended": true,
"columnHeader": "Business",
"columnByLine": "$299/month",
"columnHeaderLink": "https://app.tina.io/register?origin=https://app.tina.io"
Expand All @@ -356,7 +357,7 @@
"{\"columnHeader\":\"Team\",\"cellValue\":\"$290/year\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"$490/year\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"$2,990/year\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"custom\",\"isTicked\":false}"
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Custom\",\"isTicked\":false}"
]
},
{
Expand All @@ -367,18 +368,18 @@
"{\"columnHeader\":\"Team\",\"cellValue\":\"3\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"5\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"20\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"custom\",\"isTicked\":false}"
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Custom\",\"isTicked\":false}"
]
},
{
"rowHeader": "Additional users",
"rowHeader": "Additional Users",
"rowDescription": "Get more users on your plan",
"rowCells": [
"{\"columnHeader\":\"Free\",\"cellValue\":\"\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"$9/user\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"$15/user\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"$18/user\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"custom\",\"isTicked\":false}"
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Custom\",\"isTicked\":false}"
]
},
{
Expand All @@ -388,8 +389,8 @@
"{\"columnHeader\":\"Free\",\"cellValue\":\"2\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"10\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"20\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"unlimited\",\"isTicked\":false}"
"{\"columnHeader\":\"Business\",\"cellValue\":\"Unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Unlimited\",\"isTicked\":false}"
]
},
{
Expand All @@ -399,7 +400,7 @@
"{\"columnHeader\":\"Team\",\"cellValue\":\"2\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"2\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"3\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"custom\",\"isTicked\":false}"
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Custom\",\"isTicked\":false}"
]
},
{
Expand Down Expand Up @@ -452,9 +453,9 @@
"rowCells": [
"{\"columnHeader\":\"Free\",\"cellValue\":\"\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"coming soon\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"coming soon\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"coming soon\",\"isTicked\":false}"
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"Coming Soon\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"Coming Soon\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Coming Soon\",\"isTicked\":false}"
]
},
{
Expand Down Expand Up @@ -483,21 +484,21 @@
"rowHeader": "Documents",
"rowDescription": "Number of documents or content items",
"rowCells": [
"{\"columnHeader\":\"Free\",\"cellValue\":\"unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"unlimited\",\"isTicked\":false}"
"{\"columnHeader\":\"Free\",\"cellValue\":\"Unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"Unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"Unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"Unlimited\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"Unlimited\",\"isTicked\":false}"
]
},
{
"rowHeader": "Asset Size cap",
"rowCells": [
"{\"columnHeader\":\"Free\",\"cellValue\":\"100 MiB\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"100 MiB\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"100 MiB\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"100 MiB\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"100 MiB\",\"isTicked\":false}"
"{\"columnHeader\":\"Free\",\"cellValue\":\"100 MB\",\"isTicked\":false}",
"{\"columnHeader\":\"Team\",\"cellValue\":\"100 MB\",\"isTicked\":false}",
"{\"columnHeader\":\"Team Plus\",\"cellValue\":\"100 MB\",\"isTicked\":false}",
"{\"columnHeader\":\"Business\",\"cellValue\":\"100 MB\",\"isTicked\":false}",
"{\"columnHeader\":\"Enterprise\",\"cellValue\":\"100 MB\",\"isTicked\":false}"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.