-
Notifications
You must be signed in to change notification settings - Fork 18
/
template.html
70 lines (67 loc) · 3.99 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html lang="en">
<head>
<title>Userbase: <%= title %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Userbase is the easiest way to add user accounts and data persistence to your static site. No backend necessary.">
<meta property="og:url" content="https://userbase.com" />
<meta property="og:type" content="website" />
<meta property="og:title" content="<%= desc %>" />
<meta property="og:image" content="https://userbase.com${require(`./img/social_card.png`)}" />
<meta property="og:description" content="Create secure and private web apps using only static JavaScript, HTML, and CSS." />
<meta property="og:site_name" content="Userbase" />
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@UserbaseHQ" />
<meta name="twitter:creator" content="@UserbaseHQ" />
<meta name="twitter:url" content="https://userbase.com" />
<meta name="twitter:title" content="<%= desc %>" />
<meta name="twitter:description" content="Create secure and private web apps using only static JavaScript, HTML, and CSS." />
<meta name="twitter:image" content="https://userbase.com${require(`./img/social_card.png`)}" />
</head>
<body>
<header class="sm:sticky top-0 bg-white z-50 shadow-none sm:shadow-md mb-0 sm:mb-8">
<div class="sm:flex sm:justify-between sm:items-center py-2 px-4">
<div class="flex items-center justify-between h-10">
<div class="flex-shrink-0">
<%= page !== 'index' ? require('html-loader!./partials/logo.html') : null %>
</div>
<div class="sm:hidden">
<button onclick="toggleMenu()" type="button" class="block text-blackish hover:text-orange-700 focus:text-orange-700 focus:outline-none">
<svg class="h-6 w-6 fill-current" viewBox="0 0 24 24">
<path class="hidden menu-close" fill-rule="evenodd" d="M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z" />
<path class="menu-open" fill-rule="evenodd" d="M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z" />
</svg>
</button>
</div>
</div>
<nav class="pt-0 pb-8 hidden sm:flex sm:p-0 text-lg text-center menu">
<a href="/pricing/" class="menu-item">Pricing</a>
<a href="/docs/" class="menu-item">Docs</a>
<a href="/contact/" class="menu-item">Contact</a>
<a href="https://v1.userbase.com/#sign-in" class="menu-item text-red-700 hover:text-blue">Log in</a>
<a href="https://v1.userbase.com/#create-admin" class="rounded-lg px-6 py-2 no-underline bg-yellowish font-black cursor-pointer text-gray-900 inline-block leading-none hover:text-orange-700 mt-2 ml-0 sm:ml-2 sm:mt-0">Try it FREE</a>
</nav>
</div>
</header>
<div class="container mx-auto max-w-4xl px-4">
<%= require('html-loader!./pages/' + page + '.html') %>
<footer class="text-center py-4 tracking-tight text-sm">
<div>
<nav class="pt-2 pb-4 text-center menu">
<a href="/about/" class="py-2 leading-none px-2">About</a>
<a href="/pricing/" class="py-2 leading-none px-2">Pricing</a>
<a href="/policies/" class="py-2 leading-none px-2">Policies</a>
<a href="http://github.com/encrypted-dev/userbase" class="py-2 leading-none px-2">GitHub</a>
<a href="https://twitter.com/UserbaseHQ" class="py-2 leading-none px-2">Twitter</a>
<a href="/announcements/" class="py-2 leading-none px-2">Announcements</a>
</nav>
</div>
<div class="text-gray-500 text-xs">
This site is <a href="https://github.com/encrypted-dev/userbase-homepage" target="_blank">open source</a>.
</div>
</footer>
</div>
</body>
</html>