Skip to content

Commit

Permalink
Merge pull request #313 from celestiaorg/feature/new-home
Browse files Browse the repository at this point in the history
feat: add plausible events to homepage buttons
  • Loading branch information
alex-beckett authored Dec 13, 2023
2 parents 4670f9a + a75dd6f commit 2c042b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sections/two-column-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default class TwoColumnH2 extends React.Component {
<h2 className={"with-decor mt-4 mt-lg-0"}>{this.props.title}</h2>
<div className='paragraph' dangerouslySetInnerHTML={{ __html: this.props.text }} />
<div className={"flex mt-4"}>
<Link to={this.props.buttonPrimaryUrl} target={"_blank"} className={"button button-simple me-4"}>
<Link to={this.props.buttonPrimaryUrl} target={"_blank"} className={`button button-simple me-4 ${this.props.buttonPrimaryClass}`}>
{this.props.buttonPrimaryTitle}
</Link>
{this.props.buttonSecondaryTitle && (
<Link to={this.props.buttonSecondaryUrl} target={"_blank"} className={"button button-white"}>
<Link to={this.props.buttonSecondaryUrl} target={"_blank"} className={`button button-white ${this.props.buttonSecondaryClass}`}>
{this.props.buttonSecondaryTitle}
</Link>
)}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const IndexPage = () => {
image={"graph-scale.png"}
buttonPrimaryTitle={"Learn Celestia"}
buttonPrimaryUrl={"/what-is-celestia/"}
buttonPrimaryClass={"plausible-event-name=Learn_Celestia_Button--Home_Page-Access_Abundance_Section"}
/>
<TwoColumnH2
direction={"rtl"}
Expand All @@ -73,8 +74,10 @@ const IndexPage = () => {
image={"graph-ecosystem.png"}
buttonPrimaryTitle={"Build modular"}
buttonPrimaryUrl={"/developer-portal/"}
buttonPrimaryClass={"plausible-event-name=Build_Modular_Button--Home_Page-Build_Whatever_Section"}
buttonSecondaryTitle={"Deploy"}
buttonSecondaryUrl={"/developer-portal#deploy"}
buttonSecondaryClass={"plausible-event-name=Deploy_Button--Home_Page-Build_Whatever_Section"}
/>

<section id='explore-celestia' className='explore-celestia'>
Expand Down

0 comments on commit 2c042b4

Please sign in to comment.