aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-03-29 23:09:34 -0700
committerTrumeet <yuuta@yuuta.moe>2021-03-29 23:09:34 -0700
commit5dfdd45403578077dc5828d651c3e04d61549140 (patch)
tree36da3909dfedb6d2c2c664284a1a1749dae99f54
parent825ff684a023bc1775bc7666f12352d850b11fbd (diff)
downloaddn42peering-5dfdd45403578077dc5828d651c3e04d61549140.tar
dn42peering-5dfdd45403578077dc5828d651c3e04d61549140.tar.gz
dn42peering-5dfdd45403578077dc5828d651c3e04d61549140.tar.bz2
dn42peering-5dfdd45403578077dc5828d651c3e04d61549140.zip
feat(central): add CSS and optimize mobile UI
-rw-r--r--central/src/main/resources/asn/index.ftlh3
-rw-r--r--central/src/main/resources/asn/success.ftlh3
-rw-r--r--central/src/main/resources/index.ftlh3
-rw-r--r--central/src/main/resources/manage/changepw.ftlh3
-rw-r--r--central/src/main/resources/manage/delete.ftlh3
-rw-r--r--central/src/main/resources/manage/edit.ftlh3
-rw-r--r--central/src/main/resources/manage/index.ftlh3
-rw-r--r--central/src/main/resources/manage/new.ftlh3
-rw-r--r--central/src/main/resources/manage/showconf.ftlh3
-rw-r--r--central/src/main/resources/style.ftlh11
10 files changed, 29 insertions, 9 deletions
diff --git a/central/src/main/resources/asn/index.ftlh b/central/src/main/resources/asn/index.ftlh
index 073866b..3c28a01 100644
--- a/central/src/main/resources/asn/index.ftlh
+++ b/central/src/main/resources/asn/index.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="utf-8" />
+ <#include "../style.ftlh">
<title>Register your ASN</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Register your ASN</h1>
<p>You may register your ASN now. One ASN can have multiple peers with us.</p>
<#if errors??>
diff --git a/central/src/main/resources/asn/success.ftlh b/central/src/main/resources/asn/success.ftlh
index 15e6600..2f44ba5 100644
--- a/central/src/main/resources/asn/success.ftlh
+++ b/central/src/main/resources/asn/success.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Register your ASN</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Your ASN is registered</h1>
<p>Please check your email for initial password. We had sent the password to the following emails addresses:</p>
<div>
diff --git a/central/src/main/resources/index.ftlh b/central/src/main/resources/index.ftlh
index a507072..b1d33eb 100644
--- a/central/src/main/resources/index.ftlh
+++ b/central/src/main/resources/index.ftlh
@@ -2,9 +2,10 @@
<html lang=en>
<head>
<meta charset=utf-8>
+ <#include "style.ftlh">
<title>${name} dn42 Automatic Peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>${name} dn42 Peering</h1>
<p><b>Already a peer? <a href="/manage">Login</a>.</b></p>
<h2>Peering Process</h2>
diff --git a/central/src/main/resources/manage/changepw.ftlh b/central/src/main/resources/manage/changepw.ftlh
index 481c0d0..3621022 100644
--- a/central/src/main/resources/manage/changepw.ftlh
+++ b/central/src/main/resources/manage/changepw.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Change Password | Manage your peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Change Password</h1>
<p>You are logged in as: ${asn}.</p>
<#if errors??>
diff --git a/central/src/main/resources/manage/delete.ftlh b/central/src/main/resources/manage/delete.ftlh
index 6dd9877..45a4fff 100644
--- a/central/src/main/resources/manage/delete.ftlh
+++ b/central/src/main/resources/manage/delete.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Delete Account | Manage your peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Delete Account</h1>
<p>You are logged in as: ${asn}.</p>
<#if errors??>
diff --git a/central/src/main/resources/manage/edit.ftlh b/central/src/main/resources/manage/edit.ftlh
index 251566d..745631f 100644
--- a/central/src/main/resources/manage/edit.ftlh
+++ b/central/src/main/resources/manage/edit.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Edit Peer | Manage your peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Edit Peer</h1>
<p>You are logged in as: ${asn}.</p>
<#include "form.ftlh">
diff --git a/central/src/main/resources/manage/index.ftlh b/central/src/main/resources/manage/index.ftlh
index 983dc63..7272b5b 100644
--- a/central/src/main/resources/manage/index.ftlh
+++ b/central/src/main/resources/manage/index.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Manage your peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Manage your peering</h1>
<p>You are logged in as: ${asn}.</p>
<h2>Peers</h2>
diff --git a/central/src/main/resources/manage/new.ftlh b/central/src/main/resources/manage/new.ftlh
index 9b572ec..168f6ed 100644
--- a/central/src/main/resources/manage/new.ftlh
+++ b/central/src/main/resources/manage/new.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Add New Peer | Manage your peering</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Add New Peer</h1>
<p>You are logged in as: ${asn}.</p>
<#include "form.ftlh">
diff --git a/central/src/main/resources/manage/showconf.ftlh b/central/src/main/resources/manage/showconf.ftlh
index d86ba5f..c92847b 100644
--- a/central/src/main/resources/manage/showconf.ftlh
+++ b/central/src/main/resources/manage/showconf.ftlh
@@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
+ <#include "../style.ftlh">
<title>Peering Configuration</title>
</head>
-<body>
+<body class="markdown-body">
<h1>Peering Configuration</h1>
<p>Here are the information needed for you to setup:</p>
<ul>
diff --git a/central/src/main/resources/style.ftlh b/central/src/main/resources/style.ftlh
new file mode 100644
index 0000000..8c81396
--- /dev/null
+++ b/central/src/main/resources/style.ftlh
@@ -0,0 +1,11 @@
+<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css">
+<style>
+ body {
+ box-sizing: border-box;
+ min-width: 200px;
+ max-width: 980px;
+ margin: 0 auto;
+ padding: 45px;
+ }
+</style> \ No newline at end of file