brand-info-bs.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <div class="container-fluid w-100 ">
  2. <style>
  3. .brand-info ul {
  4. list-style: none;
  5. padding-left: 0;
  6. }
  7. .brand-info ul li {
  8. padding-left: 0;
  9. }
  10. .brand-info ul li a.btn {
  11. text-align: left;
  12. }
  13. .brand-info ul li .form-control {
  14. overflow-wrap: break-word;
  15. }
  16. @media (min-width: 992px) {
  17. .ms-lg-35 {
  18. margin-left: 35% !important;
  19. }
  20. }
  21. </style>
  22. <div class="brand-info w-100 p-2 bg-body border-black">
  23. <div class="bg-body border-bottom border-dark sticky-lg-top mb-5 mb-lg-0" style="z-index: 9999">
  24. {% if 'logo_href' in brand %}
  25. <center>
  26. <img class="m-4 w-25 w-lg-50" src="{{ brand.logo_href }}" style="float: left">
  27. </center>
  28. {% endif %}
  29. <h1>{{ brand.display_name }}</h1>
  30. {% if brand.description %}
  31. {% for para in brand.description.split('\n') %}
  32. <p>{{ para }}</p>
  33. {% endfor %}
  34. {% endif %}
  35. </div>
  36. <div class="ms-0 ms-lg-35">
  37. {% if gumroad and gumroad.products %}
  38. <h2>Products</h2>
  39. <div class="row row-cols-2 row-cols-lg-3 g-2 mb-3 mt-1">
  40. {% for product in gumroad.products %}
  41. <div class="col-sm">
  42. <div class="card">
  43. <img src="{{ product.cover_image_uri }}" class="card-img-top">
  44. <h5 class="card-title">{{ product.name }}</h5>
  45. <p class="card-text">({{ product.price }})</p>
  46. <a href="{{ product.href }}" class="btn btn-primary">
  47. <i class="bi-box2-heart"></i>
  48. On Gumroad
  49. </a>
  50. </div>
  51. </div>
  52. {% endfor %}
  53. </div>
  54. {% endif %}
  55. {% if patreon or (gumroad and gumroad.subscriptions and len(gumroad.subscriptions)) %}
  56. <h2>Subscriptions</h2>
  57. <ul>
  58. {% if patreon %}
  59. <li>
  60. <div class="input-group mb-1" style="width: fit-content">
  61. <a class="btn btn-primary" href="{{ patreon.href }}">
  62. <i class="bi-calendar-heart"></i>
  63. Patreon
  64. </a>
  65. <span class="form-control px-4" >
  66. @{{ patreon.id }}
  67. </span>
  68. </div>
  69. </li>
  70. {% endif %}
  71. {% for sub in gumroad.subscriptions %}
  72. {% if sub.tiers %}
  73. <li>
  74. <h4>{{ sub.name }} on Gumroad</h4>
  75. <ul>
  76. {% for tier in sub.tiers %}
  77. <li>
  78. <div class="input-group mb-1" style="width: fit-content">
  79. <a class="btn btn-primary" href="{{ sub.href }}?option={{ tier.option }}">
  80. <i class="bi-calendar-heart"></i>
  81. {{ tier.name }}
  82. </a>
  83. <span class="form-control px-4" >
  84. {{ tier.yearly }}/yr or {{ tier.monthly }}/mo
  85. </span>
  86. </div>
  87. <!--
  88. <a href="{{ sub.href }}?option={{ tier.option }}">
  89. {{ tier.name }}
  90. </a>
  91. ({{ tier.yearly }}/yr or {{ tier.monthly }}/mo)
  92. -->
  93. </li>
  94. {% endfor %}
  95. </ul>
  96. </li>
  97. {% else %}
  98. <li>
  99. <div class="input-group mb-1" style="width: fit-content">
  100. <a class="btn btn-primary" href="{{ sub.href }}">
  101. <i class="bi-calendar-heart"></i>
  102. {{ sub.name }}
  103. </a>
  104. <span class="form-control px-4" >
  105. {{ sub.yearly }}/yr or {{ sub.monthly }}/mo
  106. </span>
  107. </div>
  108. </li>
  109. {% endif %}
  110. {% endfor %}
  111. </ul>
  112. {% endif %}
  113. {% if venmo %}
  114. <h2>Tips</h2>
  115. <ul>
  116. {% if venmo %}
  117. <li>
  118. <div class="input-group" style="width: fit-content">
  119. <a class="btn btn-primary" href="{{ venmo.href }}">
  120. <i class="bi-heart"></i>
  121. Venmo
  122. </a>
  123. <span class="form-control" >
  124. @{{ venmo.id }}
  125. </span>
  126. </div>
  127. </li>
  128. {% endif %}
  129. </ul>
  130. {% endif %}
  131. {% if twitter or youtube or mastodon or receipt_tracker %}
  132. <h2>On Hogumathi</h2>
  133. <ul>
  134. {% if twitter %}
  135. <li>
  136. <div class="input-group mb-1" style="width: fit-content">
  137. <a href="{{ twitter.hogu_href }}" class="btn btn-primary">
  138. <i class="bi-twitter"></i>
  139. <span class="d-none d-md-inline">
  140. Twitter
  141. </span>
  142. </a>
  143. <span class="form-control">
  144. @{{ twitter.username }}
  145. </span>
  146. </div>
  147. <!--
  148. <small class="d-none d-md-inline">
  149. (<a class="text-decoration-none" href="{{ twitter.href }}">on Twitter.com</a>)
  150. </small>
  151. [<a href="{{ twitter.href }}">source</a>]
  152. -->
  153. </li>
  154. {% endif %}
  155. {% if youtube %}
  156. <li>
  157. <div class="input-group mb-1" style="width: fit-content">
  158. <a href="{{ youtube.hogu_href }}" class="btn btn-primary">
  159. <i class="bi-youtube"></i>
  160. <span class="d-none d-md-inline">
  161. YouTube
  162. </span>
  163. </a>
  164. <span class="form-control">
  165. @{{ youtube.username }}
  166. </span>
  167. </div>
  168. <!--
  169. <a href="{{ youtube.hogu_href }}">YouTube</a> (@{{ youtube.username }}) [<a href="{{ youtube.href }}">source</a>]
  170. -->
  171. </li>
  172. {% endif %}
  173. {% if mastodon %}
  174. <li>
  175. <div class="input-group mb-1" style="width: fit-content">
  176. <a href="{{ mastodon.hogu_href }}" class="btn btn-primary">
  177. <i class="bi-mastodon"></i>
  178. <span class="d-none d-md-inline">
  179. Mastodon
  180. </span>
  181. </a>
  182. <span class="form-control">
  183. @{{ mastodon.username }}@{{ mastodon.instance }}
  184. </span>
  185. </div>
  186. <!--
  187. <a href="{{ mastodon.hogu_href }}">Mastodon</a> (@{{ mastodon.username }}@{{ mastodon.instance }}) [<a href="{{ mastodon.href }}">source</a>]
  188. -->
  189. </li>
  190. {% endif %}
  191. {% if receipt_tracker %}
  192. <li>
  193. <div class="input-group mb-1" style="width: fit-content">
  194. <a href="{{ receipt_tracker.hogu_href }}" class="btn btn-primary">
  195. <i class="bi-rss"></i>
  196. <span class="d-none d-md-inline">
  197. RSS
  198. </span>
  199. </a>
  200. <span class="form-control">
  201. {{ receipt_tracker.href }}
  202. </span>
  203. </div>
  204. <!--
  205. <a href="{{ receipt_tracker.hogu_href }}">Receipts</a> [<a href="{{ receipt_tracker.href }}">source</a>]
  206. -->
  207. </li>
  208. {% endif %}
  209. </ul>
  210. {% endif %}
  211. {% if mailchimp or discord %}
  212. <h2>Community</h2>
  213. <ul>
  214. {% if mailchimp %}
  215. <li><a href="{{ mailchimp.href }}">Mailchimp</a></li>
  216. {% endif %}
  217. {% if discord %}
  218. <li><a href="{{ discord.href }}">Discord</a></li>
  219. {% endif %}
  220. </ul>
  221. {% endif %}
  222. {% if twitch or instagram %}
  223. <h2>Other Socials</h2>
  224. <ul>
  225. {% if twitch %}
  226. <li>
  227. <div class="input-group mb-1" style="width: fit-content">
  228. <a href="{{ twitch.hogu_href }}" class="btn btn-primary">
  229. <i class="bi-twitch"></i>
  230. <span class="d-none d-md-inline">
  231. Twitch
  232. </span>
  233. </a>
  234. <span class="form-control">
  235. @{{ twitch.id }}
  236. </span>
  237. </div>
  238. <!--
  239. <a href="{{ twitch.href }}">Twitch</a> (@{{ twitch.id }})</a>
  240. -->
  241. </li>
  242. {% endif %}
  243. {% if instagram %}
  244. <li>
  245. <div class="input-group mb-1" style="width: fit-content">
  246. <a href="{{ instagram.href }}" class="btn btn-primary">
  247. <i class="bi-instagram"></i>
  248. <span class="d-none d-md-inline">
  249. Instagram
  250. </span>
  251. </a>
  252. <span class="form-control">
  253. @{{ instagram.id }}
  254. </span>
  255. </div>
  256. <!--
  257. <a href="{{ instagram.href }}">Instagram</a> (@{{ instagram.id }})</a>
  258. -->
  259. </li>
  260. {% endif %}
  261. </ul>
  262. {% endif %}
  263. {% if contributors %}
  264. <h2>Contributors</h2>
  265. <p>Thanks to our kind contributors for helping support development:</p>
  266. <table class="table table-striped">
  267. <thead>
  268. <tr>
  269. <th>Name</th>
  270. <th>Amount (Est)</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. {% for contributor in contributors %}
  275. <tr>
  276. <td>{{ contributor.name }}</td>
  277. <td>{{ contributor.amount }}</td>
  278. </tr>
  279. {% endfor %}
  280. </tbody>
  281. </table>
  282. {% endif %}
  283. </div>
  284. </div>
  285. </div>