summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.html18
-rw-r--r--views/search.html23
2 files changed, 41 insertions, 0 deletions
diff --git a/views/index.html b/views/index.html
new file mode 100644
index 0000000..7ab4bd0
--- /dev/null
+++ b/views/index.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+ <title>Lex.surf: Portal to National Law</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
+ <link rel="stylesheet" href="/assets/style.css" />
+</head>
+<body>
+ <img height=140 class=logo src="/assets/logo.svg">
+ <h2>The portal to&nbsp;national&nbsp;law.</h2>
+ <div class=countries>
+ {{range $key, $c := .Countries -}}
+ <a class=cc-link href="//{{$key}}.{{$.Domain}}" title="{{$c.Name}}">{{$key | ToUpper}}</a>
+ {{- end}}
+ </div>
+ <p>More countries coming soon.</p>
+</body>
+</html>
diff --git a/views/search.html b/views/search.html
new file mode 100644
index 0000000..44d496c
--- /dev/null
+++ b/views/search.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+<head>
+ <title>National Law of {{.Country.Name}}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
+ <link rel="stylesheet" href="//{{.Domain}}/assets/style.css" />
+</head>
+<body>
+ <a href="//{{.Domain}}"><img height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a>
+ <h1>National Law of {{.Country.Name}}</h1>
+ {{if .Country.HasPlaceholder}}
+ <form autocomplete="off">
+ <input id=search name=q autofocus>
+ <ul id=suggestions></ul>
+ </form>
+ {{else}}
+ <p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p>
+
+ (No search form here because the search isn't linkable.)
+ {{end}}
+ <script src="//{{.Domain}}/assets/script.js"></script>
+</body>
+</html>