HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/fintechfuel/src/components/preloader/Preloader.svelte
<script lang="ts">
  import { navigating } from '$app/stores';
  import { loadEvent } from '../../store';

  let load = true;

  loadEvent.subscribe((value) => {
    load = value;
  });
</script>

{#if !$navigating && !load}
  <div class="preloader">
    <div class="preloader__loader" />
  </div>
{/if}

<style lang="scss">
  .preloader {
    width: 100%;
    height: 100vh;
    background: white;
    position: fixed;
    z-index: 1000;
    visibility: visible;
    top: 0;
    left: 0;
    text-align: center;
    pointer-events: all;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s all;

    &__loader {
      width: 48px;
      height: 48px;
      border: 3px solid transparent;
      border-radius: 50%;
      display: inline-block;
      position: relative;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;

      &::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 3px solid;
        border-color: #fe4d0d transparent;
      }
    }
  }

  @keyframes rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
</style>