From 6f31f35c7b38fbf63d7a0c9322458e0b75828495 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 18 Mar 2021 02:06:42 +0300 Subject: Initial --- templates/includes/layout.gohtml | 19 +++++++++++++++++++ templates/pages/error.gohtml | 5 +++++ templates/pages/index.gohtml | 21 +++++++++++++++++++++ templates/pages/memo.gohtml | 13 +++++++++++++ templates/pages/notfound.gohtml | 10 ++++++++++ templates/pages/save.gohtml | 13 +++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 templates/includes/layout.gohtml create mode 100644 templates/pages/error.gohtml create mode 100644 templates/pages/index.gohtml create mode 100644 templates/pages/memo.gohtml create mode 100644 templates/pages/notfound.gohtml create mode 100644 templates/pages/save.gohtml (limited to 'templates') diff --git a/templates/includes/layout.gohtml b/templates/includes/layout.gohtml new file mode 100644 index 0000000..adebd99 --- /dev/null +++ b/templates/includes/layout.gohtml @@ -0,0 +1,19 @@ + + + + + + + + SendSafe + + + + + +
+ +
+{{template "content" .}} + + diff --git a/templates/pages/error.gohtml b/templates/pages/error.gohtml new file mode 100644 index 0000000..8d63bbd --- /dev/null +++ b/templates/pages/error.gohtml @@ -0,0 +1,5 @@ +{{template "layout.gohtml" .}} +{{define "content"}} +

Error happened.

+

Nothing can be done.

+{{ end }} diff --git a/templates/pages/index.gohtml b/templates/pages/index.gohtml new file mode 100644 index 0000000..8cfcae1 --- /dev/null +++ b/templates/pages/index.gohtml @@ -0,0 +1,21 @@ +{{template "layout.gohtml" .}} +{{define "content"}} +
+
+

New secret

+ + + +
+ + + +
+ {{/* */}} + {{/* */}} +
+ + +
+
+{{ end }} diff --git a/templates/pages/memo.gohtml b/templates/pages/memo.gohtml new file mode 100644 index 0000000..804d7b7 --- /dev/null +++ b/templates/pages/memo.gohtml @@ -0,0 +1,13 @@ +{{template "layout.gohtml" .}} +{{define "content"}} +
+
+

Secret:

+ Warning! This text already deleted from server! If you refresh or close page - secret will be completely lost! +
+
{{.secret}}
+
+ +
+
+{{ end }} diff --git a/templates/pages/notfound.gohtml b/templates/pages/notfound.gohtml new file mode 100644 index 0000000..911f8e1 --- /dev/null +++ b/templates/pages/notfound.gohtml @@ -0,0 +1,10 @@ +{{template "layout.gohtml" .}} +{{define "content"}} +
+
+

Not found.

+

Link expired or already viewed.

+ +
+
+{{ end }} diff --git a/templates/pages/save.gohtml b/templates/pages/save.gohtml new file mode 100644 index 0000000..f940502 --- /dev/null +++ b/templates/pages/save.gohtml @@ -0,0 +1,13 @@ +{{template "layout.gohtml" .}} +{{define "content"}} +
+
+

Saved

+ Secret url: +
+ https://sendsafe.xyz/s/{{.id}} +
+ +
+
+{{ end }} -- cgit v1.2.3