Index.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class='index'>
  3. <div class='thread_sorting'>
  4. <div class='button button--orange'>New</div>
  5. <div class='button'>Most active</div>
  6. <div class='button'>No replies</div>
  7. </div>
  8. <div class='threads'>
  9. <div class='thread thread--header'>
  10. <div class='thread__section thread__section--header thread__section--width-title'>Title</div>
  11. <div class='thread__section thread__section--header thread__section--width-post'>Latest post</div>
  12. <div class='thread__section thread__section--header thread__section--width-replies'>Replies</div>
  13. </div>
  14. <div class='thread thread--hover'>
  15. <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
  16. <div class='thread__section thread__section--width-post'>
  17. <div class='thread__user'>Qwert azerty</div>
  18. <div class='thread__date'>10/11/2016 15:13</div>
  19. </div>
  20. <div class='thread__section thread__section--width-replies'>20</div>
  21. </div>
  22. <div class='thread thread--hover'>
  23. <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
  24. <div class='thread__section thread__section--width-post'>
  25. <div class='thread__user'>Qwert azerty</div>
  26. <div class='thread__date'>10/11/2016 15:13</div>
  27. </div>
  28. <div class='thread__section thread__section--width-replies'>20</div>
  29. </div>
  30. <div class='thread thread--hover'>
  31. <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
  32. <div class='thread__section thread__section--width-post'>
  33. <div class='thread__user'>Qwert azerty</div>
  34. <div class='thread__date'>10/11/2016 15:13</div>
  35. </div>
  36. <div class='thread__section thread__section--width-replies'>20</div>
  37. </div>
  38. <div class='thread thread--hover'>
  39. <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
  40. <div class='thread__section thread__section--width-post'>
  41. <div class='thread__user'>Qwert azerty</div>
  42. <div class='thread__date'>10/11/2016 15:13</div>
  43. </div>
  44. <div class='thread__section thread__section--width-replies'>20</div>
  45. </div>
  46. <div class='thread thread--hover'>
  47. <div class='thread__section thread__section--width-title'>QWERTYUIHGFDSERTYHJNBVCSASDFGHBGFRESDCVBGTRD</div>
  48. <div class='thread__section thread__section--width-post'>
  49. <div class='thread__user'>Qwert azerty</div>
  50. <div class='thread__date'>10/11/2016 15:13</div>
  51. </div>
  52. <div class='thread__section thread__section--width-replies'>20</div>
  53. </div>
  54. </div>
  55. </div>
  56. </template>
  57. <script>
  58. export default {
  59. name: 'index'
  60. }
  61. </script>
  62. <style lang='scss' scoped>
  63. @import '../../assets/scss/variables.scss';
  64. .index {
  65. width: 80%;
  66. margin: 0 auto;
  67. margin-top: 2rem;
  68. }
  69. .thread_sorting {
  70. margin-bottom: 1rem;
  71. }
  72. .thread {
  73. display: flex;
  74. background-color: #fff;
  75. padding: 0.5rem 0;
  76. cursor: default;
  77. @at-root #{&}--hover {
  78. transition: background-color 0.2s;
  79. &:hover {
  80. background-color: $color__lightgray--primary;
  81. }
  82. }
  83. @at-root #{&}--header {
  84. border-bottom: thin solid $color__lightgray--darkest;
  85. }
  86. @at-root #{&}__section {
  87. padding: 0 0.5rem;
  88. @at-root #{&}--header {
  89. font-weight: 400;
  90. }
  91. @at-root #{&}--width-title {
  92. width: 60%;
  93. }
  94. @at-root #{&}--width-post {
  95. width: 30%
  96. }
  97. @at-root #{&}--width-replies {
  98. width: 10%;
  99. }
  100. }
  101. @at-root #{&}__user {
  102. display: inline-block;
  103. }
  104. @at-root #{&}__date {
  105. color: $color__text--secondary;
  106. display: inline-block;
  107. }
  108. }
  109. </style>