Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTA for free trials #3392

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions astro/public/img/cta/corner-circ.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
import BlogNewsletterCTA from './BlogNewsletterCTA.astro';
import BlogNewsletterCTA from '../BlogNewsletterCTA.astro';
import DownloadCTA from './DownloadCTA.astro';
import EmailListCTA from './EmailListCTA.astro';
import FreeTrialCTA from './FreeTrialCTA.astro';

const { intro, cta } = Astro.props;
const { cta } = Astro.props;
---
{cta === "DownloadCTA" && <DownloadCTA />}
{cta === "EmailListCTA" && <EmailListCTA />}
{cta === "BlogNewsletterCTA" && <BlogNewsletterCTA/> }
{cta === "FreeTrialCTA" && <FreeTrialCTA/> }
24 changes: 24 additions & 0 deletions astro/src/components/cta/FreeTrialCTA.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
---
<div id="container" class="px-5 h-full flex flex-col justify-evenly space-y-4 py-8">
<h3 class="text-xl leading-7 font-black">Your <span class="text-orange-400">Auth</span>, Your Way - We Handle the Rest</h3>
<p class="text-base font-medium">Start 30-day <span class="font-bold text-green-300">Free</span> Trial.</p>
<a href="https://account-local.fusionauth.io/account/free-trial/start?source=site" class="text-center w-full bg-orange-400 rounded px-4 py-2.5 text-sm font-bold uppercase">Start Free Trial</a>
dcharles8 marked this conversation as resolved.
Show resolved Hide resolved
</div>
<style>
#container {
background-image:
radial-gradient(circle 312px at bottom right, rgb(127, 41, 168) .5%, rgb(45, 29, 93) 15%, transparent 100%),
linear-gradient(to top left, transparent 0%, rgb(15, 23, 41, 1) 100%),
url("/img/texture/grid.svg"),
url("/img/cta/corner-circ.svg");
background-size:
100%,
100%,
400%,
60%;
background-repeat: no-repeat;
background-position: center, center, center, bottom right;
opacity: 1;
}
</style>
3 changes: 2 additions & 1 deletion astro/src/layouts/Article.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let { frontmatter, section } = Astro.props;
section = frontmatter.section ? frontmatter.section : section;

const openGraphImage = '/img/og/articles-developers-v1.png';
const cta = 'FreeTrialCTA';

const sections = [
{
Expand Down Expand Up @@ -132,7 +133,7 @@ if (Astro.url.pathname.startsWith("/articles/login-authentication-workflows")) {
}
}
---
<Default sections={sections} sideMenu={sideMenu} openGraphImage={openGraphImage} {...Astro.props}>
<Default {sections} {sideMenu} {openGraphImage} {cta} {...Astro.props}>
<ArticleNav slot="nav"/>
<slot/>
</Default>
4 changes: 2 additions & 2 deletions astro/src/layouts/Default.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import '../css/style.css';
import CTA from '../components/CTA.astro';
import CTA from '../components/cta/CTA.astro';
import Head from '../components/Head.astro';
import Header from '../components/Header.astro';
import Navigation from '../components/Navigation.astro';
Expand Down Expand Up @@ -205,7 +205,7 @@ const tocStyles = [
</nav>

{/* FIXME sean will address the cta at some point */}
<div class="mt-16 hidden">
<div class=`mt-16 ${!cta && 'hidden'}`>
<CTA cta={cta}/>
</div>
</aside>
Expand Down