Skip to content

Commit

Permalink
Merge pull request #61 from dekart-xyz/vladi-improve-carto-landing
Browse files Browse the repository at this point in the history
Add URL parameter handling for campaign tracking and update content i…
  • Loading branch information
delfrrr authored Dec 3, 2024
2 parents 725e51f + acbd801 commit afa6888
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 34 deletions.
33 changes: 33 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,36 @@ clipboard.on('error', function(e) {
console.error('Trigger:', e.trigger);
});
/* eslint-enable */

// code which reads ?ref=ads-c-* or ?utm_campaign= from entry URL and adds utm_campaign= to all all links on the page
(function() {
var urlParams = new URLSearchParams(window.location.search);
var ref = urlParams.get('ref');
var utm_campaign = urlParams.get('utm_campaign');
if (ref || utm_campaign) {
var links = document.querySelectorAll('a');
links.forEach(function(link) {
var href = link.getAttribute('href');
if (href) {
if (ref) {
if (href.indexOf('?') === -1) {
href += '?';
} else {
href += '&';
}
href += 'utm_campaign=' + ref;
}
if (utm_campaign) {
if (href.indexOf('?') === -1) {
href += '?';
} else {
href += '&';
}
href += 'utm_campaign=' + utm_campaign;
}
link.setAttribute('href', href);
}
});
}
}
)();
4 changes: 0 additions & 4 deletions assets/scss/common/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,3 @@ body {
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
}

.btn {
margin: 8px;
}
46 changes: 19 additions & 27 deletions content/carto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,43 @@ type: "html-content"

<article class="pb-5">
<div class="container pt-5">
<h1 class="cloud-title display-2 text-center mt-0 mb-4"><span>Maps for your Data Team</span></h1>
<h1 class="cloud-title display-2 text-center mt-0 mb-4"><span>Light alternative to CARTO</span></h1>
<div class="lead text-center mb-4 py-1 row justify-content-center">
<div class="text-center lead col-lg-10">Dekart is <mark>lightweight alternative to CARTO</mark> for BigQuery and Snowflake users. You will create maps instantly with SQL without moving data and share your insights with immersive up-to-date maps.</div>
<div class="text-center lead col-lg-10">Dekart is light and fast map analytics for <b>BigQuery</b> and <b>Snowflake</b>. <br/> Your data team will create up-to-date maps in seconds with SQL without moving data.</div>
</div>
</div>
<div class="text-center">
<p><a class="btn btn-primary btn-lg" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-1" role="button">Sign up for free</a></p>
<p><a href="https://calendly.com/vladi-dekart/30min" target="_blank">Book a call with a team</a></p>
<div class="text-center py-3">
<p><a class="btn btn-primary btn-lg m-2" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Start Free</a> <a class="btn btn-outline-primary btn-lg" href="https://calendly.com/vladi-dekart/30min" target="_blank">Book a call</a></p>
</div>
<div class="text-center d-flex flex-column align-items-center">
<!-- <h2 class="display-3">Create Maps in Seconds</h2> -->
<p class="lead">Watch short demo video</p>
<div class="container mb-4" style="max-width: 900px;">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qwOqLm3i7Ik" allowfullscreen></iframe>
</div>
</div>
</div>
{{< landing-image src="berlin-roads.png" caption="Watch 40 seconds demo" >}}
<div class="d-flex flex-column align-items-center mb-3">
<div class="col-xl-12">
<div class="col-xl-12 text-left">
<h2 class="display-3">Why Choose Dekart <span class="d-inline-block">Over CARTO?</span></h2>
<!-- item -->
<h4>Transparent Pricing</h4>
<p>Plans start at $49/month – no surprises, no overpaying. Explore <a href='/cloud/'>our pricing options</a> to find the right fit.</p>
<p>Free Personal Plan. Grow plans start at <i>$49/month</i> – no surprises, no overpaying. <br/><span class="d-inline-block">👉 <a href='/cloud/'>Dekart Cloud pricing</a></span></p>
<!-- item -->
<h4>No Vendor Lock-In</h4>
<p>Open-source license, commercial license, SaaS, or self-hosting – Dekart meets any deployment needs.</p>
<p>Open-source license, commercial code license, SaaS, or self-hosting – Dekart meets any deployment needs. <br/><span class="d-inline-block">👉 <a href='/self-hosted/'>Self-hosting options</a></span></p>
<!-- item -->
<h4>High-performance Map Visualization</h4>
<p>Dekart uses the same Kepler.gl and deck.gl libraries as CARTO, delivering stunning, high-performance maps.</p>
<p>Dekart uses the same Kepler.gl and deck.gl libraries as CARTO, delivering stunning, high-performance maps. <br/><span class="d-inline-block">👉 <a href='/docs/about/overture-maps-examples/'>Live map examples</a></span></p>
<!-- item -->
<h4>Faster Data Connectors</h4>
<p>Built with contributions from Google and Snowflake experts, Dekart's data connectors use multithreading and multiple caching techniques to fetch data faster and cheaper.</p>
</div>
</div>

<div>
<div class="text-center d-flex flex-column align-items-center">
<h2 class="display-3">Create Maps in Seconds</h2>
<p class="lead">Watch short demo video</p>
<div class="container mb-4" style="max-width: 900px;">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qwOqLm3i7Ik" allowfullscreen></iframe>
</div>
</div>
<div class="text-center">
<p><a class="btn btn-primary" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Create Free Workspace</a> <a class="btn btn-outline-primary" href="/docs/about/overture-maps-examples/" target="_blank">Start with Example</a></p>
<p></p>
<p><a class="btn btn-primary m-2" href="http://cloud.dekart.xyz/workspace?ref=carto-alternative-2" role="button">Create Free Workspace</a> <a class="btn btn-outline-primary" href="/docs/about/overture-maps-examples/" target="_blank">Book a call</a></p>
<p>Book a call with a team to unlock insider discounts</p>
</div>
</div>
</div>
<div class="text-center">
<h3 class="display-3">Save your team from <span class="d-inline-block">slow, expensive maps</span></h3>
<p class="lead mt-5"><a target="_blank" href="https://calendly.com/vladi-dekart/30min">Book a call with the Dekart team</a> — Unlock insider discounts and learn about our roadmap.</p>
</div>
</article>
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
<!-- <h2 class="h3 mt-0 mb-5 text-center">Connectors</h2> -->
<div class="row justify-content-center g-4">
<div class="col-sm">
<div class="text-center">
<div class="text-center mb-5">
<img class="connector" src="/bigquery.svg" alt="BigQuery">
<div class="h5 connector">BigQuery</div>
<div class="configure-in-cloud">
Expand All @@ -93,7 +93,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
</div>
</div>
<div class="col-sm">
<div class="text-center">
<div class="text-center mb-5">
<img class="connector" src="/snowflake.svg" alt="snowflake">
<div class="h5 connector">Snowflake</div>
<div class="configure-in-cloud">
Expand All @@ -104,7 +104,7 @@ <h2 class="h3"><a class="stretched-link text-body" href="{{ .Permalink }}">{{ .P
</div>
</div>
<div class="col-sm">
<div class="text-center">
<div class="text-center mb-5">
<img class="connector" src="/athena.svg" alt="AWS Athena">
<div class="h5 connector">Athena</div>
<div class="configure-in-cloud">
Expand Down

0 comments on commit afa6888

Please sign in to comment.