Skip to content

Commit

Permalink
feat: updated boxyhq vs workos page (#380)
Browse files Browse the repository at this point in the history
* feat: updated boxyhq vs workos page

This adds the new BoxyHQ vs WorkOS page with a new design and slightly updated copy.

fix #363

* update meta description

* reconfigure structure

* reduce hero

* remove old page and fix reduced header

* table responsiveness
  • Loading branch information
Schalk Neethling authored Feb 8, 2024
1 parent 3d86938 commit 960d064
Show file tree
Hide file tree
Showing 17 changed files with 271 additions and 231 deletions.
16 changes: 9 additions & 7 deletions src/components/BaseCTAProductHighlight/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ const BaseCTAProductHighlight = ({
</header>
<div className="product-highlight-content">
{children}
<a
className={`button button-secondary-filled with-icon base-icon-pseudo icon-${icon}`}
href={ctaTargertURL}
target={targetNewWindow ? '_blank' : '_self'}
>
{ctaTargertCopy}
</a>
{ctaTargertURL && ctaTargertCopy && (
<a
className={`button button-secondary-filled with-icon base-icon-pseudo icon-${icon}`}
href={ctaTargertURL}
target={targetNewWindow ? '_blank' : '_self'}
>
{ctaTargertCopy}
</a>
)}
</div>
</section>
);
Expand Down
5 changes: 5 additions & 0 deletions src/components/heroes/BaseHero/base-hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
padding: var(--spacing-medium);
}

.hero.reduced p,
.girdle.hero.reduced p {
margin-bottom: 0;
}

@media only screen and (min-width: 63.9375rem) {
.hero,
.girdle.hero {
Expand Down
25 changes: 25 additions & 0 deletions src/components/heroes/HeroBoxyHQWorkOS/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import BaseHero from '../BaseHero';
import DemoCTA from '../../ctas/DemoCTA';
import SignupCTA from '../../ctas/SignupCTA';

const HeroBoxyHQWorkOS = () => {
return (
<BaseHero reduced={true} sectionId="boxyhq-workos" title="BoxyHQ vs WorkOS">
<p>
BoxyHQ is a flexible, secure, open-source alternative to WorkOS that
brings enterprise readiness capabilities to your SaaS applications. It
integrates with your tech stack no matter how bespoke.
</p>
<ul className="reset-list button-container">
<li>
<DemoCTA />
</li>
<li>
<SignupCTA campaign="homepage" />
</li>
</ul>
</BaseHero>
);
};

export default HeroBoxyHQWorkOS;
31 changes: 31 additions & 0 deletions src/css/atoms/feature-comparison-table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.feature-comparison-table {
display: table;
margin: 0 auto;
width: 90%;
}

@media only screen and (min-width: 63.9375rem) {
.feature-comparison-table {
padding: 0 var(--spacing-default);
width: 95%;
}
}

@media only screen and (min-width: 83.6875rem) {
.feature-comparison-table {
width: 100%;
}
}

.feature-comparison-table th {
text-align: left;
width: calc(100% / 3);
}

.feature-comparison-table .icon-check::before {
background-color: var(--color-teal-50);
}

.feature-comparison-table .icon-cross::before {
background-color: var(--color-red-50);
}
5 changes: 5 additions & 0 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ body {
font: 100% / var(--typography-body-line-height) var(--typography-body-family);
}

.marketing-site a:not(.button) {
color: var(--color-teal-70);
text-decoration: underline;
}

a:hover,
a:focus {
text-decoration: none;
Expand Down
224 changes: 0 additions & 224 deletions src/pages/boxyhq-vs-workos.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/pages/boxyhq-vs-workos/boxyhq-vs-workos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.girdle.compare-features {
margin: var(--spacing-wide) auto;
}

.compare-features-heading {
margin-bottom: var(--spacing-medium);
text-align: center;
}
Loading

0 comments on commit 960d064

Please sign in to comment.