index.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div>
  3. <Header
  4. title="Manage your Blogs"
  5. exitLink="/"
  6. />
  7. <div class="instructor-blogs">
  8. <div class="container">
  9. <div class="section">
  10. <div class="header-block">
  11. <h2>Your Stories</h2>
  12. <div class="title-menu">
  13. <button @click="$router.push('/instructor/blog/editor')" class="button">Write a story</button>
  14. </div>
  15. </div>
  16. <div class="tabs">
  17. <ul>
  18. <li><a>Drafts</a></li>
  19. <li><a>Published</a></li>
  20. </ul>
  21. </div>
  22. <div class="blogs-container">
  23. <template>
  24. <div>
  25. <div class="blog-card">
  26. <h2>Some Title</h2>
  27. <div class="blog-card-footer">
  28. <span>
  29. Last Edited 17th December, 2018
  30. </span>
  31. <!-- Dropdown with menu here -->
  32. </div>
  33. </div>
  34. <div class="blog-card">
  35. <h2>Some Title</h2>
  36. <div class="blog-card-footer">
  37. <span>
  38. Last Edited 17th December, 2018
  39. </span>
  40. <!-- Dropdown with menu here -->
  41. </div>
  42. </div>
  43. </div>
  44. <!-- In case of no drafts blogs -->
  45. <!-- <div class="blog-error">
  46. No Drafts :(
  47. </div> -->
  48. </template>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </template>
  55. <script>
  56. import Header from '~/components/shared/Header'
  57. export default {
  58. layout: 'instructor',
  59. components: {Header}
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .blog-error {
  64. font-size: 35px;
  65. }
  66. .blog-card {
  67. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  68. padding: 20px 0;
  69. > h2 {
  70. font-size: 30px;
  71. font-weight: bold;
  72. }
  73. &-footer {
  74. color: rgba(0, 0, 0, 0.54);
  75. }
  76. &.featured {
  77. border-left: 5px solid #3cc314;
  78. padding-left: 10px;
  79. transition: border ease-out 0.2s;
  80. }
  81. }
  82. .header-block {
  83. display: flex;
  84. flex-direction: row;
  85. align-items: center;
  86. > h2 {
  87. font-size: 40px;
  88. font-weight: bold;
  89. }
  90. .title-menu {
  91. margin-left: auto;
  92. }
  93. }
  94. </style>