Serve Mailchimp validation script locally.

This commit is contained in:
Daniel Vassallo
2019-09-24 16:29:56 -07:00
parent f73fb6b5a3
commit 0f90cdc44b
2 changed files with 386 additions and 12 deletions

View File

@@ -29,7 +29,7 @@
<hr>
<div class="my-10">
<h3 class="font-black text-3xl tracking-tight">What is Userbase?</h3>
<h3 class="font-black text-3xl tracking-tight" id="what-is-userbase">What is Userbase?</h3>
<div class="text-left font-sans tracking-tight">
<p class="mb-4">Userbase is like a database, but purpose-built for web app user data. It's accessible
directly from the browser through a very simple JavaScript SDK.</p>
@@ -39,19 +39,19 @@
<hr>
<div class="my-10">
<h3 class="font-black text-3xl tracking-tight">Why isn't it a database?</h3>
<h3 class="font-black text-3xl tracking-tight" id="why-not-a-database">Why isn't it a database?</h3>
<div class="text-left font-sans tracking-tight">
<p class="mb-4">With Userbase you can durably store, update, delete, and query user data. But that's where
the similarities with traditional databases end.</p>
<h4 class="font-bold text-xl tracking-tight">Zero management</h4>
<h4 class="font-bold text-xl tracking-tight" id="zero-management">Zero management</h4>
<p class="mb-4">Unlike a real database, all Userbase
queries run in the browser, with the server-side acting as a dumb data store. There's no database to manage
and worry about.
</p>
<h4 class="font-bold text-xl tracking-tight">Built-in user management</h4>
<h4 class="font-bold text-xl tracking-tight" id="user-management">Built-in user management</h4>
<p class="mb-4">Unlike a real database, Userbase takes care of your user accounts. It comes with built-in
APIs for user signups, logins, and access control.</p>
<h4 class="font-bold text-xl tracking-tight">End-to-end encrypted</h4>
<h4 class="font-bold text-xl tracking-tight" id="e2ee">End-to-end encrypted</h4>
<p class="mb-4">Unlike a real database, Userbase won't show you what your users store in your web
app.</p>
<p class="mb-4"></p>Wait, what!? — Yes, that's a feature — maybe the most important feature. Userbase spares you
@@ -64,7 +64,7 @@
<hr>
<div class="my-10">
<h3 class="font-black text-3xl tracking-tight">When would I use it?</h3>
<h3 class="font-black text-3xl tracking-tight" id="what-would-i-use-it">When would I use it?</h3>
<div class="text-left font-sans tracking-tight">
<p class="mb-4">If you're building a web app, you will likely need a database. Userbase can substitute your
database... </p>
@@ -81,17 +81,17 @@
<hr>
<div class="my-10">
<h3 class="font-black text-3xl tracking-tight">How do I start?</h3>
<h3 class="font-black text-3xl tracking-tight" id="how-do-i-start">How do I start?</h3>
<div class="text-left font-sans tracking-tight">
<p class="mb-4">Userbase will be available around mid-December 2019.</p>
<h4 class="font-bold text-xl tracking-tight">Open source</h4>
<h4 class="font-bold text-xl tracking-tight" id="oss">Open source</h4>
<p class="mb-4">Userbase is being developed in the open, and is <a
href="https://github.com/encrypted-dev/userbase" target="_blank" rel="noopener noreferrer">100%
open-source</a>, MIT licensed. You can modify
and extend the backend to your liking, and run it yourself in your AWS account, always under your control.</p>
<h4 class="font-bold text-xl tracking-tight">As a service</h4>
<h4 class="font-bold text-xl tracking-tight" id="saas">As a service</h4>
<p class="mb-4">Or for just $39/month you can go fully serverless, backendless, databaseless, and AWSless!</p>
<ul class="list-disc mb-4 ml-8">
<li>Unlimited web apps.</li>
@@ -101,7 +101,7 @@
<li>All features included.</li>
</ul>
<h4 class="font-bold text-xl tracking-tight">Join the waiting list</h4>
<h4 class="font-bold text-xl tracking-tight" id="mailing-list">Join the waiting list</h4>
<p class="mb-4">Enter your email to receive occasional updates about Userbase. No spam ever.</p>
</div>
@@ -137,7 +137,7 @@
<hr>
<div class="my-10">
<h3 class="font-black text-3xl tracking-tight">Who's behind this?</h3>
<h3 class="font-black text-3xl tracking-tight" id="about">Who's behind this?</h3>
<div class="text-left font-sans tracking-tight">
<p class="mb-4">This product is the work of <a href="https://twitter.com/dvassallo" target="_blank"
rel="noopener noreferrer">Daniel Vassallo</a> and <a href="https://twitter.com/justinberman95"
@@ -160,7 +160,7 @@
</div>
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
<script type='text/javascript' src='mc-validate.js'></script>
<script type='text/javascript'>
(function ($) { window.fnames = new Array(); window.ftypes = new Array(); fnames[0] = 'EMAIL'; ftypes[0] = 'email'; fnames[1] = 'FNAME'; ftypes[1] = 'text'; fnames[2] = 'LNAME'; ftypes[2] = 'text'; fnames[3] = 'ADDRESS'; ftypes[3] = 'address'; fnames[4] = 'PHONE'; ftypes[4] = 'phone'; fnames[5] = 'BIRTHDAY'; ftypes[5] = 'birthday'; }(jQuery)); var $mcj = jQuery.noConflict(true);
</script>

374
public/mc-validate.js Normal file

File diff suppressed because one or more lines are too long