1
0
mirror of https://github.com/bumi/openalias-web synced 2026-02-26 02:30:52 +00:00
This commit is contained in:
2019-01-15 00:51:13 +01:00
commit 3f6f23b21d
15 changed files with 7382 additions and 0 deletions

30
templates/errors/404.hbs Normal file
View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>404</title>
<link rel="stylesheet" href="/assets/spectre/spectre.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-exp.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-icons.min.css">
<link rel="stylesheet" href="/assets/oa.css">
</head>
<body>
<div id="openalias-web" class="off-canvas">
<div>
<h1 class="header">404: Not Found</h1>
<p>The page at {{ path }} does not exist!</p>
<p>It seems {{path}} does not have any OpenAlias entries.</p>
<form id="fqdn-form" onsubmit="document.location = '{{domain}}/' + document.getElementById('fqdn').value;return false;">
Find another one:
<div class="input-group">
<span class="input-group-addon addon-lg">{{domain}}/</span>
<input class="form-input input-lg" type="text" id="fqdn" placeholder="Your Domain">
<button class="btn btn-primary input-group-btn btn-lg" onclick="document.location = '{{domain}}/' + document.getElementById('fqdn').value;">Go</button>
</div>
</form>
</div>
</div>
</body>
</html>

33
templates/index.hbs Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>OpenAlias Web</title>
<link rel="stylesheet" href="/assets/spectre/spectre.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-exp.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-icons.min.css">
<link rel="stylesheet" href="/assets/oa.css">
</head>
<body>
<div id="openalias-web" class="off-canvas">
<div>
<h1 class="header">OpenAlias web</h1>
<h2>Using <a href="https://openalias.org/">OpenAlias</a> to create your tipping page</h2>
<p>
Simply setup your OpenAlias DNS records and get your page on {{host}}/[YOUR FQDN]
</p>
<form id="fqdn-form" onsubmit="document.location = '{{host}}/' + document.getElementById('fqdn').value;return false;">
<div class="input-group">
<span class="input-group-addon addon-lg">{{host}}/</span>
<input class="form-input input-lg" type="text" id="fqdn" placeholder="Your Domain">
<button class="btn btn-primary input-group-btn btn-lg" onclick="document.location = '{{host}}/' + document.getElementById('fqdn').value;">Go</button>
</div>
</form>
Example: <a href="{{host}}/donate@getmonero.org">{{host}}/donate@getmonero.org</a>
</div>
</div>
</body>
</html>

43
templates/show.hbs Normal file
View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{{domain}}</title>
<link rel="stylesheet" href="/assets/spectre/spectre.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-exp.min.css">
<link rel="stylesheet" href="/assets/spectre/spectre-icons.min.css">
<link rel="stylesheet" href="/assets/oa.css">
</head>
<body>
<div id="openalias-web" class="off-canvas">
<div class="container">
<h1 class="header">{{ domain }}</h1>
<div class="columns">
{{#each addresses}}
<div class="column col-4 col-mx-auto">
<div class="card">
<div class="card-header">
<div class="label label-primary float-right">{{cryptocurrency}}</div>
<div class="card-title h5">
{{ recipient_name }}
</div>
<div class="card-subtitle text-gray">
{{ tx_description }}
</div>
</div>
<div class="card-body">
{{ address }}
</div>
</div>
</div>
{{#unless @last }}
<div class="divider-vert" data-content="OR"></div>
{{/unless}}
{{/each}}
</div>
</div>
</div>
</body>
</html>