Banned.vue 791 B

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