aboutsummaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/about.html3
-rw-r--r--src/templates/expected.html10
-rw-r--r--src/templates/goals.html2
-rw-r--r--src/templates/ledger-edit.html2
-rw-r--r--src/templates/ledger.html8
-rw-r--r--src/templates/login.html3
-rw-r--r--src/templates/me.html3
-rw-r--r--src/templates/sign-up.html5
-rw-r--r--src/templates/styles.html2
-rw-r--r--src/templates/summary.html2
10 files changed, 15 insertions, 25 deletions
diff --git a/src/templates/about.html b/src/templates/about.html
index d4f215f..494012d 100644
--- a/src/templates/about.html
+++ b/src/templates/about.html
@@ -4,8 +4,7 @@
<head>
<title>About</title>
<meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>
diff --git a/src/templates/expected.html b/src/templates/expected.html
index 3657151..78d6482 100644
--- a/src/templates/expected.html
+++ b/src/templates/expected.html
@@ -4,20 +4,12 @@
<head>
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>
<div class="main">
<h1>Expected</h1>
- <div>
- <a href="/ledger"><button>Ledger</button></a>
- <a href="/summary"><button>Summary</button></a>
- <a href="/goals"><button>Goals</button></a>
- <a href="/expected"><button class="bold">Expected</button></a>
- <a href="/about"><button>About</button></a>
- </div>
-
<form method="post" action="/expected">
<input name="name" placeholder="name" type="text">
<input name="total" placeholder="total" type="number">
diff --git a/src/templates/goals.html b/src/templates/goals.html
index 9c106bd..30f5032 100644
--- a/src/templates/goals.html
+++ b/src/templates/goals.html
@@ -4,7 +4,7 @@
<head>
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>
diff --git a/src/templates/ledger-edit.html b/src/templates/ledger-edit.html
index b5539f1..5e954a7 100644
--- a/src/templates/ledger-edit.html
+++ b/src/templates/ledger-edit.html
@@ -4,7 +4,7 @@
<head>
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>
diff --git a/src/templates/ledger.html b/src/templates/ledger.html
index 031108e..5e652f5 100644
--- a/src/templates/ledger.html
+++ b/src/templates/ledger.html
@@ -4,8 +4,8 @@
<head>
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
- <script src="/static/main.js"></script>
+ {{> styles}}
+ <script src="static/main.js"></script>
</head>
<body>
@@ -21,7 +21,7 @@
</form>
<table>
<tr>
- <th></th>
+ <th class="table-index"></th>
<th>When</th>
<th>Where</th>
<th>Amount</th>
@@ -32,7 +32,7 @@
</tr>
{{#each ledger}}
<tr>
- <td>{{this.index}}</td>
+ <td class="table-index">{{this.index}}</td>
<td>{{this.when}}</td>
<td>{{this.where}}</td>
<td>{{this.amount}}</td>
diff --git a/src/templates/login.html b/src/templates/login.html
index 8557b72..9100166 100644
--- a/src/templates/login.html
+++ b/src/templates/login.html
@@ -4,8 +4,7 @@
<head>
<title>Login</title>
<meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="/css/styles.css">
+ {{> styles}}
</head>
<body>
diff --git a/src/templates/me.html b/src/templates/me.html
index 4b96661..2bcd397 100644
--- a/src/templates/me.html
+++ b/src/templates/me.html
@@ -4,8 +4,7 @@
<head>
<title>About</title>
<meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>
diff --git a/src/templates/sign-up.html b/src/templates/sign-up.html
index 3f19ed3..5dae368 100644
--- a/src/templates/sign-up.html
+++ b/src/templates/sign-up.html
@@ -4,8 +4,7 @@
<head>
<title>Sign Up</title>
<meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="/css/styles.css">
+ {{> styles}}
</head>
<body>
@@ -16,7 +15,7 @@
<input name="username" type="text" placeholder="Enter Username" required>
<input type="password" placeholder="Enter Password" name="password" required>
<input type="text" placeholder="Secret code" name="code" required>
- <input type="submit" vallue="Log in">
+ <input type="submit" value="Sign up">
</div>
</div>
<a href="/login">or login</a>
diff --git a/src/templates/styles.html b/src/templates/styles.html
new file mode 100644
index 0000000..1516b7e
--- /dev/null
+++ b/src/templates/styles.html
@@ -0,0 +1,2 @@
+<link rel="stylesheet" type="text/css" href="/static/styles.css">
+<link rel="stylesheet" type="text/css" href="/static/mobile.css"> \ No newline at end of file
diff --git a/src/templates/summary.html b/src/templates/summary.html
index 4ad6261..f9ae202 100644
--- a/src/templates/summary.html
+++ b/src/templates/summary.html
@@ -4,7 +4,7 @@
<head>
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
- <link rel="stylesheet" type="text/css" href="static/styles.css">
+ {{> styles}}
</head>
<body>