diff options
Diffstat (limited to 'template/templates')
-rw-r--r-- | template/templates/404.html | 7 | ||||
-rw-r--r-- | template/templates/base.html | 34 | ||||
-rw-r--r-- | template/templates/base_empty.html | 3 | ||||
-rw-r--r-- | template/templates/hello.html | 3 |
4 files changed, 47 insertions, 0 deletions
diff --git a/template/templates/404.html b/template/templates/404.html new file mode 100644 index 0000000..5210bfb --- /dev/null +++ b/template/templates/404.html @@ -0,0 +1,7 @@ +{{ define "content" }} +<h1>page not found</h1> +<p><em>but hey, at least you found our witty 404 page. that's something, right?</em></p> + +<p><a href="/">go back home</a></p> + +{{ end }} diff --git a/template/templates/base.html b/template/templates/base.html new file mode 100644 index 0000000..8e18b67 --- /dev/null +++ b/template/templates/base.html @@ -0,0 +1,34 @@ +{{ define "base" }} +<!DOCTYPE html> +<html> + <head> + <title>whois simponic.</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> + <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="/static/css/styles.css"> + + <meta property="og:type" content="website"> + <meta property="og:url" content="https://whois.simponic.xyz"> + <meta property="og:title" content="whois simponic."> + <meta property="og:description" content="whois simponic."> + <meta property="og:image:secure_url" content="https://whois.simponic.xyz/static/img/favicon.ico"> + <meta property="og:image:secure" content="https://whois.simponic.xyz/static/img/favicon.ico"> + + <script src="/static/js/util/setThemeBeforeRender.js"></script> + </head> + <body> + <div id="content" class="container"> + <div> + <h1>whois</h1> + <a href="/">home.</a> + <span> | </span> + <a href="javascript:void(0);" id="theme-switcher">light mode.</a> + </div> + <hr> + {{ template "content" . }} + </div> + <script data-main="/static/js/script.js" src="/static/js/require.js"></script> + </body> +</html> +{{ end }} diff --git a/template/templates/base_empty.html b/template/templates/base_empty.html new file mode 100644 index 0000000..6191ab9 --- /dev/null +++ b/template/templates/base_empty.html @@ -0,0 +1,3 @@ +{{ define "base" }} + {{ template "content" . }} +{{ end }}
\ No newline at end of file diff --git a/template/templates/hello.html b/template/templates/hello.html new file mode 100644 index 0000000..d2311f5 --- /dev/null +++ b/template/templates/hello.html @@ -0,0 +1,3 @@ +{{ define "content" }} +hello from {{ .Service }}! +{{ end }} |