diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 16:39:13 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 16:39:13 -0800 |
commit | d25ec27fb1c3df175e1b98af1fdc26881d68a1ab (patch) | |
tree | a79c729b92c0d0a52b19b37c3a506b988f1e0b80 /templates | |
download | whois-d25ec27fb1c3df175e1b98af1fdc26881d68a1ab.tar.gz whois-d25ec27fb1c3df175e1b98af1fdc26881d68a1ab.zip |
initial commit by simponic-infra
Diffstat (limited to 'templates')
-rw-r--r-- | templates/404.html | 7 | ||||
-rw-r--r-- | templates/base.html | 34 | ||||
-rw-r--r-- | templates/base_empty.html | 3 | ||||
-rw-r--r-- | templates/home.html | 3 | ||||
-rw-r--r-- | templates/name.tmpl | 3 |
5 files changed, 50 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..5210bfb --- /dev/null +++ b/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/templates/base.html b/templates/base.html new file mode 100644 index 0000000..8e18b67 --- /dev/null +++ b/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/templates/base_empty.html b/templates/base_empty.html new file mode 100644 index 0000000..6191ab9 --- /dev/null +++ b/templates/base_empty.html @@ -0,0 +1,3 @@ +{{ define "base" }} + {{ template "content" . }} +{{ end }}
\ No newline at end of file diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..e040cb3 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,3 @@ +{{ define "content" }} +hello, my name is {{ .Latest.Name }}! +{{ end }} diff --git a/templates/name.tmpl b/templates/name.tmpl new file mode 100644 index 0000000..108b8a3 --- /dev/null +++ b/templates/name.tmpl @@ -0,0 +1,3 @@ +{{ define "content" }} +{{ .Latest.Name }} +{{ end }}
\ No newline at end of file |