space.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {% extends 'themes/wayback/base.html' %}
  2. {% block head %}
  3. <title>{{ uinfo['name'] }} - MikuInvidious</title>
  4. <meta name="referrer" content="never">
  5. <meta name="description" content="{{ uinfo['sign'] }}">
  6. <meta property="og:site_name" content="MikuInvidious">
  7. <meta property="og:url" content="{{ site_url }}/space/{{ uinfo['mid'] }}">
  8. <meta property="og:title" content="{{ uinfo['name'] }}">
  9. <meta property="og:image" content="{{ uinfo['face']|pic }}">
  10. <meta property="og:description" content="{{ uinfo['sign'] }}">
  11. <meta name="twitter:card" content="summary">
  12. <meta name="twitter:url" content="{{ site_url }}/space/{{ uinfo['mid'] }}">
  13. <meta name="twitter:title" content="{{ uinfo['name'] }}">
  14. <meta name="twitter:description" content="{{ uinfo['sign'] }}">
  15. <meta name="twitter:image" content="{{ uinfo['face']|pic }}">
  16. <link rel="alternate" href="https://space.bilibili.com/{{ uinfo['mid'] }}">
  17. {% endblock %}
  18. {% block content %}
  19. <div class="pure-g h-box">
  20. <div class="pure-u-2-3">
  21. <div class="channel-profile">
  22. <img src="{{ uinfo['face']|pic }}" alt="" />
  23. <span>{{ uinfo['name'] }}</span>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="h-box">
  28. <div id="descriptionWrapper">
  29. <p><span style="white-space:pre-wrap">{{ uinfo['sign'] }}</span></p>
  30. </div>
  31. </div>
  32. <div class="pure-g h-box">
  33. <div class="pure-u-1-2">
  34. <div class="pure-u-1 pure-md-1-3">
  35. <a href="https://space.bilibili.com/{{ uinfo['mid'] }}">在哔哩哔哩上浏览</a>
  36. </div>
  37. <div class="pure-u-1 pure-md-1-3">
  38. <a href="/author/{{ uinfo['mid'] }}">浏览发布的文章</a>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="h-box">
  43. <hr>
  44. </div>
  45. <div class="pure-g h-box v-box">
  46. <div class="pure-u-1 pure-u-lg-1-5">
  47. {% if uvids['page']['pn'] > 1 %}
  48. <a href="/space/{{ uinfo['mid'] }}?i={{ uvids['page']['pn']-1 }}">上一页</a>
  49. {% endif %}
  50. </div>
  51. <div class="pure-u-1 pure-u-lg-3-5"></div>
  52. <div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
  53. {% if (uvids['page']['pn']+1)*(uvids['page']['ps']) < uvids['page']['count'] %}
  54. <a href="/space/{{ uinfo['mid'] }}?i={{ uvids['page']['pn']+1 }}">下一页</a>
  55. {% endif %}
  56. </div>
  57. </div>
  58. <div class="pure-g">
  59. {% for v in uvids['list']['vlist'] %}
  60. <div class="pure-u-1 pure-u-md-1-4">
  61. <div class="h-box">
  62. <a style="width:100%" href="/video/{{ v['bvid'] }}">
  63. <div class="thumbnail">
  64. <img width="320" height="180" loading="lazy" tabindex="-1" class="thumbnail" src="{{ "{}@320w".format(v['pic'])|pic }}" alt="">
  65. <p class="length">{{ v['duration'] }}</p>
  66. </div>
  67. <p dir="auto">
  68. {{ v['title']|safe }}
  69. </p>
  70. </a>
  71. <div class="video-card-row flexible">
  72. <div class="flex-left"><a href="/space/{{ v['mid'] }}">
  73. <p class="channel-name" dir="auto">{{ v['author'] }}</p>
  74. </a></div>
  75. <div class="flex-right">
  76. <div class="icon-buttons">
  77. <a title="在哔哩哔哩上观看" href="https://www.bilibili.com/video/{{ v['bvid'] }}">
  78. <i class="icon ion-logo-youtube"></i>
  79. </a>
  80. <a title="音频模式" href="/video/{{ v['bvid'] }}?listen=1">
  81. <i class="icon ion-md-headset"></i>
  82. </a>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="video-card-row flexible">
  87. <div class="flex-left">
  88. <p class="video-data" dir="auto">{{ v['created']|date }}</p>
  89. </div>
  90. <div class="flex-right">
  91. <p class="video-data" dir="auto">{{ v['play']|intsep }} 次播放</p>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. {% endfor %}
  97. </div>
  98. {% endblock %}