From c994959f736206aacec8e9933d62588b9cb5b0c5 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Sun, 21 Mar 2021 21:44:19 +0300 Subject: redisign --- templates/includes/layout.gohtml | 8 +++++--- templates/pages/error.gohtml | 1 + templates/pages/index.gohtml | 35 ++++++++++++++++++----------------- templates/pages/memo.gohtml | 7 +++---- templates/pages/notfound.gohtml | 9 +++++++-- templates/pages/save.gohtml | 25 ++++++++++++++++++------- templates/pages/secret.gohtml | 2 -- 7 files changed, 52 insertions(+), 35 deletions(-) (limited to 'templates') diff --git a/templates/includes/layout.gohtml b/templates/includes/layout.gohtml index 03cf430..0b3b69b 100644 --- a/templates/includes/layout.gohtml +++ b/templates/includes/layout.gohtml @@ -6,15 +6,17 @@ SendSafe + + -
- -
+ {{template "content" .}} diff --git a/templates/pages/error.gohtml b/templates/pages/error.gohtml index 8d63bbd..6527c79 100644 --- a/templates/pages/error.gohtml +++ b/templates/pages/error.gohtml @@ -2,4 +2,5 @@ {{define "content"}}

Error happened.

Nothing can be done.

+ Back {{ end }} diff --git a/templates/pages/index.gohtml b/templates/pages/index.gohtml index 8cfcae1..6f2bf87 100644 --- a/templates/pages/index.gohtml +++ b/templates/pages/index.gohtml @@ -1,21 +1,22 @@ {{template "layout.gohtml" .}} {{define "content"}} -
-
-

New secret

- - - -
- - - -
- {{/* */}} - {{/* */}} -
- - -
+
+
+
+

New secret

+ + + +
+ + + +
+ {{/* */}} + {{/* */}} + + +
+
{{ end }} diff --git a/templates/pages/memo.gohtml b/templates/pages/memo.gohtml index e981266..f24d289 100644 --- a/templates/pages/memo.gohtml +++ b/templates/pages/memo.gohtml @@ -1,7 +1,7 @@ {{template "layout.gohtml" .}} {{define "content"}} -
-
+
+

Secret:

- - +
{{ end }} diff --git a/templates/pages/notfound.gohtml b/templates/pages/notfound.gohtml index d1b6e85..4112bc9 100644 --- a/templates/pages/notfound.gohtml +++ b/templates/pages/notfound.gohtml @@ -1,5 +1,10 @@ {{template "layout.gohtml" .}} {{define "content"}} -

Not found.

-

Link expired or already viewed.

+
+
+

Not found.

+

Link expired or already viewed.

+  Back +
+
{{ end }} diff --git a/templates/pages/save.gohtml b/templates/pages/save.gohtml index 2b427f6..318fd51 100644 --- a/templates/pages/save.gohtml +++ b/templates/pages/save.gohtml @@ -1,14 +1,25 @@ {{template "layout.gohtml" .}} {{define "content"}} -
-
+
+

Saved

Secret url: -
-

https://sendsafe.xyz/s/{{.id}}

+
+ + +

Send this link to recepient. This link can be viewed only once!

-
- - +  Back +
+ {{ end }} diff --git a/templates/pages/secret.gohtml b/templates/pages/secret.gohtml index 94af286..4ebb353 100644 --- a/templates/pages/secret.gohtml +++ b/templates/pages/secret.gohtml @@ -1,6 +1,4 @@ Warning! This text already deleted from server! If you refresh or close page - secret will be completely lost! -
     {{.secret}}
 
-
-- cgit v1.2.3