1
0

SplashScreen.vue 714 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="splash-screen" :class="{ 'fade-out': fadeOut }">
  3. <img src="/img/pixelfed-icon-white.svg" alt="Pixelfed Logo" class="logo">
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. fadeOut: false
  11. }
  12. },
  13. mounted() {
  14. setTimeout(() => {
  15. this.fadeOut = true
  16. }, 2000)
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. .splash-screen {
  22. position: fixed;
  23. top: 0;
  24. left: 0;
  25. width: 100%;
  26. height: 100%;
  27. background-color: black;
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. z-index: 9999;
  32. transition: opacity 1s ease-out;
  33. }
  34. .logo {
  35. max-width: 200px;
  36. max-height: 200px;
  37. }
  38. .fade-out {
  39. opacity: 0;
  40. pointer-events: none;
  41. }
  42. </style>