rightbar.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div>
  3. <!-- <p class="">
  4. <router-link class="btn btn-primary primary btn-sm rounded-pill font-weight-bold btn-block" to="/i/web/whats-new"><i class="fal fa-exclamation-circle mr-1"></i> New in Metro UI 2</router-link>
  5. </p> -->
  6. <notifications :profile="profile" />
  7. <!-- <div class="d-none card shadow-sm mb-3" style="border-radius: 15px;">
  8. <div class="card-body">
  9. <div class="d-flex justify-content-between">
  10. <p class="text-muted">{{ $t('timeline.peopleYouMayKnow') }}</p>
  11. <p class="text-lighter"><i class="far fa-cog"></i></p>
  12. </div>
  13. <div class="media-list mb-n4">
  14. <div v-for="(account, index) in recommended" class="media align-items-center mb-3">
  15. <img :src="account.avatar" class="avatar shadow-sm mr-3" width="40" height="40">
  16. <div class="media-body">
  17. <p class="lead font-weight-bold username primary">&commat;{{ account.username }}</p>
  18. <p class="text-muted mb-0 display-name">{{ account.display_name }}</p>
  19. </div>
  20. <button class="btn btn-primary btn-sm follow">
  21. {{ $t('profile.follow') }}
  22. </button>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="d-none card shadow-sm mb-3" style="border-radius: 15px;">
  28. <div class="card-body">
  29. <div class="d-flex justify-content-between">
  30. <p class="text-muted">Trending</p>
  31. <p class="text-lighter"><i class="far fa-cog"></i></p>
  32. </div>
  33. <div class="media-list row mb-n3">
  34. <div v-for="(post, index) in trending" class="col-6 mb-1 p-1">
  35. <img :src="post.url" width="100%" height="100" class="bg-white p-1 shadow-sm" style="object-fit: cover;border-radius: 15px;">
  36. </div>
  37. <div class="col-6 mb-1 p-1 d-flex justify-content-center align-items-center">
  38. <button class="btn btn-link text-dark">
  39. <i class="fal fa-plus-circle fa-lg"></i>
  40. </button>
  41. </div>
  42. </div>
  43. </div>
  44. </div> -->
  45. </div>
  46. </template>
  47. <script type="text/javascript">
  48. import Notifications from './../sections/Notifications.vue';
  49. export default {
  50. components: {
  51. "notifications": Notifications
  52. },
  53. data() {
  54. return {
  55. profile: {},
  56. }
  57. },
  58. mounted() {
  59. this.profile = window._sharedData.user;
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .avatar {
  65. border-radius: 15px;
  66. }
  67. .username {
  68. font-size: 15px;
  69. margin-bottom: -6px;
  70. }
  71. .display-name {
  72. font-size: 12px;
  73. }
  74. .follow {
  75. background-color: var(--primary);
  76. border-radius: 18px;
  77. font-weight: 600;
  78. padding: 5px 15px;
  79. }
  80. .btn-white {
  81. background-color: #fff;
  82. border: 1px solid #F3F4F6;
  83. }
  84. </style>