|
| 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