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/quadcode.com/src/components/header/HeaderTabs.svelte
<script lang="ts">
  import { t } from '$lib/translations';

  export let className: string | undefined;
  export let classNameTabs: string | undefined;
</script>

<div class="headerTabs {className} {classNameTabs}">
  <div class="container">
    <div class="headerTabsWrapper">
      <div class="headerTabsItems">
        <a href="https://group.quadcode.com" class="headerTabsItem">{$t('Quadcode Group')}</a>
        <a href="https://quadcode.com" class="headerTabsItem active">{$t('Quadcode Brokerage Solutions')}</a>
      </div>
    </div>
  </div>
</div>

<style lang="scss">
  @import 'src/scss/variables';
  @import 'src/scss/mixins';
  @import 'src/scss/media';

  .headerTabs {
    background: $techWhite;

    @include breakpoint-down('tabM') {
      display: none;
    }

    .headerTabsWrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;

      @include breakpoint-down('tabM') {
        margin-left: -20px;
        width: calc(100% + 20px * 2);
      }
    }

    .headerTabsItems {
      display: flex;
      align-items: center;
    }

    .headerTabsItem {
      @include smallCTA;

      padding: 14px 25px 14px 25px;
      position: relative;

      @include breakpoint-down('deskL') {
        padding: 15px 21px 15px 25px;
      }

      @include breakpoint-down('deskS') {
        padding: 13px 24px 13px 24px;
      }

      @include breakpoint-down('tabM') {
        padding: 15px 36px;
        width: calc(100% / 2);
      }

      &:first-of-type {
        transition: 0.4s ease-in-out;
        color: $techGrey30;
        border-right: 2px solid $techWhite;

        &:hover {
          color: $fontPrimary;
        }
      }

      &.active {
        color: $fontPrimary;

        @include breakpoint-down('tabM') {
          background: $techWhite;
        }

        &:after {
          content: '';
          position: absolute;
          height: 2px;
          width: 100%;
          bottom: 0;
          left: 0;
          right: 0;
          background: $redPrimary;

          @include breakpoint-down('tabM') {
            bottom: auto;
            top: 0;
          }
        }
      }
    }

    :global(.headerTabsLang) {
      height: 50px;

      @include breakpoint-down('deskS') {
        height: 40px;
      }
    }

    :global(.headerTabsLang .lang__btn) {
      padding: 14px 0;

      @include breakpoint-down('deskS') {
        padding: 9px 0;
      }
    }

    &.ghostWhite:not(.defaultTabs) {
      background: $techWhite15;

      .headerTabsItem {
        &:first-of-type {
          color: $techWhite30;
          border-right: 2px solid transparent;

          &:hover {
            color: $techWhite;
          }
        }

        &:last-of-type {
          color: $techWhite;
        }
      }
    }
  }
</style>