aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-11-19 16:57:59 +0100
committerTeddy Wing2018-11-19 16:57:59 +0100
commit74dc8dc04d31b26987e510941472ab239c1af31f (patch)
tree01be38c5810036efe763607f359f4dd4960c5bfe
parent7386aac49900934b42a83127ff933f870ae6d170 (diff)
downloaddome-key-web-74dc8dc04d31b26987e510941472ab239c1af31f.tar.bz2
Add purchase flow thank-you page
Move the existing thank-you page to `thank-you-license-download.html`. Use `thank-you.html` as the final page of the purchase flow. Paddle will redirect to this page at the end of purchase. Allows us to retain some branding during purchase. Using the existing HTML file for a better URL.
-rw-r--r--license-generator/src/bin/license.rs2
-rw-r--r--thank-you-license-download.html55
-rw-r--r--thank-you.html22
3 files changed, 59 insertions, 20 deletions
diff --git a/license-generator/src/bin/license.rs b/license-generator/src/bin/license.rs
index 47b2bb1..973a1a6 100644
--- a/license-generator/src/bin/license.rs
+++ b/license-generator/src/bin/license.rs
@@ -57,7 +57,7 @@ where W: 'a + Write {
"Status: 200
Content-Type: text/html\n\n{}",
format!(
- include_str!("../../../thank-you.html"),
+ include_str!("../../../thank-you-license-download.html"),
name = name,
email = email,
secret = secret,
diff --git a/thank-you-license-download.html b/thank-you-license-download.html
new file mode 100644
index 0000000..a892704
--- /dev/null
+++ b/thank-you-license-download.html
@@ -0,0 +1,55 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Thank you! – DomeKey</title>
+ <meta name="description" content="DomeKey gives you the power to remap your headphone buttons to any action you can think of. Define mappings in text using a Vim-like configuration language." />
+
+ <meta name="viewport" content="width=device-width">
+
+ <link rel="stylesheet" href="assets/styles.css" />
+</head>
+<body>
+ <div class="content">
+ <header>
+ <a href="/">
+ <h1>DomeKey</h1>
+ <img src="assets/logo.svg" alt="DomeKey logo" />
+ </a>
+ </header>
+
+ <p class="font-size-1.52 color-maroon">
+ Control your computer with a pair of headphones
+ </p>
+
+ <p class="text-center font-size-2.5">
+ Thanks so much for buying DomeKey!
+ </p>
+
+ <form method="post" action="/license/download">
+ <input type="hidden" name="name" value="{name}" />
+ <input type="hidden" name="email" value="{email}" />
+ <input type="hidden" name="secret" value="{secret}" />
+
+ <button
+ type="submit"
+ class="button button-magenta
+ display-block margin-left-auto margin-right-auto
+ margin-top-2 margin-bottom-2">
+ Download your license
+ </button>
+ </form>
+
+ <p>
+ If you need any help,
+ <a href="mailto:inquiry@domekey.teddywing.com">let me know</a>.
+ </p>
+
+ <p>
+ Also, check out the
+ <a href="https://github.com/teddywing/DomeKey">source code</a>
+ if you’re interested.
+ </p>
+ </div>
+</body>
+</html>
diff --git a/thank-you.html b/thank-you.html
index a892704..773f43e 100644
--- a/thank-you.html
+++ b/thank-you.html
@@ -26,29 +26,13 @@
Thanks so much for buying DomeKey!
</p>
- <form method="post" action="/license/download">
- <input type="hidden" name="name" value="{name}" />
- <input type="hidden" name="email" value="{email}" />
- <input type="hidden" name="secret" value="{secret}" />
-
- <button
- type="submit"
- class="button button-magenta
- display-block margin-left-auto margin-right-auto
- margin-top-2 margin-bottom-2">
- Download your license
- </button>
- </form>
-
<p>
- If you need any help,
- <a href="mailto:inquiry@domekey.teddywing.com">let me know</a>.
+ Please check your email for a link to download your license.
</p>
<p>
- Also, check out the
- <a href="https://github.com/teddywing/DomeKey">source code</a>
- if you’re interested.
+ If you need any help,
+ <a href="mailto:inquiry@domekey.teddywing.com">let me know</a>.
</p>
</div>
</body>