<template>
  <div class="info">
    <div class="quotes-icon">
      <img v-lazy="quotesIcon" width="72" height="42" />
    </div>
    <div class="quote">{{ member.quote }}</div>
    <div class="bottom-info">
      <div>
        <div class="name">{{ member.name }}</div>
        <div class="position">{{ member.position }}</div>
      </div>
      <div class="linkedin-icon">
        <img v-lazy="linkedinIcon" class="icon" width="24" height="24" />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { ITeamSwiper } from '@/components/sections/Team/Team.types';
import linkedinIcon from '@/assets/img/static-icons/linkedin-icon.svg?url';
import quotesIcon from '@/assets/img/static-icons/quotes-orange-2.svg?url';

export default defineComponent({
  props: {
    member: {
      type: Object as PropType<ITeamSwiper.Member>,
      required: true,
    },
  },

  data: () => ({
    linkedinIcon,
    quotesIcon,
  }),
});
</script>

<style lang="scss" scoped>
.info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0 48px 48px 48px;

  .quotes-icon {
    margin-bottom: 15px;
    margin-left: -6px;
  }

  .quote {
    margin-bottom: 48px;

    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    line-height: 132%;
  }

  .bottom-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    justify-self: flex-end;

    .name {
      margin-bottom: 8px;

      color: #ffffff;
      font-weight: bold;
      font-size: 16px;
    }

    .position {
      color: #b1b2b4;
      font-size: 12px;
    }
  }
}

.icon {
  filter: brightness(5);
}
</style>
