diff --git a/src/sections/Pricing/comparison.js b/src/sections/Pricing/comparison.js index 5081e3181f40..ed3c86e3d2a7 100644 --- a/src/sections/Pricing/comparison.js +++ b/src/sections/Pricing/comparison.js @@ -7,37 +7,38 @@ import FeatureDetails from "../../components/PlanCard/collapsible-details"; const ComparisonWrapper = styled.div` -margin: 6rem auto; -@media (min-width: 2048px) { - margin: 15rem auto; -} + margin: 6rem auto; + @media (min-width: 2048px) { + margin: 15rem auto; + } h2, h5{ - text-align: center; -} + text-align: center; + } -.main { + .main { box-shadow: 0 0 24px ${props => props.theme.whiteOneFiveToBlackOneFive}; margin: 2rem auto; display: block; - overflow-x: scroll; + overflow-x: hidden; overflow-y:hidden; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); -} -.price-table { + } + .price-table { width: 100%; border-collapse: collapse; border: 0 none; -} -.price-table tr:not(:last-child) { + } + .price-table tr:not(:last-child) { border-bottom: 1px solid ${props => props.theme.whiteZeroThreeToBlackZeroThree}; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); -} -.price-table tr td { - border-left: 1px solid ${props => props.theme.whiteZeroFiveToBlackZeroFive}; + } + .price-table tr td { + border-left: 1px solid transparent; padding: 0rem 2rem; font-size: 1rem; vertical-align: middle; + line-height: normal; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); h5 { @@ -46,54 +47,57 @@ h2, h5{ padding-top: 1rem; font-size: 1.2rem; } -} -.price-table tr td:first-child { + } + .price-table tr td:first-child { border-left: 0 none; width: 100%; justify-content: flex-start; text-align: left; -} -.price-table tr td:not(:first-child) { + } + .price-table tr td:not(:first-child) { text-align: center; -} -.price-table tr:nth-child(even) { -} + @media (max-width: 768px) { + padding: 38px 28px; + } + } + .price-table tr:nth-child(even) { + } -.price-table tr:hover { + .price-table tr:hover { background-color: ${props => props.theme.secondaryLightColor}; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); -} -.price-table .fa-check { + } + .price-table .fa-check { color: #5336ca; -} -.price-table .fa-times { + } + .price-table .fa-times { color: #D8D6E3; -} + } -/* Highlighted column */ + /* Highlighted column */ -.price-table tr td:nth-child(3) { + .price-table tr td:nth-child(3) { background: rgba(0,179,159,0.1); padding: 8px 48px; -} + } -.price-table tr.price-table-head td { + .price-table tr.price-table-head td { font-size: 1.15rem; line-height: 1.5rem; font-weight: 600; padding: .5rem; text-transform: uppercase; -} -.price-table tr.price-table-head { + } + .price-table tr.price-table-head { background-color:${props => props.theme.secondaryColor}; color: #FFFFFF; -} -.price-table td.price { + } + .price-table td.price { padding: 16px 24px; font-size: 20px; font-weight: 600; -} -.price-table td.price .button { + } + .price-table td.price .button { padding: 1rem 1.5rem; margin-top: 16px; font-size: 12px; @@ -101,8 +105,8 @@ h2, h5{ text-transform: uppercase; display: inline-block; border-radius: 64px; -} -.price-table th.price-table-popular { + } + .price-table th.price-table-popular { border-top: 3px solid #00b39f; color:${props => props.theme.saffronColor}; background-color:rgba(0,179,159,0.1); @@ -110,132 +114,195 @@ h2, h5{ font-size: 12px; padding: 12px 48px; font-weight: 700; -} -.price-table .price-blank { + position: relative; + + &::after { + content: ''; + position: absolute; + top: -1px; + left: 0; + right: 0; + height: 3px; + background-color: #00b39f; + } + } + } + .price-table .price-blank { background-color: ${props => props.theme.secondaryDarkColor}; border: 0 none; transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); -} + } -.category { - display: inline-block; - margin: 0 1rem; -} + .category { + display: inline-block; + margin: 0 1rem; + } -.icon { + .icon { height: 4rem; width: auto; fill: #00b39f; display: inline-block; -} -.no-icon { - height: 1.5rem; - width: auto; - fill: red; -} -.yes-icon { - height: 1.5rem; - width: auto; - fill: #00b39f; -} -.toggle-btn { - margin-top: 1rem; -} -.details { - p { + } + .no-icon { + height: 1.5rem; + width: auto; + fill: red; + } + .yes-icon { + height: 1.5rem; + width: auto; + fill: #00b39f; + } + .toggle-btn { + margin-top: 1rem; + } + .details { + p { color: #7A848E; - margin-left: 1.1rem; + margin-left: 1.1rem; + } } -} -.category-icon { + .category-icon { -} -.categories { - display: flex; - width: 100%; - text-align: left; - align-items: center; - margin: 1rem auto; -} -.docs { + } + .categories { + display: flex; + width: 100%; + text-align: left; + align-items: center; + margin: 1rem auto; + } + .docs { width:1rem; height:1rem; -} - -td.feature { - padding: auto; - margin: 0px; -} -.feature-link-container { - display: flex; - align-items: center; - justify-content: space-between; -} - -.feature-name { - margin-right: 0.5rem; -} - -.feature-link { - color: #00b39f; - text-decoration: none; - font-size: 0.9rem; -} -.feature-link > svg { - &:hover { + } + + td.feature { + padding: auto; + margin: 0px; + } + .feature-link-container { + display: flex; + align-items: center; + justify-content: space-between; + } + + .feature-name { + margin-right: 0.5rem; + } + + .feature-link { + color: #00b39f; + text-decoration: none; + font-size: 0.9rem; + } + .feature-link > svg { + &:hover { opacity:.5; } } -.feature-link:hover { - text-decoration: underline; -} + .feature-link:hover { + text-decoration: underline; + } + + .comparison-header { + position: sticky; + top: 0; + background-color: ${(props) => props.theme.backgroundColor}; + z-index: 100; + padding: 2rem 0; + } + + .table-container { + max-height: 75vh; + overflow-y: auto; + &::-webkit-scrollbar { + display: none; + } + + -ms-overflow-style: none; + scrollbar-width: none; + + } + + .sticky-header { + position: sticky; + top: 0; + z-index: 99; + } + .price-table tr:nth-child(1) { + background-color: ${props => props.theme.secondaryLightColor}; + position: sticky; + top: 0; + } + + .price-table tr:nth-child(2) { + position: sticky; + top: 80px; + } `; const Comparison = () => { return ( -

Compare All Features

-
Choose a plan that’s right for you
+
+

Compare All Features

+
Choose a plan that's right for you
+
- - - - - - - - - - - - - - - - - - {details.map((x) => ( - <> - - - - {x.features.map((f) => ( - - - - - - +
+
Most popular
FreeTeam DesignerTeam OperatorEnterprise
- {x.category} -

{x.category}

{f.free}{f.teamDesigner}{f.teamOperator}{f.enterprise}
+ + + + + + + + + + + + + + + + + {details.map((x) => ( + <> + + - ))} - - ))} + {x.features.map((f) => ( + + + + + + + + ))} + + ))} - -
Most popular
FreeTeam DesignerTeam OperatorEnterprise
+ {x.category} +

{x.category}

+
+ + {f.free}{f.teamDesigner}{f.teamOperator}{f.enterprise}
+ + +