Skip to content

Commit 87f96f0

Browse files
committed
feat
1 parent 08f80b7 commit 87f96f0

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Read(//Users/adamgreen/climate-news-db/**)"
5+
],
6+
"deny": [],
7+
"ask": []
8+
}
9+
}

src/webapp/templates/head.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{define "head"}}
2+
<head>
3+
<meta charset="UTF-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<title>{{.title}}</title>
6+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico" />
7+
<script src="https://cdn.tailwindcss.com"></script>
8+
9+
<!-- Privacy-friendly analytics by Plausible -->
10+
<script async src="https://plausible.io/js/pa-rwcYIzNTVJO-HnnqzUVoT.js"></script>
11+
<script>
12+
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
13+
plausible.init()
14+
</script>
15+
</head>
16+
{{end}}

src/webapp/templates/navbar.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{{define "navbar"}}
2+
<nav class="bg-white shadow-sm border-b">
3+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
4+
<div class="flex justify-between h-16">
5+
<div class="flex items-center space-x-8">
6+
<a
7+
href="/"
8+
class="text-xl font-semibold text-gray-900 hover:text-gray-700"
9+
>{{.title}}</a
10+
>
11+
<nav class="flex space-x-4">
12+
<a
13+
href="/"
14+
class="{{if eq .activePage "newspapers"}}bg-gray-100 text-gray-900{{else}}text-gray-500 hover:text-gray-700{{end}} px-3 py-2 rounded-md text-sm font-medium"
15+
>Newspapers</a
16+
>
17+
<a
18+
href="/latest"
19+
class="{{if eq .activePage "latest"}}bg-gray-100 text-gray-900{{else}}text-gray-500 hover:text-gray-700{{end}} px-3 py-2 rounded-md text-sm font-medium"
20+
>Latest</a
21+
>
22+
<a
23+
href="/random"
24+
class="text-gray-500 hover:text-gray-700 px-3 py-2 rounded-md text-sm font-medium"
25+
>Random Article</a
26+
>
27+
</nav>
28+
</div>
29+
<div class="flex items-center space-x-2">
30+
<a
31+
href="/download"
32+
class="text-gray-500 hover:text-gray-700 p-2"
33+
aria-label="Download Dataset"
34+
>
35+
<svg
36+
xmlns="http://www.w3.org/2000/svg"
37+
width="24"
38+
height="24"
39+
viewBox="0 0 24 24"
40+
fill="none"
41+
stroke="currentColor"
42+
stroke-width="2"
43+
stroke-linecap="round"
44+
stroke-linejoin="round"
45+
>
46+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
47+
<polyline points="7 10 12 15 17 10"></polyline>
48+
<line x1="12" y1="15" x2="12" y2="3"></line>
49+
</svg>
50+
</a>
51+
<a
52+
href="https://github.com/ADGEfficiency/climate-news-db"
53+
target="_blank"
54+
rel="noopener noreferrer"
55+
class="text-gray-500 hover:text-gray-700 p-2"
56+
aria-label="GitHub Repository"
57+
>
58+
<svg
59+
xmlns="http://www.w3.org/2000/svg"
60+
width="24"
61+
height="24"
62+
viewBox="0 0 24 24"
63+
fill="none"
64+
stroke="currentColor"
65+
stroke-width="2"
66+
stroke-linecap="round"
67+
stroke-linejoin="round"
68+
>
69+
<path
70+
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"
71+
></path>
72+
</svg>
73+
</a>
74+
</div>
75+
</div>
76+
</div>
77+
</nav>
78+
{{end}}

0 commit comments

Comments
 (0)