Skip to content

Commit

Permalink
Merge pull request #283 from celestiaorg/feature/plausible-classes
Browse files Browse the repository at this point in the history
rename plausible events
  • Loading branch information
alex-beckett authored Oct 25, 2023
2 parents 7fcf10e + 01e5cbc commit 38dee11
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const navigation = [
url: "/what-is-celestia/",
icon: "menu/logo.svg",
type: 'internal',
class: 'plausible-event-name=What+Is+Celestia'
class: 'plausible-event-name=What_Is_Celestia_Button--Header'
},
{
text: "Dive into modular",
subtext: "Dive deep",
url: "/learn/",
icon: "menu/books.svg",
type: 'internal',
class: 'plausible-event-name=Dive+into+Modular'
class: 'plausible-event-name=Dive_into_Modular_Button--Header'
},
{
text: "FAQ",
Expand Down Expand Up @@ -53,15 +53,15 @@ const navigation = [
url: "/developer-portal/",
icon: "menu/devnet.svg",
type: 'internal',
class: 'plausible-event-name=Dev+Portal'
class: 'plausible-event-name=Dev_Portal_Button--Header'
},
{
text: "Read the docs",
subtext: "Celestia Documentation",
url: "https://docs.celestia.org/",
icon: "menu/documentation.svg",
type: 'external',
class: 'plausible-event-name=Read+The+Docs'
class: 'plausible-event-name=Read_The_Docs_Button--Header'
},
{
text: "View the GitHub repos",
Expand Down
4 changes: 2 additions & 2 deletions src/datas/home/hero-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export const heroData = {
buttons:[
{
text: 'Build modular',
class: 'simple plausible-event-name=Build+Modular',
class: 'simple plausible-event-name=Build_Modular_Button--Homepage-Hero',
type: 'internal',
url: '/developer-portal/'
},
{
text: 'Explore',
class: 'white plausible-event-name=Explore',
class: 'white plausible-event-name=Explore_Button--Homepage-Hero',
type: 'anchor',
url: '/#explore-celestia'
}
Expand Down
4 changes: 2 additions & 2 deletions src/datas/what-is-celestia/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const FooterBoxes2 = [
href: '/developer-portal/',
type: 'internal',
id: 'build',
class: 'plausible-event-name=Find+Your+Best+Option'
class: 'plausible-event-name=Build_Your_App_Button--What_Is_Celestia_Page-Start_Using_Section'
}
},
{
Expand All @@ -18,7 +18,7 @@ export const FooterBoxes2 = [
href: '/#explore-celestia',
type: 'anchor',
id: 'explore',
class: 'plausible-event-name=Explore+what+you+can+do'
class: 'plausible-event-name=Explore_What_You_Can_Do_Button--What_Is_Celestia_Page-Start_Using_Section'
}
}
]
6 changes: 3 additions & 3 deletions src/pages/developer-portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DevPortal = () => {
<div className={"row"}>
<div className={"col-auto"}>
<div className={"text"} dangerouslySetInnerHTML={{ __html: heroData.text }} />
<AnchorLink to={`/developer-portal#${heroData.buttons[0].url}`} className={'plausible-event-name=Build+Modular+Developer button button-'+heroData.buttons[0].class} stripHash>{heroData.buttons[0].text}</AnchorLink>
<AnchorLink to={`/developer-portal#${heroData.buttons[0].url}`} className={'plausible-event-name=Build_Modular_Button--Developer_Portal_Page-Hero_section button button-'+heroData.buttons[0].class} stripHash>{heroData.buttons[0].text}</AnchorLink>
<a href={`${heroData.buttons[1].url}`} className={'button button-'+heroData.buttons[1].class} target={"_blank"} rel={"noreferrer"}>{heroData.buttons[1].text}</a>
</div>
</div>
Expand Down Expand Up @@ -72,7 +72,7 @@ const DevPortal = () => {
key={item.id}
content={item}
variant={"vertical"}
btnClass={'plausible-event-name=Framework+Click'}
btnClass={'plausible-event-name=Framework_Click--Developer_Portal_Page-Framework_section'}
/>
);
})}
Expand All @@ -97,7 +97,7 @@ const DevPortal = () => {
key={item.id}
content={item}
variant={"horizontal"}
btnClass={'plausible-event-name=Node+API'}
btnClass={'plausible-event-name=Node_API--Developer_Portal_Page-Connect_section'}
/>
);
})}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const IndexPage = () => {
</div>
<div className='three-col-grid mt-4 mt-lg-5'>
<div className='card-box'>
<Link className="plausible-event-name=Explore+The+Ecosystem link-box" to={exploreCelestia[0].link}>
<Link className="plausible-event-name=Explore_The_Ecosystem--Homepage-Explore_Celestia_Section link-box" to={exploreCelestia[0].link}>
<div className='card-item'>
<svg className='card-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 63' fill='none'>
<g clipPath='url(#clip0_334_4082)'>
Expand Down Expand Up @@ -92,7 +92,7 @@ const IndexPage = () => {
</Link>
</div>
<div className='card-box'>
<Link className="plausible-event-name=Use+Tia link-box" to={exploreCelestia[1].link}>
<Link className="plausible-event-name=Use_Tia--Homepage-Explore_Celestia_Section link-box" to={exploreCelestia[1].link}>
<div className='card-item'>
<svg className='card-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 63' fill='none'>
<g clipPath='url(#clip0_334_4082)'>
Expand Down Expand Up @@ -126,7 +126,7 @@ const IndexPage = () => {
</Link>
</div>
<div className='card-box span-full'>
<Link className="plausible-event-name=Run+A+Light+Node link-box" to={exploreCelestia[2].link}>
<Link className="plausible-event-name=Run_A_Light_Node--Homepage-Explore_Celestia_Section link-box" to={exploreCelestia[2].link}>
<div className='card-item'>
<svg className='card-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 63' fill='none'>
<g clipPath='url(#clip0_334_4082)'>
Expand Down

0 comments on commit 38dee11

Please sign in to comment.