tags.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ---
  2. title: Tags
  3. page-header: Tags
  4. menu: base.tags
  5. ---
  6. {% assign icons = "bold,italic,underline,copy,scissors,file-plus,file-minus,ghost,star,script,photo,dog,piano" | split: "," %}
  7. <div class="row row-cards row-cols-1 row-cols-md-2 row-cols-lg-3">
  8. <div class="col">
  9. <div class="card">
  10. <div class="card-body">
  11. <h3 class="card-title">Default tags</h3>
  12. <div class="tags-list">
  13. {% for i in (1..14) %}
  14. {% capture text %}Label {{ i }}{% endcapture %}
  15. {% include ui/tag.html text=text %}
  16. {% endfor %}
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col">
  22. <div class="card">
  23. <div class="card-body">
  24. <h3 class="card-title">Tags with flag</h3>
  25. <div class="tags-list">
  26. {% for country in site.data.flags limit: 9 %}
  27. {% include ui/tag.html text=country.name flag=country.code %}
  28. {% endfor %}
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="col">
  34. <div class="card">
  35. <div class="card-body">
  36. <h3 class="card-title">Tags with icon</h3>
  37. <div class="tags-list">
  38. {% for icon in icons %}
  39. {% include ui/tag.html text=icon icon=icon %}
  40. {% endfor %}
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="col">
  46. <div class="card">
  47. <div class="card-body">
  48. <h3 class="card-title">Tags with avatar</h3>
  49. <div class="tags-list">
  50. {% for person in site.data.people limit: 8 %}
  51. {% include ui/tag.html text=person.full_name person=person %}
  52. {% endfor %}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col">
  58. <div class="card">
  59. <div class="card-body">
  60. <h3 class="card-title">Tags with status</h3>
  61. <div class="tags-list">
  62. {% for color in site.colors %}
  63. {% capture status %}{{ color[1].class }}{% endcapture %}
  64. {% capture text %}{{ color[1].title }}{% endcapture %}
  65. {% include ui/tag.html text=text status=status %}
  66. {% endfor %}
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="col">
  72. <div class="card">
  73. <div class="card-body">
  74. <h3 class="card-title">Tags with legend</h3>
  75. <div class="tags-list">
  76. {% for color in site.colors %}
  77. {% capture status %}{{ color[1].class }}{% endcapture %}
  78. {% capture text %}{{ color[1].title }}{% endcapture %}
  79. {% include ui/tag.html text=text legend=status %}
  80. {% endfor %}
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="col">
  86. <div class="card">
  87. <div class="card-body">
  88. <h3 class="card-title">Default tags</h3>
  89. <div class="tags-list">
  90. {% for i in (1..6) %}
  91. {% capture text %}Label {{ i }}{% endcapture %}
  92. {% include ui/tag.html text=text checkbox=true %}
  93. {% endfor %}
  94. {% for i in (7..12) %}
  95. {% capture text %}Label {{ i }}{% endcapture %}
  96. {% include ui/tag.html text=text checkbox=true checked=true %}
  97. {% endfor %}
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="col">
  103. <div class="card">
  104. <div class="card-body">
  105. <h3 class="card-title">Default tags</h3>
  106. <div class="tags-list">
  107. {% for i in (1..12) %}
  108. {% include ui/tag.html text="Label" badge=i %}
  109. {% endfor %}
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>