logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

preview.vue (3913B)


  1. <template>
  2. <div class="preview-container">
  3. <div class="underlay underlay-preview" />
  4. <div class="panel dummy">
  5. <div class="panel-heading">
  6. <div class="title">
  7. {{ $t('settings.style.preview.header') }}
  8. <span class="badge -notification">
  9. 99
  10. </span>
  11. </div>
  12. <span class="faint">
  13. {{ $t('settings.style.preview.header_faint') }}
  14. </span>
  15. <span class="alert error">
  16. {{ $t('settings.style.preview.error') }}
  17. </span>
  18. <button class="btn button-default">
  19. {{ $t('settings.style.preview.button') }}
  20. </button>
  21. </div>
  22. <div class="panel-body theme-preview-content">
  23. <div class="post">
  24. <div class="avatar still-image">
  25. ( ͡° ͜ʖ ͡°)
  26. </div>
  27. <div class="content">
  28. <h4>
  29. {{ $t('settings.style.preview.content') }}
  30. </h4>
  31. <i18n-t
  32. scope="global"
  33. keypath="settings.style.preview.text"
  34. >
  35. <code style="font-family: var(--postCodeFont);">
  36. {{ $t('settings.style.preview.mono') }}
  37. </code>
  38. <a style="color: var(--link);">
  39. {{ $t('settings.style.preview.link') }}
  40. </a>
  41. </i18n-t>
  42. <div class="icons">
  43. <FAIcon
  44. fixed-width
  45. style="color: var(--cBlue);"
  46. class="fa-scale-110 fa-old-padding"
  47. icon="reply"
  48. />
  49. <FAIcon
  50. fixed-width
  51. style="color: var(--cGreen);"
  52. class="fa-scale-110 fa-old-padding"
  53. icon="retweet"
  54. />
  55. <FAIcon
  56. fixed-width
  57. style="color: var(--cOrange);"
  58. class="fa-scale-110 fa-old-padding"
  59. icon="star"
  60. />
  61. <FAIcon
  62. fixed-width
  63. style="color: var(--cRed);"
  64. class="fa-scale-110 fa-old-padding"
  65. icon="times"
  66. />
  67. </div>
  68. </div>
  69. </div>
  70. <div class="after-post">
  71. <div class="avatar-alt">
  72. :^)
  73. </div>
  74. <div class="content">
  75. <i18n-t
  76. keypath="settings.style.preview.fine_print"
  77. tag="span"
  78. class="faint"
  79. scope="global"
  80. >
  81. <a style="color: var(--linkFaint);">
  82. {{ $t('settings.style.preview.faint_link') }}
  83. </a>
  84. </i18n-t>
  85. </div>
  86. </div>
  87. <div class="separator" />
  88. <span class="alert error">
  89. {{ $t('settings.style.preview.error') }}
  90. </span>
  91. <input
  92. :value="$t('settings.style.preview.input')"
  93. type="text"
  94. class="input"
  95. >
  96. <div class="actions">
  97. <span class="checkbox">
  98. <input
  99. id="preview_checkbox"
  100. checked="very yes"
  101. type="checkbox"
  102. class="input"
  103. >
  104. <label for="preview_checkbox">{{ $t('settings.style.preview.checkbox') }}</label>
  105. </span>
  106. <button class="btn button-default">
  107. {{ $t('settings.style.preview.button') }}
  108. </button>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </template>
  114. <script>
  115. import { library } from '@fortawesome/fontawesome-svg-core'
  116. import {
  117. faTimes,
  118. faStar,
  119. faRetweet,
  120. faReply
  121. } from '@fortawesome/free-solid-svg-icons'
  122. library.add(
  123. faTimes,
  124. faStar,
  125. faRetweet,
  126. faReply
  127. )
  128. export default {}
  129. </script>
  130. <style lang="scss">
  131. .preview-container {
  132. position: relative;
  133. }
  134. .underlay-preview {
  135. position: absolute;
  136. top: 0;
  137. bottom: 0;
  138. left: 10px;
  139. right: 10px;
  140. }
  141. </style>