diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-06-23 03:11:14 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-06-23 03:15:54 +0900 |
| commit | e95b823f6554f5bad24be1c7f04b2adc763a9f92 (patch) | |
| tree | 3cb3e220143cf51e4e60b26283a905393aa6ba94 /backend/templates/unread-feeds.html | |
| parent | 27bfc8f1d9588322d85197e31b7346601cc680b3 (diff) | |
| download | feedaka-e95b823f6554f5bad24be1c7f04b2adc763a9f92.tar.gz feedaka-e95b823f6554f5bad24be1c7f04b2adc763a9f92.tar.zst feedaka-e95b823f6554f5bad24be1c7f04b2adc763a9f92.zip | |
refactor: change directory structure
Diffstat (limited to 'backend/templates/unread-feeds.html')
| -rw-r--r-- | backend/templates/unread-feeds.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/backend/templates/unread-feeds.html b/backend/templates/unread-feeds.html new file mode 100644 index 0000000..676f24e --- /dev/null +++ b/backend/templates/unread-feeds.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" href="{{.BasePath}}/static/style.css"> + <link rel="icon" href="{{.BasePath}}/static/favicon.svg"> + <title>{{.Title}} | feedaka</title> + </head> + <body class="bg-gray-100 text-gray-900 font-sans antialiased"> + <div class="mx-auto mt-10 px-6"> + <h1 class="text-4xl font-bold underline mb-8">{{.Title}}</h1> + <main> + <ul class="list-none pl-5"> + {{- range .Feeds -}} + <li class="mb-5"> + <a href="{{.URL}}" target="_blank" rel="noreferrer" class="text-blue-500 hover:text-blue-600 hover:underline">{{.Title}}</a> + <button data-feed-id="{{.ID}}" class="js-read-feed ml-4 py-1 px-0 w-6 h-6 rounded border-2 border-green-500 hover:bg-green-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition duration-200"></button> + </li> + <ul class="list-none pl-5 mt-4"> + {{- range .Articles -}} + <li class="mb-3"> + <a href="{{.URL}}" target="_blank" rel="noreferrer" class="text-blue-500 hover:text-blue-600 hover:underline">{{.Title}}</a> + <button data-article-id="{{.ID}}" class="js-read-article ml-4 py-1 px-0 w-6 h-6 rounded border-2 border-green-500 hover:bg-green-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition duration-200"></button> + </li> + {{- end -}} + </ul> + {{- end -}} + </ul> + </main> + </div> + <script>window.BASE_PATH = "{{.BasePath}}";</script> + <script src="{{.BasePath}}/static/index.js" type="module" defer></script> + </body> +</html> |
