Banned.vue 821 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="container">
  3. <metadata title="Banned" />
  4. <i class="material-icons">not_interested</i>
  5. <h4>
  6. You are banned for
  7. <strong>{{ moment(ban.expiresAt).fromNow(true) }}</strong>
  8. </h4>
  9. <h5 class="reason">
  10. <strong>Reason: </strong>
  11. {{ ban.reason }}
  12. </h5>
  13. </div>
  14. </template>
  15. <script>
  16. import { mapState } from "vuex";
  17. export default {
  18. data() {
  19. return {
  20. moment
  21. };
  22. },
  23. computed: mapState({
  24. ban: state => state.user.auth.ban
  25. })
  26. };
  27. </script>
  28. <style lang="scss" scoped>
  29. @import "styles/global.scss";
  30. .container {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. flex-direction: column;
  35. height: 100vh;
  36. max-width: 1000px;
  37. padding: 0 20px;
  38. }
  39. .reason {
  40. text-align: justify;
  41. }
  42. i.material-icons {
  43. cursor: default;
  44. font-size: 65px;
  45. color: tomato;
  46. }
  47. </style>