From 42998fee7c32de12e7f0f728d90a87cf0bc083e8 Mon Sep 17 00:00:00 2001 From: Tom Andrade Date: Thu, 19 Sep 2019 12:49:27 +0200 Subject: [PATCH] update templates --- templates/400.html | 321 ++++---------------------------------- templates/404.html | 320 ++++--------------------------------- templates/500.html | 308 ++++-------------------------------- templates/footer.html | 5 + templates/header.html | 282 +++++++++++++++++++++++++++++++++ templates/index.html | 99 ++---------- templates/ok.html | 37 +---- templates/returnPage.html | 37 +---- templates/slimheader.html | 72 +++++++++ 9 files changed, 484 insertions(+), 997 deletions(-) create mode 100644 templates/footer.html create mode 100644 templates/header.html create mode 100644 templates/slimheader.html diff --git a/templates/400.html b/templates/400.html index 3837895..0184d44 100644 --- a/templates/400.html +++ b/templates/400.html @@ -1,293 +1,40 @@ - - Short: the simple url shortener - - - -
-
-

400

-

Bad Request

-
-
-
-
-
-
-
+ {{ template "header" }} + +
+
+

400

+

Bad Request

-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Boo, looks like a ghost didn't like your request! +
+ But you can try again, type an URL below to shorten it

+
-
-
-
-

Boo, looks like a ghost didn't like your request! -
- But you can try again, type an URL below to shorten it

- -
- - \ No newline at end of file + {{ template "footer" }} + + \ No newline at end of file diff --git a/templates/404.html b/templates/404.html index a1b8efd..be7cd44 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,293 +1,41 @@ - - Short: the simple url shortener - - - -
-
-

404

-

page not found

-
-
-
-
-
-
-
+ +
+
+

404

+

page not found

-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Boo, looks like a ghost stole this page! +
+ But you can type an URL below to shorten it

+
-
-
-
-

Boo, looks like a ghost stole this page! -
- But you can type an URL below to shorten it

- -
- - \ No newline at end of file + {{ template "footer" }} + + \ No newline at end of file diff --git a/templates/500.html b/templates/500.html index 615282d..df07b3a 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,287 +1,35 @@ - - Short: the simple url shortener - - - -
-
-

500

-

Internal server error

-
-
-
-
-
-
-
+ +
+
+

500

+

Internal server error

-
-
-

X

-

X

-
+
+
+
+
+
+
+
+
+

X

+

X

+
+
+
+
+
+
+

Boo, the ghost is broken :( +
+ His last words where: {{ . }}

-
-
-
-

Boo, the ghost is broken :( -
- His last words where: {{ . }}

-
- - \ No newline at end of file + {{ template "footer" }} + + \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..9e1b755 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,5 @@ +{{ define "footer" }} + +{{ end }} \ No newline at end of file diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..6b2bb2a --- /dev/null +++ b/templates/header.html @@ -0,0 +1,282 @@ +{{ define "header" }} + + Short: the simple url shortener + + +{{ end }} diff --git a/templates/index.html b/templates/index.html index 866a0bb..b4e2f7b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,87 +1,18 @@ - - Short: the simple url shortener - - - -
-

Welcome to Short, the simple URL shortener, -
- Type an URL below to shorten it

- -
- + {{ template "slimheader" }} + +
+

Welcome to Short, the simple URL shortener, +
+ Type an URL below to shorten it

+ +
+ {{ template "footer" }} + \ No newline at end of file diff --git a/templates/ok.html b/templates/ok.html index 15ba75b..ef328cc 100644 --- a/templates/ok.html +++ b/templates/ok.html @@ -1,33 +1,10 @@ - - Short: the simple url shortner - - - -
-

{{ . }}

-
- + {{ template "slimheader" }} + +
+

{{ . }}

+
+ {{ template "footer" }} + \ No newline at end of file diff --git a/templates/returnPage.html b/templates/returnPage.html index 748825a..f1bcfc0 100644 --- a/templates/returnPage.html +++ b/templates/returnPage.html @@ -1,33 +1,10 @@ - - Short: the simple url shortner - - - -
-

URL Shortened to {{ . }}

-
- + {{ template "slimheader" }} + +
+

URL Shortened to {{ . }}

+
+ {{ template "footer" }} + \ No newline at end of file diff --git a/templates/slimheader.html b/templates/slimheader.html new file mode 100644 index 0000000..21e877e --- /dev/null +++ b/templates/slimheader.html @@ -0,0 +1,72 @@ +{{ define "slimheader" }} + + Short: the simple url shortener + + +{{ end }} \ No newline at end of file