base.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="stylesheet" href="{{ url_for('.static', filename='tachyons.min.css') }}">
  7. <script src="{{ url_for('.static', filename='htmx.js') }}"></script>
  8. {% block head %}
  9. <title>{{ title | default('No Title') }}</title>
  10. {% endblock %}
  11. <style>
  12. .qt-box, .card-box {
  13. padding: 4px;
  14. border: 1px solid black;
  15. }
  16. .tweet-actions-box {
  17. width: 100%;
  18. background-color: lightgrey;
  19. padding: 2px;
  20. text-align: right;
  21. }
  22. .theme-dark {
  23. color: #dfdfdf;
  24. background-color: #030303;
  25. }
  26. .theme-dark a {
  27. color: green;
  28. }
  29. .theme a:visited {
  30. color: orange;
  31. }
  32. .theme-dark .qt-box, .theme-dark .card-box {
  33. border-color: #dfdfdf;
  34. }
  35. .theme-dark .tweet-actions-box {
  36. background-color: midnightblue;
  37. }
  38. .theme-dark textarea, .theme-dark input {
  39. background-color: #121212;
  40. border-color: #dfdfdf;
  41. color: #dfdfdf;
  42. }
  43. .theme-dark button {
  44. background-color: #121212;
  45. color: #dfdfdf;
  46. border-color: #dfdfdf;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <!--
  52. Flexbox makes logical sense but we'll go with a table-based display
  53. -->
  54. <div class="nav" style="position: fixed; width: 25%">
  55. <ul>
  56. <li><a href="{{ url_for('.get_timeline_home_html') }}">Latest Tweets</a></li>
  57. <li><a href="{{ url_for('.get_conversations_html') }}">DMs</a></li>
  58. <li><a hx-get="/twitter/data/mentions/{{ twitter_user.id }}?me={{ me }}" hx-target="#tweets" hx-swap="outerHTML">Mentions</a></li>
  59. <!--
  60. <li><a hx-get="/twitter/data/thread/1592514352690900992?me={{ me }}" hx-target="#tweets" hx-swap="outerHTML">Test Thread</a></li>
  61. <li><a hx-get="/twitter/data/conversation/1592596557009801216?me={{ me }}" hx-target="#tweets" hx-swap="outerHTML">Test Conversation</a></li>
  62. <li><a hx-get="/twitter/data/tweets?ids=1592637236147027970,1592474342289330176&amp;me={{ me }}" hx-target="#tweets" hx-swap="outerHTML">Test Tweets</a></li>
  63. -->
  64. <li><a href="{{ url_for('.get_bookmarks_html') }}">Bookmarks</a></li>
  65. <li><a href="{{ url_for('.get_logout_html') }}">Logout ({{me}})</a></li>
  66. <li><a href="javascript:document.body.classList.toggle('theme-dark')">Toggle Dark Mode</a></li>
  67. <li><a href="javascript:document.location.reload()">Refresh</a></li>
  68. </ul>
  69. {% include "partial/compose-form.html" %}
  70. {% include "partial/media-upload-form.html" %}
  71. {% include "partial/user-picker.html" %}
  72. </div>
  73. <div style="width: 75%; left:25%; position: absolute">
  74. {% block content %}{% endblock %}
  75. </div>
  76. </body>
  77. </html>