blogs.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. }
  64. </script>
  65. <style scoped>
  66. .post-content {
  67. font-style: italic;
  68. }
  69. .pagination-content {
  70. display: flex;
  71. justify-content: flex-end;
  72. }
  73. .clickable {
  74. cursor: pointer;
  75. }
  76. #root {
  77. flex: 1 0 auto;
  78. }
  79. *:focus {
  80. outline: none;
  81. }
  82. a {
  83. transition: all .35s;
  84. color: #000;
  85. }
  86. .button:focus {
  87. border-color: #d74436;
  88. box-shadow: 0 0 0 0;
  89. }
  90. .input, .textarea, .input[type] {
  91. font-size: 1.1rem;
  92. }
  93. .input:focus, .textarea:focus, .input[type]:focus {
  94. border: 2px solid #d74436;
  95. }
  96. /* this is used when inline-styled content
  97. overlaps text backgrounds in a really ugly way */
  98. .buffer {
  99. padding-bottom: 1.1rem;
  100. }
  101. /* navigation */
  102. .nav {
  103. background-color: #0d0c0d;
  104. }
  105. .nav-left {
  106. padding-left: 2rem;
  107. }
  108. .nav-right, .nav-center {
  109. padding-right: 2rem;
  110. }
  111. a.nav-item.is-tab {
  112. font-weight: 700;
  113. font-size: 13px;
  114. text-transform: uppercase;
  115. color: #fff;
  116. padding: 0.4rem;
  117. }
  118. a.nav-item:hover {
  119. color: #d74436;
  120. }
  121. a.nav-item.is-tab:hover {
  122. border-bottom: 4px solid #d74436;
  123. }
  124. /* main content */
  125. .main-content {
  126. padding: 4rem 0 2rem 0;
  127. min-height: 800px
  128. }
  129. .main-content .container {
  130. padding: 0 2rem 2rem 2rem;
  131. }
  132. /* section */
  133. .section {
  134. padding: 0 0 2rem 0;
  135. }
  136. .section-header {
  137. padding-bottom: 3rem;
  138. }
  139. .section-header .title {
  140. text-transform: uppercase;
  141. color: #4a4a4a;
  142. font-size: 1.3rem;
  143. }
  144. .section-header a {
  145. color: #d74436;
  146. font-weight: 700;
  147. }
  148. .section-header a:hover {
  149. color: #e50076;
  150. }
  151. /* sidebar */
  152. .sidebar-header {
  153. border-color: #d74436;
  154. padding-bottom: 1rem;
  155. border-bottom: 4px solid #d74436;
  156. }
  157. .sidebar-header .title, .sidebar-header-single .title {
  158. font-weight: 700;
  159. text-transform: uppercase;
  160. font-size: 1.3rem;
  161. }
  162. .sidebar-list p, .sidebar-list-single p {
  163. font-size: 1.1rem;
  164. font-weight: 300;
  165. padding-bottom: 0.8rem;
  166. }
  167. .sidebar-list a {
  168. color: #4a4a4a;
  169. }
  170. .sidebar-list, .post-content, .sidebar-list-single {
  171. padding-top: 1.4rem;
  172. }
  173. .sidebar-list-nav {
  174. padding-top: 1rem;
  175. }
  176. .sidebar-list-nav .is-tab {
  177. padding-right: 1rem;
  178. }
  179. .sidebar-footer-single {
  180. padding-top: 2rem;
  181. }
  182. .sidebar-footer-single a {
  183. color: #000;
  184. font-weight: 700;
  185. text-transform: uppercase;
  186. font-size: 1.1rem;
  187. border-right: 4px solid #d74436;
  188. padding-right: 1rem;
  189. }
  190. .sidebar-footer-single a:hover {
  191. color: #363636;
  192. }
  193. /* post */
  194. .post-header, .sidebar-header-single {
  195. border-color: #d74436;
  196. padding-left: 1rem;
  197. border-left: 4px solid #d74436;
  198. }
  199. .post-header .title {
  200. font-weight: 700;
  201. font-size: 1.8rem;
  202. color: rgba(0,0,0,.84)!important;
  203. fill: rgba(0,0,0,.84)!important;
  204. }
  205. .post-header .subtitle, .sidebar-header-single .subtitle {
  206. font-size: 1.1rem;
  207. }
  208. .post-content p, .post-single-content p {
  209. margin-bottom: 0.8rem;
  210. }
  211. .post-content, .post-single-content {
  212. font-size: 1.1rem;
  213. font-weight: 300;
  214. }
  215. /* override */
  216. .post-single-content form p:nth-child(even) {
  217. border-right: 0;
  218. }
  219. .post-single-content form label {
  220. text-transform: uppercase;
  221. color: #4a4a4a;
  222. padding-bottom: 0.2rem;
  223. }
  224. .post-single-content form .input[type] {
  225. padding-top: 0.2rem;
  226. }
  227. .post-single-content p:nth-child(even) {
  228. border-right: 4px solid #d74436;
  229. padding-right: 1rem;
  230. }
  231. .post-content a {
  232. color: #d74436;
  233. }
  234. .card-content-form form {
  235. padding-top: 1.5rem;
  236. }
  237. .post-footer {
  238. padding: 1.5rem 0 0 0;
  239. }
  240. /* pagination */
  241. .pagination-content {
  242. border-right: 4px solid #d74436;
  243. padding-right: 1rem;
  244. }
  245. .pagination-link.is-current {
  246. background-color: #d74436;
  247. border-color: #d74436;
  248. }
  249. </style>