blogs.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <div>
  3. <div class="main-content">
  4. <div class="container">
  5. <div class="columns is-mobile">
  6. <!-- posts -->
  7. <div class="column is-8">
  8. <!-- blog -->
  9. <div class="section">
  10. <div class="post">
  11. <div @click="() => {}" class="post-header clickable">
  12. <h4 class="title is-4">Some Blog Title</h4>
  13. <h5 class="subtitle is-5">Some Blog Subtitle</h5>
  14. </div>
  15. <div class="post-content">
  16. by Filip Jerga, Jul 1
  17. </div>
  18. </div>
  19. </div>
  20. <div class="section">
  21. <div class="post">
  22. <div @click="() => {}" class="post-header clickable">
  23. <h4 class="title is-4">Some Blog Title</h4>
  24. <h5 class="subtitle is-5">Some Blog Subtitle</h5>
  25. </div>
  26. <div class="post-content">
  27. by Filip Jerga, Jul 1
  28. </div>
  29. </div>
  30. </div>
  31. <!-- end of blog -->
  32. <!-- pagination -->
  33. <div class="section">
  34. </div>
  35. <!-- end of pagination -->
  36. </div>
  37. <!-- side bar -->
  38. <div class="column is-4 is-narrow">
  39. <!-- featured -->
  40. <div class="section">
  41. <div class="sidebar">
  42. <div class="sidebar-header">
  43. <h4 class="title is-4">Featured Posts</h4>
  44. </div>
  45. <div class="sidebar-list">
  46. <!-- Featured Blogs -->
  47. <p>
  48. <nuxt-link :to="``">Some favorite blog</nuxt-link>
  49. </p>
  50. <!-- Featured Blogs -->
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- end of side bar -->
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </template>
  61. <script>
  62. export default {
  63. async fetch({store}) {
  64. await store.dispatch('blog/fetchBlogs')
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. .post-content {
  70. font-style: italic;
  71. }
  72. .pagination-content {
  73. display: flex;
  74. justify-content: flex-end;
  75. }
  76. .clickable {
  77. cursor: pointer;
  78. }
  79. #root {
  80. flex: 1 0 auto;
  81. }
  82. *:focus {
  83. outline: none;
  84. }
  85. a {
  86. transition: all .35s;
  87. color: #000;
  88. }
  89. .button:focus {
  90. border-color: #d74436;
  91. box-shadow: 0 0 0 0;
  92. }
  93. .input, .textarea, .input[type] {
  94. font-size: 1.1rem;
  95. }
  96. .input:focus, .textarea:focus, .input[type]:focus {
  97. border: 2px solid #d74436;
  98. }
  99. /* this is used when inline-styled content
  100. overlaps text backgrounds in a really ugly way */
  101. .buffer {
  102. padding-bottom: 1.1rem;
  103. }
  104. /* navigation */
  105. .nav {
  106. background-color: #0d0c0d;
  107. }
  108. .nav-left {
  109. padding-left: 2rem;
  110. }
  111. .nav-right, .nav-center {
  112. padding-right: 2rem;
  113. }
  114. a.nav-item.is-tab {
  115. font-weight: 700;
  116. font-size: 13px;
  117. text-transform: uppercase;
  118. color: #fff;
  119. padding: 0.4rem;
  120. }
  121. a.nav-item:hover {
  122. color: #d74436;
  123. }
  124. a.nav-item.is-tab:hover {
  125. border-bottom: 4px solid #d74436;
  126. }
  127. /* main content */
  128. .main-content {
  129. padding: 4rem 0 2rem 0;
  130. min-height: 800px
  131. }
  132. .main-content .container {
  133. padding: 0 2rem 2rem 2rem;
  134. }
  135. /* section */
  136. .section {
  137. padding: 0 0 2rem 0;
  138. }
  139. .section-header {
  140. padding-bottom: 3rem;
  141. }
  142. .section-header .title {
  143. text-transform: uppercase;
  144. color: #4a4a4a;
  145. font-size: 1.3rem;
  146. }
  147. .section-header a {
  148. color: #d74436;
  149. font-weight: 700;
  150. }
  151. .section-header a:hover {
  152. color: #e50076;
  153. }
  154. /* sidebar */
  155. .sidebar-header {
  156. border-color: #d74436;
  157. padding-bottom: 1rem;
  158. border-bottom: 4px solid #d74436;
  159. }
  160. .sidebar-header .title, .sidebar-header-single .title {
  161. font-weight: 700;
  162. text-transform: uppercase;
  163. font-size: 1.3rem;
  164. }
  165. .sidebar-list p, .sidebar-list-single p {
  166. font-size: 1.1rem;
  167. font-weight: 300;
  168. padding-bottom: 0.8rem;
  169. }
  170. .sidebar-list a {
  171. color: #4a4a4a;
  172. }
  173. .sidebar-list, .post-content, .sidebar-list-single {
  174. padding-top: 1.4rem;
  175. }
  176. .sidebar-list-nav {
  177. padding-top: 1rem;
  178. }
  179. .sidebar-list-nav .is-tab {
  180. padding-right: 1rem;
  181. }
  182. .sidebar-footer-single {
  183. padding-top: 2rem;
  184. }
  185. .sidebar-footer-single a {
  186. color: #000;
  187. font-weight: 700;
  188. text-transform: uppercase;
  189. font-size: 1.1rem;
  190. border-right: 4px solid #d74436;
  191. padding-right: 1rem;
  192. }
  193. .sidebar-footer-single a:hover {
  194. color: #363636;
  195. }
  196. /* post */
  197. .post-header, .sidebar-header-single {
  198. border-color: #d74436;
  199. padding-left: 1rem;
  200. border-left: 4px solid #d74436;
  201. }
  202. .post-header .title {
  203. font-weight: 700;
  204. font-size: 1.8rem;
  205. color: rgba(0,0,0,.84)!important;
  206. fill: rgba(0,0,0,.84)!important;
  207. }
  208. .post-header .subtitle, .sidebar-header-single .subtitle {
  209. font-size: 1.1rem;
  210. }
  211. .post-content p, .post-single-content p {
  212. margin-bottom: 0.8rem;
  213. }
  214. .post-content, .post-single-content {
  215. font-size: 1.1rem;
  216. font-weight: 300;
  217. }
  218. /* override */
  219. .post-single-content form p:nth-child(even) {
  220. border-right: 0;
  221. }
  222. .post-single-content form label {
  223. text-transform: uppercase;
  224. color: #4a4a4a;
  225. padding-bottom: 0.2rem;
  226. }
  227. .post-single-content form .input[type] {
  228. padding-top: 0.2rem;
  229. }
  230. .post-single-content p:nth-child(even) {
  231. border-right: 4px solid #d74436;
  232. padding-right: 1rem;
  233. }
  234. .post-content a {
  235. color: #d74436;
  236. }
  237. .card-content-form form {
  238. padding-top: 1.5rem;
  239. }
  240. .post-footer {
  241. padding: 1.5rem 0 0 0;
  242. }
  243. /* pagination */
  244. .pagination-content {
  245. border-right: 4px solid #d74436;
  246. padding-right: 1rem;
  247. }
  248. .pagination-link.is-current {
  249. background-color: #d74436;
  250. border-color: #d74436;
  251. }
  252. </style>