<template>
  <div class="brands">
    <nuxt-marquee
        class="brands__marquee"
        id="marquee-slider"
        :speed="50"
        :pauseOnHover="true"
    >
      <nuxt-link-locale
          class="brands__item"
          v-for="brand in brands"
          :key="brand.node.uuid"
          :to="`/brand/${brand.node.slug}`"
      >
        <p>{{ brand.node.name }}</p>
      </nuxt-link-locale>
    </nuxt-marquee>
  </div>
</template>

<script setup lang="ts">
import type {IBrand} from '@types';

const props = defineProps<{
  brands: { node: IBrand }[];
}>();
</script>

<style lang="scss" scoped>
.brands {
  background-color: $border;
  padding-block: 65px;

  &__item {
    margin-right: 65px;
    color: $text;
    font-family: "Playfair Display", sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1.9px;

    @include hover {
      text-shadow: 0 0 10px $primary_dark;
    }
  }
}
</style>